Skip to content

About

✉️ daysurface.com - let agents manage your email, with your control

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

121 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DaySurface

DaySurface

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

Deploy on Railway   Deploy to Render

Project Version Python Version GitHub repo size GitHub Actions Workflow Status skills.sh


MCP UI

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:

gmail_inbox - curated inbox with importance scores and labels, beside a thread reader showing a pending draft and AI-drafted replies

gmail_inbox MCP App: curated inbox list beside an open thread with a pending draft
gmail_composer - the draft view every compose/reply tool opens, rendered by the inbox app: conversation above, Gmail-style To / Cc/Bcc and body, send / attach / discard

gmail_composer: Gmail-style draft card under the conversation, with To, Cc/Bcc, body and a Send / attach / discard toolbar
pdf_signer - pdf.js viewer with the signature field highlighted and a type-your-name signing ceremony

pdf_signer MCP App: NDA with a Sign here highlight and signing footer
settings - connected Gmail account, inbox watch state, and webhook endpoints with secret rotation

settings MCP App: Gmail account status and webhook endpoint list

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.

Connect Your Client

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
Claude 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.
ChatGPT 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 Code claude mcp add --transport http --scope user daysurface https://mcp.daysurface.com/mcp
Then run /mcp in a session to sign in.
Cursor Add to Cursor
Not working? Add the endpoint by hand under Settings → MCP.
VS Code Add to VS Code - requires Copilot agent mode.
Goose Install in Goose
Adds it as an extension over streamable HTTP.
Any MCP client 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.

Agent Prompt

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/DaySurface

The 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).

Architecture

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)│
        └────────────┴───────┴────────────┴─────────────┘

Quick Start

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 / dev

Deploy

The 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.

CLI Usage

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 writing

Commands are auto-discovered from src/cli/commands/ - see adding commands.

Configuration

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_KEY

CLI 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 override

Full configuration docs

Credits

This software is built with:

About the Core Contributors

Made with contrib.rocks.

About

✉️ daysurface.com - let agents manage your email, with your control

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages