Skip to content

feat(platform): connect a coding agent on the MCP settings page - #4968

Merged
yannickmonney merged 2 commits into
mainfrom
feat/connect-agent-on-mcp-page
Oct 13, 2026
Merged

yannickmonney merged 2 commits into
mainfrom
feat/connect-agent-on-mcp-page

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

Settings > API > MCP is where people look for how to connect an agent, and it started with an address, an organization slug, a tool inventory and a curl. Where the deployment lets agents sign in and the person may connect one, it now starts with Connect a coding agent: the guided setup the Connected agents page opens in a dialog — client tabs (Claude Code, Codex, Other) with the verified commands at this deployment's address, the line that says when the agent has signed in, a first prompt, and Setup guide — as the page's first section. The existing MCP endpoint section follows, unchanged, under the usual divider. Elsewhere (sign-in switched off, or a member who may not connect an agent) the page is what it was.

  • McpConnectSection renders CodingAgentSetup with the general prompt, gated by useApiSettingsAccess().connectAgents, the same gate as the Connected agents tab.
  • The guide link is now a part of its own (SetupGuideLink); the dialog's footer composes it with Done.
  • The docs' screenshot of the page is retaken through the capture pipeline (the rig's address becomes tale.yourcompany.com in the commands too); the MCP page guide and the endpoint reference say what the page starts with, in English, German and French. CONN-F17 and its reference row.

Not in this PR: the Connected agents table on the same page (it stays its own tab); a problems entry in the editor (an agent works on the saved version, the Problems list shows the draft, so a button there would promise what it cannot keep).

Proof

  • Unit: the section teaches the connection (the commands at the site's address, the waiting line, the guide in a new tab) and renders nothing where the access hook says no. A mutant without the guard fails its test.
  • Real Chromium (new mcp-connect-section.browser.test.tsx, 11 tests): no sideways scroll, nothing past the section's edge and no command scrolling at 320/390/1280 px in English, German and French, on every tab, with a very long address; an audit in both themes.
  • Live on the docs capture stack: the page opens on Connect a coding agent, then MCP endpoint after a divider (screenshot retaken).
  • Gate on the committed tree (pinned bun 1.4.2): format, conflicts, links, manual, knip, lint, both typechecks, shared, server+pii, UI, the changed browser test and docs tests green.

@yannickmonney
yannickmonney added this pull request to the merge queue Oct 13, 2026
@yannickmonney
yannickmonney removed this pull request from the merge queue due to a manual request Oct 13, 2026
Where agents may sign in and the person may connect one, Settings > API >
MCP starts with the guided setup the Connected agents page opens in a
dialog: the commands for the agent in use, whether it has signed in yet,
a first prompt and the guide. Elsewhere the page stays what it was.

The guide link leaves the dialog footer as a part of its own. CONN-F17
and its reference row.
The MCP page guide and the endpoint reference name the commands the page
now starts with, in all three languages, and the screenshot is retaken.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant