Branchwell

OpenTalon / website · opentalon.ai / docs / mcp.html

Raw 12.4 KB on 2997f216ba4ef4d9fad83137b0895b1a40375d88
1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6 <title>MCP server for external agents · OpenTalon docs</title>
7 <meta name="description" content="Connect Claude Code, Codex, Gemini CLI or Claude chat to the OpenTalon local MCP server, grant one-hour task access, and see the tool list." />
8 <link rel="icon" href="/favicon.png" type="image/png" />
9 <meta name="theme-color" content="#0D1218" />
10 <script type="module" src="/src/main.js"></script>
11 <link rel="stylesheet" href="/src/docs.css" />
12 <!-- no-orphans --><link rel="stylesheet" href="/no-orphans.css"><script src="/no-orphans.js" defer></script><!-- /no-orphans --></head>
13 <body>
14 <div class="page">
15 <!-- site-header -->
16
17 <main class="wrap docs-main">
18 <aside class="docs-nav" aria-label="Documentation">
19 <details class="docs-nav-menu" open>
20 <summary><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 7v14"/><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"/></svg><span>Docs menu</span></summary>
21 <ol class="docs-pages">
22 <li><a href="/docs">Get started</a></li>
23 <li><a href="/docs/board">Projects, the board and tasks</a></li>
24 <li><a href="/docs/agents">Connect your agents</a></li>
25 <li><a href="/docs/task-thread">The task thread</a></li>
26 <li><a href="/docs/project-chat">Project chat and Ask my agent</a></li>
27 <li><a href="/docs/running">Needs you, pausing and background</a></li>
28 <li class="is-current"><a href="/docs/mcp" aria-current="page">MCP server</a><ol class="docs-toc"><li><a href="#overview">What the MCP server does</a></li><li><a href="#enable">Turn it on and test it</a></li><li><a href="#clients">Connect a client</a></li><li><a href="#task-access">One-hour access for a single task</a></li><li><a href="#tools">Tools</a></li><li><a href="#safety">Destructive actions need a preview</a></li></ol></li>
29 <li><a href="/docs/iphone">iPhone and iPad</a></li>
30 <li><a href="/docs/data">Privacy, sync and backups</a></li>
31 <li><a href="/docs/troubleshooting">Troubleshooting</a></li>
32 </ol>
33 </details>
34 </aside>
35 <article class="docs-article">
36 <header class="docs-head">
37 <p class="docs-kicker"><a href="/docs">OpenTalon docs</a></p>
38 <h1>MCP server for external agents</h1>
39 <p class="lede">OpenTalon includes a local MCP server, so an agent you run yourself can read and manage your boards and tasks. It only listens on your Mac and uses a private key.</p>
40 </header>
41 <section id="overview" aria-labelledby="overview-title"><h2 id="overview-title"><a class="docs-anchor" href="#overview">What the MCP server does</a></h2>
42<p>If you use Claude Code, Codex, Gemini CLI or Claude chat on their own, the MCP server lets them work with your <a href="/docs/board">projects and tasks</a>: list and create tasks, update plans, move cards, read revision requests and report progress.</p>
43<p>The server listens on <code>127.0.0.1</code> with a private key, and also offers a STDIO bridge. If OpenTalon isn't running when a client connects through the bridge, the bridge starts it in the background.</p>
44<p>Connection keys stay on your Mac. They're never stored in task data or <a href="/docs/data">backups</a>.</p>
45<div class="note">"Your AI provider may receive the task details your agent reads."</div>
46</section>
47
48<section id="enable" aria-labelledby="enable-title"><h2 id="enable-title"><a class="docs-anchor" href="#enable">Turn it on and test it</a></h2>
49<ol>
50<li>Open Settings and go to <strong>Agent connection</strong>. You can also get there from <strong>Agent connection guide</strong> in <strong>Task agent</strong>, or with <strong>Set up connection</strong> on the <strong>Use OpenTalon from your agent</strong> sheet.</li>
51<li>Turn on <strong>Enable MCP connection</strong>. This is the same switch as <strong>Enable local agent connection</strong> in Task agent. The status reads <strong>Running locally</strong>.</li>
52<li>Click <strong>Test connection</strong>. When it works you see "OpenTalon answered the local read-only test."</li>
53</ol>
54<figure class="docs-shot docs-shot-mac is-placeholder" id="fig-agent-connection" data-shot-id="agent-connection" data-needs="Settings at Agent connection: Enable MCP connection on, Running locally, test result &quot;OpenTalon answered the local read-only test.&quot;, client buttons with Claude selected showing Save project connection…. Mac, dark theme, 1440×900 window, seeded demo data" data-alt="Settings at Agent connection with the MCP connection enabled and running locally, a passed test, and the Claude setup with Save project connection.">
55 <div class="docs-shot-frame" role="img" aria-label="Settings at Agent connection with the MCP connection enabled and running locally, a passed test, and the Claude setup with Save project connection.">
56 <span class="docs-shot-label">Screenshot to come</span>
57 <code class="docs-shot-id">agent-connection</code>
58 <span class="docs-shot-needs">Settings at Agent connection: Enable MCP connection on, Running locally, test result "OpenTalon answered the local read-only test.", client buttons with Claude selected showing Save project connection…. Mac, dark theme, 1440×900 window, seeded demo data</span>
59 </div>
60 <figcaption>Settings → Agent connection, after a passing test.</figcaption>
61</figure>
62<p>The <strong>Agent skill</strong> block in the same section installs the <code>opentalon-mcp</code> skill for each agent, so new sessions already know how to use OpenTalon's tools. Once a client is connected (below), ask it "List my OpenTalon projects." to check.</p>
63</section>
64
65<section id="clients" aria-labelledby="clients-title"><h2 id="clients-title"><a class="docs-anchor" href="#clients">Connect a client</a></h2>
66<p>In <strong>Agent connection</strong>, pick <strong>Claude</strong>, <strong>Codex</strong>, <strong>Gemini CLI</strong> or <strong>Claude chat</strong> and follow the steps.</p>
67<h3>Claude Code</h3>
68<ol>
69<li>Click <strong>Claude</strong>, then <strong>Save project connection…</strong>, and pick your project folder. OpenTalon writes a <code>.mcp.json</code> there and keeps any other servers already in it. If an OpenTalon entry exists, it asks "Replace this project's OpenTalon connection?"</li>
70<li>Click <strong>Open Claude</strong>, open the <strong>Code</strong> tab in that folder, and approve the OpenTalon connection.</li>
71</ol>
72<h3>Codex</h3>
73<ol>
74<li>Click <strong>Codex</strong>, then <strong>Open Codex</strong>.</li>
75<li>In Codex, open <strong>Settings → MCP servers</strong>, add a server and choose <strong>STDIO</strong>.</li>
76<li>Copy each field from OpenTalon with its <strong>Copy</strong> button: name, command, arguments and environment variables. Save, then reload the server.</li>
77</ol>
78<h3>Gemini CLI</h3>
79<ol>
80<li>Install Google's Gemini CLI (<a href="https://geminicli.com/docs/get-started/installation/">installation guide</a>).</li>
81<li>Click <strong>Gemini CLI</strong>, then <strong>Copy setup command</strong>. It copies a <code>gemini mcp add --scope project …</code> command.</li>
82<li>In Terminal, in a project folder you've marked as trusted in Gemini CLI, run the command. Then run <code>gemini mcp list</code> to confirm.</li>
83</ol>
84<div class="note">This is Google's Gemini CLI, which is separate from the Antigravity CLI (<code>agy</code>) OpenTalon uses to <a href="/docs/agents#install-signin">run Gemini tasks</a>.</div>
85<h3>Claude chat</h3>
86<ol>
87<li>Click <strong>Claude chat</strong>, then <strong>Save Claude extension…</strong> to save <code>OpenTalon.mcpb</code>.</li>
88<li>Click <strong>Open Claude</strong> and install the saved file.</li>
89</ol>
90<h3>Advanced setup</h3>
91<ul>
92<li><strong>Copy STDIO JSON</strong> or <strong>Copy HTTP JSON</strong> for any other MCP client.</li>
93<li>Terminal setup with <strong>Copy command</strong>, which uses <code>claude mcp add --scope user</code> or <code>codex mcp add</code>.</li>
94<li><strong>Reset connection key…</strong> makes a new key: "This revokes the old direct HTTP key and all task agent connections."</li>
95</ul>
96</section>
97
98<section id="task-access" aria-labelledby="task-access-title"><h2 id="task-access-title"><a class="docs-anchor" href="#task-access">One-hour access for a single task</a></h2>
99<p>To let an outside agent work on one task without access to the rest of your workspace, open the task's <strong>Details</strong> tab and find <strong>Task agent connection</strong>.</p>
100<ol>
101<li>Click <strong>Grant and copy</strong> for a one-hour MCP connection limited to that task.</li>
102<li>Click <strong>Revoke</strong> to end it before the hour is up.</li>
103</ol>
104</section>
105
106<section id="tools" aria-labelledby="tools-title"><h2 id="tools-title"><a class="docs-anchor" href="#tools">Tools</a></h2>
107<p>The server has 40 tools. An agent finishes a task with <code>report_agent_progress</code>, which needs a summary and proof that the definition of done is met (see <a href="/docs/board#definition-of-done">Definition of done and proof</a>).</p>
108<table>
109<thead><tr><th>Group</th><th>Tools</th></tr></thead>
110<tbody>
111<tr><td>Boards and projects</td><td><code>list_boards</code>, <code>create_board</code>, <code>rename_board</code>, <code>set_board_icon</code>, <code>delete_board</code>, <code>get_project_folder</code>, <code>set_project_folder</code></td></tr>
112<tr><td>Tasks</td><td><code>list_tasks</code>, <code>get_task</code>, <code>create_task</code>, <code>update_task</code>, <code>set_task_plan</code>, <code>move_task</code>, <code>trash_task</code>, <code>list_trash</code>, <code>restore_task</code>, <code>get_task_history</code>, <code>restore_task_revision</code></td></tr>
113<tr><td>Comments and files</td><td><code>list_task_comments</code>, <code>add_task_comment</code>, <code>read_comment_image</code>, <code>list_task_files</code>, <code>attach_task_file</code></td></tr>
114<tr><td>Activity and runs</td><td><code>list_task_activity</code>, <code>add_task_activity</code>, <code>get_task_agent_run</code>, <code>recover_agent_run</code>, <code>report_agent_progress</code></td></tr>
115<tr><td>Settings</td><td><code>get_preferences</code>, <code>set_preferences</code>, <code>get_agent_models</code>, <code>set_agent_models</code>, <code>get_app_status</code></td></tr>
116<tr><td>Skills</td><td><code>list_productivity_skills</code>, <code>list_community_skills</code>, <code>get_productivity_skill</code></td></tr>
117<tr><td>Backups</td><td><code>create_backup</code>, <code>inspect_backup</code></td></tr>
118<tr><td>Safety</td><td><code>preview_destructive_action</code>, <code>confirm_destructive_action</code></td></tr>
119</tbody>
120</table>
121</section>
122
123<section id="safety" aria-labelledby="safety-title"><h2 id="safety-title"><a class="docs-anchor" href="#safety">Destructive actions need a preview</a></h2>
124<p>Permanent deletes, emptying the Trash and restoring a <a href="/docs/data#export-restore">backup</a> take two steps, so an agent can't erase data by surprise:</p>
125<ol>
126<li>The agent calls <code>preview_destructive_action</code> and shows you exactly what will change.</li>
127<li>Only after you confirm does it call <code>confirm_destructive_action</code>.</li>
128</ol>
129<p>A preview expires after 5 minutes, and it's rejected if the workspace changed in the meantime: "This confirmation expired or the workspace changed. Generate a new preview."</p>
130</section>
131 <nav class="docs-pager" aria-label="Previous and next page">
132 <a class="docs-pager-prev" href="/docs/running"><span>Previous</span>Needs you, pausing and background</a>
133 <a class="docs-pager-next" href="/docs/iphone"><span>Next</span>iPhone and iPad</a>
134 </nav>
135 </article>
136 </main>
137
138 <footer class="site-footer">
139 <div class="wrap">
140 <nav class="footer-links" aria-label="Footer">
141 <a href="https://branchwell.ai/opentalon/research" rel="noopener">Research</a>
142 <span class="footer-dot" aria-hidden="true">·</span>
143 <a href="https://branchwell.ai/opentalon/website/for/docs/mcp" rel="noopener" data-source-link>Source</a>
144 </nav>
145 </div>
146 </footer>
147 </div>
148 </body>
149</html>