Uh oh!
There was an error while loading. Please reload this page.
docs(readme): note the sign-in step the claude mcp add one-liner needs - #11019
Merged
Conversation
…eds (#10319) The "Your app is AI-operable, for free" section's copy-paste command — `claude mcp add --transport http my-app http://localhost:3000/api/v1/mcp` — registers the MCP server correctly, but the next natural step (an agent actually calling a tool) 401s until the caller signs in. Measured live, at head, against a freshly booted `examples/app-crm`: unauthenticated `initialize` returns `401 {"code":"UNAUTHENTICATED","message":"Unauthorized: a valid OAuth access token or API key is required"}`, matching the finding this closes. The README gave no hint that a sign-in step follows the command. The linked docs page, content/docs/ai/connect-mcp.mdx ("Connect an MCP Client"), already carries the step in full — interactive OAuth browser login for the exact same command, plus a headless API-key flow for CI/containers — so the fix is a one-sentence pointer here, not a rewrite of a page that already correctly carries the weight this README delegates to. Fixes#10319 Claude-Session: https://claude.ai/code/session_019bmVFqoQPq63zhKrxdYG1r Co-authored-by: Claude <noreply@anthropic.com>
os-elon
marked this pull request as ready for review
August 22, 2026 08:34
Uh oh!
There was an error while loading. Please reload this page.
Contributor
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 32562656477 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
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 freeto 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.
Fixes#10319
What was wrong
The root README's "Your app is AI-operable, for free" section hands the reader a copy-paste one-liner:
Run it, then try to actually use the connection, and it 401s — no hint anywhere in the README that a sign-in step follows. Re-derived by content at head (the file has moved several times today via #10881/#10929/#10968, then #10321 and #10320): the snippet still lives at
README.md:171-173on this branch, unchanged in shape from the card.The two-part fix — both halves verified
1. Read the linked docs page first (per triage's framing).
content/docs/ai/connect-mcp.mdx— the page the README delegates to — already carries the auth step in full: a "Claude Code (one command)" section explaining that interactive clients use OAuth and the first tool call opens a browser login, a headless API-key flow for CI/containers, and a troubleshooting table that names the exact 401 this card is about. The docs page is not missing anything — no docs-page finding to file. The gap is entirely in the README, which presents the command with no pointer to any of that.2. The README fix — one clarifying sentence after the snippet, no change to the command itself (inlining full auth setup here would just move the defect the README already correctly delegates elsewhere):
-Objects are exposed automatically; actions opt in with
ai: { exposed: true }.-See Connect an MCP Client.
+The first tool call opens a browser to sign you in — each deployment is its own
+OAuth server, so there's no token to copy-paste. Headless setups (CI,
+containers) use an API key instead. Objects are exposed automatically; actions
+opt in with
ai: { exposed: true }. See+Connect an MCP Client for both flows.