Skip to content

docs: fix inaccuracies in Troubleshooting and Reference pages - #290

Merged
shigechika merged 2 commits into
mainfrom
fix/docs-accuracy
Jul 5, 2026
Merged

shigechika merged 2 commits into
mainfrom
fix/docs-accuracy

Conversation

@shigechika

Copy link
Copy Markdown
Owner

Summary

The Troubleshooting and Reference pages added in a prior direct-to-main change (bypassing the branch/PR//review workflow — an outside tool pushed straight to main) contained several factual errors, found while auditing the content against the actual code and GitHub issue history:

Troubleshooting.md/.ja.md

  • 5 of 6 GitHub issue citations pointed at real-but-unrelated issues (verified with gh issue view against the actual titles and against WORKAROUNDS.md's existing citations). One (#242) linked anthropics/claude-code when the code's own #242 reference is this repo's own issue.
  • The SSE-stream-drop section described the old hang behavior; it now reflects the synthesized-error fix shipped in v0.25.1 (run_sse: synthesize error responses for requests left in-flight when the SSE stream drops #272/fix(run_sse): synthesize errors for requests in flight when the SSE stream drops #282).
  • Re-attributed sections to citations that actually match: #39586 (pagination), #70386 (Mcp-Session-Id not echoed), #34498/#38631 (session lost), #44652 (step-up retry), #34804 (NO_PROXY), #53267/#65036 (proactive refresh), #60061 (SSE drop).
  • Dropped a couple of citations that didn't map to any real tracked issue (e.g. "browser doesn't open") rather than inventing one.

Reference.md/.ja.md

  • Removed a fabricated exit code (2 = "OAuth timeout or user cancelled" — the code never calls sys.exit(2); that code is argparse's own usage-error exit). Documented the real codes: 0/1/2/130.
  • Fixed --oauth-scope — described as "(repeatable)" but it's a single string flag (space-separated multiple scopes in one value).
  • Removed unfounded logging claims ("query strings redacted", "verbose output") and replaced with what the code actually does (a single [mcp-stdio]-prefixed relay log plus bare error:/warning: startup messages; no verbose mode exists).
  • Fixed the Retry-After RFC citation from RFC 7230 to RFC 9110 §10.2.3, matching the code and WORKAROUNDS.md.
  • Adjusted the top-level MCP spec citation — 2025-11-25 only applies to the optional Client ID Metadata Documents extension; the transport in general use negotiates 2025-06-18.

The scaffold work itself (new Troubleshooting/Reference pages, nav wiring, CI caching) is a good addition — this PR only corrects the content.

Test plan

  • mkdocs build --strict passes (en + ja)
  • Every GitHub issue citation verified against its real title via gh issue view
  • Exit codes and logging behavior verified by grepping sys.exit( / print(...stderr across cli.py, relay.py, server.py, oauth.py
  • /review this PR before merge

The Troubleshooting page cited GitHub issue numbers that did not match
their described symptoms (verified against the real issue titles via
`gh issue view` and against WORKAROUNDS.md's existing citations) — most
were swapped to an unrelated issue, and one linked anthropics/claude-code
instead of this repo's own issue tracker. The SSE-drop section also
described the pre-#272 hang behavior instead of the synthesized-error
fix shipped in v0.25.1.

The Reference page claimed a fabricated exit code (`2` for OAuth
timeout — the code never calls `sys.exit(2)`; that code is actually
argparse's own usage-error exit), described `--oauth-scope` as
repeatable when it is a single string flag, asserted request logging
behavior (query-string redaction, verbose token-exchange logs) with no
basis in the code, cited RFC 7230 for `Retry-After` parsing where the
code and WORKAROUNDS.md use RFC 9110 §10.2.3, and led with an MCP
spec version (2025-11-25) that only applies to the optional Client ID
Metadata Documents extension rather than the transport in general use
(2025-06-18).

Both English and Japanese pages are corrected in tandem.
The review of PR #290 found that guides/connect-remote.md(.ja) still
gave blanket "set --oauth-scope" advice for any AADSTS error on
Microsoft Entra ID, which now conflicts with troubleshooting.md's
corrected, specific fix for AADSTS9010010 (--no-resource-indicator,
not --oauth-scope). Point the guide at the troubleshooting section
instead of restating divergent advice.
@shigechika
shigechika merged commit 7953e19 into main Jul 5, 2026
8 checks passed
@shigechika
shigechika deleted the fix/docs-accuracy branch July 5, 2026 00:08
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