Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

SEP-2164: Standardize resource not found error code (-32602)#2164

Open
pja-ant wants to merge 6 commits intomainmodelcontextprotocol/modelcontextprotocol:mainfrom
sep/resource-not-found-errormodelcontextprotocol/modelcontextprotocol:sep/resource-not-found-errorCopy head branch name to clipboard
Open

SEP-2164: Standardize resource not found error code (-32602)#2164
pja-ant wants to merge 6 commits intomainmodelcontextprotocol/modelcontextprotocol:mainfrom
sep/resource-not-found-errormodelcontextprotocol/modelcontextprotocol:sep/resource-not-found-errorCopy head branch name to clipboard

Conversation

@pja-ant
Copy link
Contributor

@pja-ant pja-ant commented Jan 28, 2026

This SEP standardizes the error code for resource not found from -32002 to -32602 (Invalid Params), aligning with the JSON-RPC specification. Includes the draft spec change.

@pja-ant pja-ant force-pushed the sep/resource-not-found-error branch from 5faa2ee to 348d8e7 Compare January 28, 2026 17:42
@pja-ant pja-ant force-pushed the sep/resource-not-found-error branch from 348d8e7 to 310784e Compare January 28, 2026 17:45
@pja-ant pja-ant changed the title SEP: Standardize resource not found error code (-32602) SEP-2164: Standardize resource not found error code (-32602) Jan 28, 2026
@pja-ant pja-ant marked this pull request as ready for review January 28, 2026 17:48
@pja-ant pja-ant requested a review from a team as a code owner January 28, 2026 17:48
@maxisbey
Copy link
Contributor

related: modelcontextprotocol/python-sdk#1821

@jonathanhefner
Copy link
Member

Previous discussion (for reference): #1545.

@pja-ant
Copy link
Contributor Author

pja-ant commented Jan 30, 2026

Previous discussion (for reference): #1545.

yeah I remember this, but didn't realize it was already so inconsistent. Any client has to handle various values anyway to work with real servers out there, so we might as well just trying and get all servers to converge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proposal SEP proposal without a sponsor. SEP

Projects

Status: Draft

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.