An MCP server for Gmail. One codebase ships as a CLI, an MCP server, and an HTTP API over a shared service registry.
Optional x402 sell-side paywall: price any tool with @service(price=...) and agents pay per call in stablecoins (Cloudflare Wallets / x402 ecosystem). Dormant until enabled.
MCP UI • Connect • Architecture • Quick Start • CLI Usage • Configuration • Deploy • Credits
Four MCP Apps ship in the box. Each is a React bundle served as a ui:// resource and rendered in the host's sandboxed iframe:
Every shot is inside a Claude conversation because that is where these UIs live: the user asks, the model calls a tool, and the app renders as that tool's result, inline in the thread. Nothing here is a standalone web app.
The cards are rendered from the committed app bundles by the fixture host in mcp_server/dev_preview/ - no server, Gmail account, or OAuth involved. Reproduce one with make preview_app APP=<name> CHAT=claude. The composer shot is APP=gmail_inbox SCENARIO=gmail_composer, since that view is served by the inbox app rather than by a bundle of its own.
Apps are opt-in. Add an enhancer in mcp_server/enhancers/ when a tool needs elicitation, image output, or an iframe dashboard. Enhancers wrap a service for the MCP transport only - the pure service stays untouched and CLI/API consumers are unaffected. See mcp_server/MCP_UI_ARCHITECTURE.md for the full design.
DaySurface is a remote MCP server, so there is nothing to install - point your client at the endpoint and sign in through the browser.
Endpoint: https://mcp.daysurface.com/mcp
Transport: streamable HTTP (remote, not stdio)
Auth: OAuth in the browser, no key to paste
| Client | Add it |
|---|---|
| Add to Claude - opens the Add custom connector dialog with the name and URL filled in. Claude flags it as suggested by an external link; that is expected. On Team and Enterprise plans an admin adds it. | |
| Open chatgpt.com/plugins, click Add, then Create custom MCP server. Paste the endpoint, name it, set Authentication to OAuth, and click Create as a plugin. Start a new chat so the tools menu refreshes. Needs a paid plan; on Business, Enterprise and Edu an admin allows it first. | |
claude mcp add --transport http --scope user daysurface https://mcp.daysurface.com/mcpThen run /mcp in a session to sign in. |
|
Not working? Add the endpoint by hand under Settings → MCP. |
|
| Add to VS Code - requires Copilot agent mode. | |
Adds it as an extension over streamable HTTP. |
|
Add a remote server at https://mcp.daysurface.com/mcp over streamable HTTP. Cline, Zed and Windsurf all work - each spells the config differently (VS Code servers, Cursor and Cline mcpServers, Zed context_servers, and Windsurf wants serverUrl where everyone else wants url). |
Every one-click button routes through an https:// install URL, since GitHub strips custom URL schemes such as cursor:// from links. The same picker is on the landing page - both are generated from landing-page/src/config/landing/connect.ts.
Copy and paste this into your AI coding agent (Claude Code, Cursor, Copilot, etc.) to install:
Install the CLI and download the daysurface skill:
pip install daysurface
curl -fsSL https://raw.githubusercontent.com/Miyamura80/DaySurface/main/scripts/install-skills.sh -o install-skills.sh
bash install-skills.sh && rm install-skills.sh
The official daysurface agent skill is self-published on skills.sh. Install it directly with:
npx skills add Miyamura80/DaySurfaceThe skill's source of truth lives in skills/daysurface/SKILL.md;
make sync-skills mirrors it to the landing page's
/.well-known/agent-skills/ discovery tree (digest-pinned in index.json).
One codebase, three interfaces. Write business logic once in services/ and it ships as a CLI subcommand, an MCP tool, and an HTTP route - same Pydantic input/output contract everywhere.
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ src/cli/app │ │ mcp_server/ │ │ api_server/ │ transport / interface
│ (Typer) │ │ (MCPServer) │ │ (FastAPI) │
└──────┬───────┘ └──────┬───────┘ └──────┬───────┘
│ │ │
└─────────────────┼─────────────────┘
▼
┌───────────────┐
│ services/ │ pure @service functions
│ @service │ (transport-agnostic)
└───────┬───────┘
▼
┌───────────────┐
│ models/ │ Pydantic I/O contracts
└───────┬───────┘
▼
┌────────────┬───────┬────────────┬─────────────┐
│ common/ │ db/ │ utils/llm/ │ src/utils/ │ shared infra
│ (config) │ (ORM) │ (DSPY) │ (logs/theme)│
└────────────┴───────┴────────────┴─────────────┘
uv sync # install deps
uv run daysurface --help # see all CLI commands
uv run daysurface doctor # check your environment is wired up
uv run daysurface-serve # start the server (HTTP API + MCP at /mcp on one port)
uv run daysurface-mcp # legacy: stdio MCP only, for local Claude Desktop / devThe buttons at the top of this page provision the backend and a managed Postgres, and run migrations on boot. See deployment docs for the per-platform setup, the Railway template variable map, and OAuth/secret wiring.
Global flags go before the subcommand:
| Flag | Short | Description |
|---|---|---|
--verbose |
-v |
Increase output verbosity |
--quiet |
-q |
Suppress non-essential output |
--debug |
Show full tracebacks on error | |
--format |
-f |
Output format: table, json, plain |
--dry-run |
Preview actions without executing | |
--version |
-V |
Print version and exit |
uv run daysurface --format json config show # JSON output
uv run daysurface --verbose doctor # detailed output
uv run daysurface --dry-run secrets set OPENAI_API_KEY # preview without writingCommands are auto-discovered from src/cli/commands/ - see adding commands.
from common import global_config
# Access config values from common/global_config.yaml
global_config.default_llm.default_model
global_config.llm_config.cache_enabled
# Access secrets from .env
global_config.OPENAI_API_KEYCLI config inspection:
uv run daysurface config show # full config
uv run daysurface config get llm_config.cache_enabled # single value
uv run daysurface config set logging.verbose false # write overrideThis software is built with:
- uv
- Typer: CLI framework
- Rich: Terminal formatting
- prek: Rust-based pre-commit framework
- DSPY: Pytorch for LLM Inference
- LangFuse: LLM Observability Tool
Made with contrib.rocks.











