Repository navigation
docs: correct the MCP setup instructions in working-with-ai - #6216
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Visual Regression38 of 478 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 18 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
The client-specific setup is improved, but the Cline example still uses type: "http". Cline's current parser schema requires type: "streamableHttp"; builders who copy this example get no Astryx tools even though the endpoint itself initializes and lists tools correctly.
Please use Cline's supported transport value and keep the other client-specific examples unchanged.
There was a problem hiding this comment.
Thank you for splitting the MCP setup per client — replacing the invalid generic entry with a measured Claude Code setup and client-matched instructions for Cline, Cursor, and Claude Desktop is the right fix.
Two bounded issues remain before this is reliable to copy:
- The Claude Code Bash example is not copy-safe in the CLI output. Rendered through
astryx docs working-with-ai, the block starts with// Claude Code, equivalent to the JSON abovebecause the CLI formatter emits every code-block label as a//comment regardless of language. A shell rejects that line (//: is a directory), and “the JSON above” points at the Cursor snippet that immediately precedes it, not Claude Code's. Dropping that block's label, or rendering Bash labels with#, fixes it. - Windsurf's setup shape is unvalidated. The first snippet groups Windsurf with Claude Code's
{ "type": "http", "url": … }object, but no Windsurf documentation or reproduction is provided for that exact shape — and this guide's own premise is that an unrecognized entry is skipped silently. Please either cite Windsurf-specific evidence for that shape or remove Windsurf from the label.
Everything else checks out: the JSON snippets parse, the changeset is valid, and the Cline correction is in place.
[Automated review]
6478957 to
c6a983e
Compare
There was a problem hiding this comment.
Thank you for the per-client split — and for following through on the earlier feedback.
Both issues from the previous review are fixed in this revision:
- The Claude Code terminal command no longer has a code-block label, so the CLI output no longer renders an invalid
// …first line into the Bash block, and the command now sits directly after the Claude Code JSON it writes, with the sameastryxserver name used in every snippet. - Windsurf is removed from the guide rather than grouped with Claude Code's shape, so no unverified client setup is claimed.
The three JSON snippets parse, use a consistent server name and URL, Cline keeps its separate streamableHttp entry, and Cursor and Claude Desktop each keep their client-matched path. This looks ready to merge.
[Automated review]
# Conflicts: # packages/cli/assets/docs/working-with-ai.doc.mjs
There was a problem hiding this comment.
Thanks for the per-client rewrite. There are no blocking issues: the Claude Code and Cline entries match what those clients' config parsers accept for this endpoint, and the new section comes through intact in both the CLI output and the generated docsite data. One optional accuracy fix before landing: claude mcp add saves to Claude Code's private local scope by default, not to .mcp.json. Add --scope project to the command, or reword "write that entry" to say where the entry is stored.
[Automated review]
| text: 'Claude Code can also write that entry from the terminal:', | ||
| }, | ||
| { | ||
| type: 'code', | ||
| lang: 'bash', | ||
| code: `claude mcp add --transport http astryx https://astryx.atmeta.com/mcp`, |
There was a problem hiding this comment.
Non-blocking: claude mcp add defaults to --scope local. That saves the server privately for this project in Claude Code's local config, not in the .mcp.json entry shown above. To write that entry:
claude mcp add --transport http --scope project astryx https://astryx.atmeta.com/mcpOr reword this sentence to say the default saves the server privately for this project.
Summary
The MCP Server section of the
working-with-aiguide documents a config snippet that no MCP client accepts. It uses"type": "url", which is not a transport type, presents one block as valid for every tool when the shape differs per client, and namesclaude_desktop_config.jsonas the place to add a remote server, which is not how Claude Desktop connects to one.The failure is silent. Claude Code parses the entry, does not recognise the type, and skips the server with a warning rather than an error — so a reader believes Astryx is connected and only notices that the tools never appear.
This reaches two surfaces, since
apps/docsitegenerates its docs registry from the same source:astryx docs working-with-ai, and the guide published on the docsite. The MCP server itself is healthy, so this is docs-only.Reproduction
npx @astryxdesign/[email protected] docs working-with-ai— the MCP Server sectionprints the snippet.
.mcp.jsonin any project.claude mcp list.Same file, same directory, only
typechanged:.mcp.jsonentryclaude mcp list"type": "url"(as documented)Skipped — unknown MCP server type "url"url, notypeSkipped — add "type": "http" (or "sse" / "ws")"type": "http"xds: https://astryx.atmeta.com/mcp (HTTP) - ✔ ConnectedThe endpoint is fine:
initializereturnsastryx 2.0.0andtools/listreturnssearchandget.Why these values
Valid transport types are
http(aliasstreamable-http),sse,ws,stdio(Claude Code). The MCP registry usesstreamable-httpandssefor remote entries (spec). Cursor's documented.cursor/mcp.jsonexamples pass a bareurl, and its schema types that field asenum: ['http', 'sse'], defaulting tohttpwhen aurlis given (Cursor). No client definesurlas a transport type.claude_desktop_config.jsonholds stdio servers (local); Claude Desktop adds remote ones through Settings, then Connectors, then Add custom connector(remote).
Changes
packages/cli/assets/docs/working-with-ai.doc.mjs, MCP Server section:claude_desktop_config.jsonsentence with the Connectors UI path.claude mcp add --transport httpone-liner, which writes the JSON itself.apps/docsite/src/generated/is gitignored and rebuilt bypnpm generate, so nogenerated file is committed here.
After
Claude Desktop: Settings → Connectors → Add custom connector.
Test Plan
npx @astryxdesign/cli docs working-with-airenders the new section cleanlypnpm lint:strict(coverscheck:changesets)pnpm test,pnpm buildpnpm --filter @astryxdesign/docsite generateand confirm the guide pageshows the new snippets
claude mcp add --transport http xds <url>writes the documented snippetNotes
Cursor and Claude Desktop behaviour is taken from their official docs linked above, not reproduced locally. The Claude Code rows in the table were measured.