Conversation
Dots can now use tools from remote MCP servers (Streamable HTTP, optional bearer token). Each Dot's settings list its connections and tools; each tool can be enabled or disabled and set to "Ask first". - Read-only tools (readOnlyHint) run directly. Every other tool starts as "Ask first": the model gets approval_required and must raise an in-chat approval card. Only the owner's approval route executes the call, after re-checking the conversation's Dot still has the tool, and each approval runs at most once with a restorable receipt. - Slack and headless runs cannot approve, so gated tools tell the Dot to continue in the web app. - Changing a Dot's connections aborts its active turn. - Tokens stay server-side; results are bounded and treated as untrusted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workflow
A Dot can use tools from remote MCP servers, such as email, calendars, issue trackers, notes or the owner's own services. Read-only tools run on their own. Any tool that changes something waits for the owner to approve it in chat.
readOnlyHintstart with Ask first off. Every other tool starts with it on.approval_required. The Dot then raises arequest_connection_actionhuman-in-the-loop card showing the summary and the exact arguments, and Approve & run executes the call.Design notes for review
POST /api/conversations/:id/connection-actions. It checks that the conversation's Dot currently has that tool enabled, claims(threadId, toolCallId)once, and stores the result. Retries and double clicks return the stored result, and reopening the conversation restores the card from it. This mirrors the existingreview_space_pageflow.unavailableand the Dot is told to continue in the web app.hasTokenonly). Tool results are capped at 20k characters, and the system prompt marks them as untrusted.<connection>__<tool>), sanitized to^[a-zA-Z0-9_-]{1,64}$and de-duplicated.http(s)without embedded credentials. Local addresses are allowed on purpose, so the owner can run MCP servers on the same machine. This is noted in the docs.@modelcontextprotocol/sdkdependency. No new dependencies.Verification
npm run check-format,lint,typecheck,test(175 passing, 11 new) andbuildall pass.tests/connections.test.tsruns a realMcpServerover the SDK's in-memory transport. It covers:unavailabletests/tanstack-agent.test.tschecks that the model request includes connection tools, and includes the approval tool only when the web client offers it.tests/connection-card.test.tsx.Docs:
docs/CONNECTIONS.md, plus a README section and a row in the Features table.🤖 Generated with Claude Code