Skip to content

docs(schema): clarify MethodNotFoundError scope vs MissingRequiredClientCapabilityError#2775

Merged
dsp-ant merged 1 commit into
modelcontextprotocol:mainfrom
kurtisvg:clarify-method-not-found-scope
May 29, 2026
Merged

docs(schema): clarify MethodNotFoundError scope vs MissingRequiredClientCapabilityError#2775
dsp-ant merged 1 commit into
modelcontextprotocol:mainfrom
kurtisvg:clarify-method-not-found-scope

Conversation

@kurtisvg

Copy link
Copy Markdown
Contributor

The "client returns -32601 when the server requests roots" flow no longer exists under MRTR (servers no longer send standalone server-to-client requests, and an inputRequest for an undeclared client capability is forbidden). And undeclared client capabilities are now signalled by MissingRequiredClientCapabilityError (-32003), not -32601.

Rewrite the MethodNotFoundError JSDoc to scope -32601 to unknown methods and unadvertised server capabilities, and point readers at -32003 for the undeclared-client-capability case. Replace the stale roots-not-supported.json example with prompts-not-supported.json.

@kurtisvg
kurtisvg requested a review from a team as a code owner May 22, 2026 22:30
@kurtisvg
kurtisvg requested a review from CaitieM20 May 22, 2026 22:42
CaitieM20
CaitieM20 previously approved these changes May 27, 2026
@dsp-ant dsp-ant added this to the 2026-07-28-FINAL milestone May 29, 2026
…entCapabilityError

The "client returns -32601 when the server requests roots" flow no longer
exists under MRTR (servers no longer send standalone server-to-client
requests, and an inputRequest for an undeclared client capability is
forbidden). And undeclared client capabilities are now signalled by
MissingRequiredClientCapabilityError (-32003), not -32601.

Rewrite the MethodNotFoundError JSDoc to scope -32601 to unknown methods
and unadvertised server capabilities, and point readers at -32003 for
the undeclared-client-capability case. Replace the stale
roots-not-supported.json example with prompts-not-supported.json.
@dsp-ant
dsp-ant force-pushed the clarify-method-not-found-scope branch from 61544a1 to 14a6e3a Compare May 29, 2026 10:47
@dsp-ant
dsp-ant enabled auto-merge May 29, 2026 10:47
@dsp-ant
dsp-ant disabled auto-merge May 29, 2026 10:55
@dsp-ant
dsp-ant merged commit 3a4ee0b into modelcontextprotocol:main May 29, 2026
4 checks passed
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.

3 participants