Skip to content

A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.

TypeScript

docs(odd): add custom MCP via the assistant and import of the user's MCP servers

Alan Buscaglia1b81c56dbf76
diff --git a/odd/tasks/gentle-dot.md b/odd/tasks/gentle-dot.md
index 25624ea..f3bc9b4 100644
--- a/odd/tasks/gentle-dot.md
+++ b/odd/tasks/gentle-dot.md
@@ -58,9 +58,12 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
- **S16 — Typing closes open options.** Same quote. When the user starts typing in the composer, open menus and panels (conversations list, accounts, profiles) close; a sign-in that is waiting for the user's answer is kept, so its prompt is not lost.
- **S17 — Clear header icons.** Same quote ("para las partes de profiles no entiendo porque el icono de contraste"). The header uses one consistent set of clear inline SVG icons with tooltips and accessible names (conversations, accounts, profiles with a sliders-style icon, new conversation, hide), replacing the text glyphs (☰ ⚿ ◐ + –).
-- **S18 — Connectors (Gmail, Slack, Discord, Notion).** User: "como podemos hacer para un apartado de conectores, por ejemplo gmail, slack, discord, etc" and, on the proposal, "dale me gsuta )". Accepted proposal (L32): a Connectors screen like Accounts, backed by MCP servers in the assistant's own engine home (`<agentHome>/mcp.json`, logins in `mcp-auth.json`). The daemon manages the catalog, enabling, disabling, and removal, plus each connector's sign-in (remote OAuth, a guided token, or the provider's own OAuth app), with the same secret rules as model sign-in, and restarts the agent when idle. Any outward action (send mail, post to Slack or Discord, write to Notion) needs an approval card with a preview; read-only actions do not. Each connector can be set to read-only or read-and-send. First set: Gmail, Slack, Discord, plus Notion as the reference remote-OAuth connector.
+- **S18 — Connectors (Gmail, Slack, Discord, Notion).** User: "como podemos hacer para un apartado de conectores, por ejemplo gmail, slack, discord, etc" and, on the proposal, "dale me gsuta )". Accepted proposal (L32): a Connectors screen like Accounts, backed by MCP servers in the assistant's own engine home (`<agentHome>/mcp.json`, logins in `mcp-auth.json`). The daemon manages the catalog, enabling, disabling, and removal, plus each connector's sign-in (remote OAuth, a guided token, or the provider's own OAuth app), with the same secret rules as model sign-in, and restarts the agent when idle. Any outward action (send mail, post to Slack or Discord, write to Notion) needs an approval card with a preview; read-only actions do not. Each connector can be set to read-only or read-and-send. First set: Gmail, Slack, Discord, Notion, Linear, and Atlassian (L33).
- Open questions (being mapped, read-only): (1) whether the engine's MCP integration completes MCP OAuth in RPC mode or the daemon must run it (pi-mcp/oauth) and write `mcp-auth.json`; (2) which of these services offer an official remote MCP with OAuth today, versus community servers needing tokens or the user's own OAuth app; (3) how to classify tools as write actions, so only those require approval.
+- **S19 — Add any other MCP by asking the assistant.** User (L33): "Notion, Linear, Atlassian tmabien, esta bueno, y pon un apartado de conectar mcp extra, que directamente se lo pida al agente, creo que podria hacerlo no? es mas podriamos reconocer los mcps del user o no ?". The Connectors screen has an "Add another connector" option that starts a chat request. The assistant drafts the server configuration (name, command or URL, required credentials), but it never writes `mcp.json` itself: the daemon applies the draft only after the user approves a card that shows every detail. The same approval applies whenever the assistant tries to change connectors on its own initiative.
+- **S20 — Recognize the user's existing MCP servers.** Same quote. The assistant detects MCP configurations from common clients (for example Claude Desktop, Claude Code, Cursor, VS Code, and Gentle Shell), reads them read-only, and offers "Found these servers: which ones to import?". Import is an explicit per-server choice; secrets go only into the assistant's private home, and the source files are never modified.
+
## Tasks
| ID | Specs | Route | Status | Commit / evidence | Scope |
@@ -82,7 +85,7 @@ Branch: `feat/gentle-dot` · Delivery strategy: `single-pr` (user choice, L7; fo
| T15 | S6, S7, S11, S12, S9 | delegated writers (parallel: daemon/isolation vs. Dot circle) | done | `8626a7d`, `05000c8`, `ac86f64`; limited recheck PASS (L31) | One correction batch for verifier blockers B1–B4 and the S9 circle change, then a recheck limited to them |
| T16 | S10 | inline | done | `7337b52` RED 4 failing → GREEN 14/14 | Accounts in two steps: method first, then provider |
| T17 | S14–S17 | delegated writer (context backstop) | in progress | — | Queue display, gentlemanprogramming.com style, typing closes options, header icons |
-| T18 | S18 | explore (delegated, read-only) → spec details → implement | in progress | — | Connectors: map the engine's MCP integration and the providers first |
+| T18 | S18–S20 | explore (delegated, read-only) → spec details → implement | in progress | — | Connectors: map the engine's MCP integration and the providers first |
| T9 | S1–S6, S9–S12 | delegated verifier (high risk: process supervision, auth) | done | L24 + L31 | Full verification: unit, integration, Playwright, `@real-agent`, `tauri build` + launch, manual macOS checklist with observed results |
Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `rustc` is not, so T7 must first install or repair the Rust toolchain (rustup) and asks before installing. Xcode is present.
@@ -121,4 +124,5 @@ Environment notes: Node v24.14.1 and pnpm are present. `cargo` is on PATH but `r
- **L30 (2026-10-08, user):** "una cosa, en la app no muestra los queue messages, y me gustaria que la app tenga la misma visual que la pagina web de gentlemanprogramming.com el mismo estilo, tambien si uno empieza a escribir deberia de cerrar las opciones abiertas, para las partes de profiles no entiendo porque el icono de contraste". Style evidence was measured with Playwright from the live https://gentlemanprogramming.com (computed styles and :root variables; the values are in S15). The site is dark-only.
- **L31 (2026-10-08, limited recheck):** An independent verifier (scratch copy, temp HOMEs, ports away from the user's 4317/7437/7438) passed B1, B2, B3, B4, L25, and L26 at `ac86f64`, and each failure reproduced at baseline `deeb33a`. B2 probe: the seeded HOME hash is identical before and after a first start (`b5f7056…`). L25: 42 providers, 8 OAuth, none Anthropic, and Anthropic OAuth is refused with no runtime call. Regression: 197 tests, typecheck, lint, e2e 9/9, cargo 39/39. No blockers remain. Advisories for later: (1) the assistant's Engram server outlives the daemon (orphaned after stop); (2) deploy-vps telemetry opt-out line likely does not work in the container (pre-existing); (3) old daemon.log files from earlier builds still hold the token (now 0600; the token was not rotated); (4) e2e does not re-check the method buttons after "Back to accounts" (UI test covers it); (5) a small TOCTOU window between realpath and write in the frontmatter sync. With L24 (S1/S9 confirmed on the user's Mac: tray, menu, panel, 72×72 window), T9 is complete for S1–S12 except the items not verifiable here (live animation in WKWebView, real OAuth subscription sign-in).
- **L32 (2026-10-08, user):** "como podemos hacer para un apartado de conectores, por ejemplo gmail, slack, discord, etc". The parent verified that the engine reads `<agentHome>/mcp.json` (`mcpServers`) and keeps `mcp-auth.json` and `mcp-cache.json` there, and that `@earendil-works/pi-mcp` provides stdio and Streamable HTTP transports plus an MCP OAuth client (`pi-mcp/oauth`; it does not open a browser or choose storage). The proposal was accepted: "dale me gsuta )".
-- **Next step:** T18 read-only map; T17 (UI writer running); then T14 (Linux).
+- **L33 (2026-10-08, user):** "Notion, Linear, Atlassian tmabien, esta bueno, y pon un apartado de conectar mcp extra, que directamente se lo pida al agente, creo que podria hacerlo no? es mas podriamos reconocer los mcps del user o no ?". Decision recorded: the assistant drafts and the daemon applies after user approval (prompt-injection guard). Import of the user's MCP servers is read-only, per server, and explicit. The explorer was asked to extend its map.
+- **Next step:** T18 read-only map (extended); T17 (UI writer running); then T14 (Linux).