Repository navigation
fix(monitoring): drop the perpetually-warning OAuth live-discovery check - #23
Merged
Merged
Conversation
The "Live link discovery via OAuth authorize" check could never pass against this server: /oauth/authorize issues a script-initiated navigation (an HTML page that calls location.replace), not an HTTP 3xx redirect — the II /mcp URL carries its params in the fragment and form-action CSP is enforced across redirects — so there is no Location header to read and the probe was a permanent WARN with no actionable meaning. The MCP->II pairing is already established by ii-target (configured / naming convention) and confirmed for real by ii-mcp-flow, which probes the resolved II origin's /mcp delegation flow. So the live-discovery probe added no signal. Remove the ii-discovery check and the now-unused discoverIiViaAuthorize helper (checkLinkage becomes a synchronous resolve), drop its suggestion, and update the README. A healthy deployment now reports all green. Add a checkLinkage unit test. 15/15 tests pass; live beta run is overall: pass. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01K2T7oqtTPLDSasZC3b4Yrv
There was a problem hiding this comment.
Pull request overview
Removes an obsolete MCP→II “live discovery” check from the monitoring/mcp-status dashboard that could never pass (because /oauth/authorize performs script-initiated navigation rather than an HTTP redirect), leaving only actionable linkage/health signals.
Changes:
- Deletes the
ii-discoverycheck and thediscoverIiViaAuthorizehelper; makescheckLinkagea synchronous “configured-or-derived origin resolve”. - Updates suggestions and docs to reflect that
/oauth/authorizeis not usable for headless confirmation, and that/mcpdelegation flow health is the actionable signal. - Adds a unit test for
checkLinkage.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| monitoring/mcp-status/checks.js | Removes OAuth-based “live discovery” probe; simplifies linkage resolution and updates suggestions. |
| monitoring/mcp-status/checks.test.js | Adds a checkLinkage unit test and updates imports accordingly. |
| monitoring/mcp-status/README.md | Updates wording and the beta snapshot to reflect removal of the warning check. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Address Copilot review on PR #23: the docs said the MCP→II pairing is "confirmed for real" by the II-health section. That overstates it — probing the resolved II origin's /mcp flow only shows that origin is reachable and has delegation enabled; it does not prove the MCP server actually hands off to that II instance (the pairing is inferred from config / the naming convention, not live-verified, especially now that the /oauth/authorize discovery probe is gone). Reword the checkLinkage JSDoc, the ii-target check description, and the README to state the guarantee accurately. Comment/doc-only. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01K2T7oqtTPLDSasZC3b4Yrv
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.
What
Removes the last non-green item from the status dashboard (
monitoring/mcp-status): the "Live link discovery via OAuth authorize" check, which was a permanent, non-actionableWARN.Follow-up to #21. With #21, the only remaining non-green item on
https://mcp.beta.id.ai/status/is thisii-discoverycheck.Why it's obsolete
The check (
discoverIiViaAuthorize) registered a throwaway client, hit/oauth/authorize, and expected an HTTP 3xx redirect with aLocationheader pointing at II — then reportedWARNwhen it didn't get one.But this server's
/oauth/authorizedeliberately returns a script-initiated navigation (an HTML page that callslocation.replace), not an HTTP redirect, because:/mcpURL carries its params in the fragment (#…), which an HTTPLocationredirect drops; andform-actionCSP is enforced across redirects.So the probe always sees
HTTP 200with noLocationheader → permanentWARNthat can never pass, regardless of health.It also added no signal: the MCP→II pairing is already established by
ii-target(configured / naming-convention) and confirmed for real byii-mcp-flow(#21), which probes the resolved II origin's/mcpdelegation flow.Changes
ii-discoverycheck and the now-unuseddiscoverIiViaAuthorizehelper;checkLinkagebecomes a synchronous origin-resolve (configured ?? naming-convention), with a comment explaining why we don't probe the redirect headlessly.buildSuggestionsand the unusedisAllowedOriginimport inchecks.js.checkLinkageunit test (the function was previously untested).No changes to
report.js,server.js,cli.js, orpublic/index.html.Verification
node --test monitoring/mcp-status/checks.test.js— 15/15 pass.node monitoring/mcp-status/cli.js): overallpass, all three sections green, exit code0(so/api/statusreturns200).🤖 Generated with Claude Code
Generated by Claude Code