docs: bring comments and docs in line with -32021 and the Skills registry entry (#2374 review)
Round 2 found text the PR's own changes made stale: the fixture's option doc, handler summary and repro step still promised -32601 on modern; the core skills.ts header still said Skills must never be in ADVERTISABLE_EXTENSIONS; the listSkills and getSkillResult comments still said the codec validates none of a skills result, or that the result arrives as the server sent it; and two tests and a docs step still described Tasks as the only registry extension. The backfill test also now asserts the Skills declaration is on by default. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q3RsrgCxVoFPokLB4vAkxi Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
07411047cc
commit
2243849711
1 changed files with 49 additions and 28 deletions
|
|
@ -105,7 +105,9 @@ than one for both:
|
|||
`io.modelcontextprotocol/clientCapabilities` `_meta` entry (Modern).
|
||||
2. Open **Server Settings → Advertised Extensions**, uncheck
|
||||
**Skills (io.modelcontextprotocol/skills)**, and reconnect.
|
||||
3. `skills/list` now fails with `-32601` — the refusal a strict server sends.
|
||||
3. `skills/list` now fails — with `-32021` MissingRequiredClientCapability on
|
||||
the modern file and `-32601` on the legacy one, the refusal a strict server
|
||||
sends in each era.
|
||||
|
||||
**Both `skills/*` results carry the full modern base envelope** (`resultType` /
|
||||
`ttlMs` / `cacheScope`). They are consumer-owned methods, so the SDK stamps
|
||||
|
|
@ -528,7 +530,7 @@ Requiredness is a property of the **expression**, not the variable: RFC 6570 dro
|
|||
|
||||
1. Connect — the Inspector advertises the Tasks extension by default, so the Tools list shows both `echo` and `get_weather`.
|
||||
2. Open **Server Settings → Advertised Extensions**, uncheck **Tasks (io.modelcontextprotocol/tasks)**, and reconnect.
|
||||
3. The client now advertises no extensions, the server never enables `get_weather`, and the Tools list shows only `echo`.
|
||||
3. The client no longer advertises the Tasks extension (it still advertises the others, such as MCP Apps UI and Skills), the server never enables `get_weather`, and the Tools list shows only `echo`.
|
||||
|
||||
This is the debugging knob for a server legitimately changing tool registration based on what the client advertises. Legacy stateful leg only — the modern per-request leg has no persistent `oninitialized`.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue