docs: make the local CIMD smoke deterministic, and fix two HTTPS-only claims
Copilot review round 4, four findings, all correct. The CIMD-off / CIMD-on pair the smoke guide documents is not a control without clearing OAuth state first: tokens and the registered client persist in oauth.json independently of the install-wide CIMD toggle, and the Inspector reuses valid stored tokens before prompting — so a leftover grant from an earlier CIMD-on run makes the CIMD-off phase connect and the negative control silently proves nothing. Both the spec's pair and the walkthrough in docs/test-servers.md now say to clear state (or isolate MCP_STORAGE_DIR) first. The composable server announces its MCP endpoint, not the metadata document — `server-composable.ts` prints a URL ending in `/mcp`. The guide called the announced URL a metadata URL; it now says to take the origin from that line and append `/client-metadata.json`. Two general statements elsewhere in the same file still defined CIMD as always HTTPS (the glossary row, and the Stytch section's opening), so a reader following them would have rejected the loopback fixture the same file now documents. Both note the exemption; the Stytch examples stay HTTPS, which they are. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfHQ8vMm5NBgzbUJ6UwxmB Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
a21fd0c161
commit
d7f90144c6
1 changed files with 16 additions and 4 deletions
|
|
@ -578,6 +578,14 @@ listener to hold the document and setting `NODE_TLS_REJECT_UNAUTHORIZED=0` in th
|
|||
environment so its own fetch of that document would succeed. That workaround is no longer needed — if
|
||||
you find it in a script or an older note, delete it.
|
||||
|
||||
⚠️ **Clear OAuth state before the run if you have connected to this fixture before.** Tokens and the
|
||||
registered client persist in `~/.mcp-inspector/storage/oauth.json` independently of the install-wide
|
||||
CIMD toggle, and the Inspector reuses valid stored tokens before prompting — so a leftover grant can
|
||||
carry a run that the registration path never actually completed, which is the same
|
||||
"it connected, therefore CIMD worked" trap `supportDCR: false` exists to close. Use **Clear OAuth
|
||||
state and disconnect** (Server Settings → Authorization), or point `MCP_STORAGE_DIR` at a throwaway
|
||||
directory, which additionally survives a restarted fixture having forgotten a client it once issued.
|
||||
|
||||
With that in place: set the metadata URL in Client settings, connect, and open **Connection Info**.
|
||||
It should read `Client registration — Client ID Metadata (CIMD)` with the **client id equal to the
|
||||
metadata URL**, which is what CIMD means and what distinguishes it from a DCR-issued
|
||||
|
|
|
|||
Loading…
Reference in a new issue