Skip to content

fix: standardize resource not found error code#1037

Open
CrypticCortex wants to merge 1 commit into
modelcontextprotocol:mainfrom
CrypticCortex:fix/resource-not-found-error-code
Open

fix: standardize resource not found error code#1037
CrypticCortex wants to merge 1 commit into
modelcontextprotocol:mainfrom
CrypticCortex:fix/resource-not-found-error-code

Conversation

@CrypticCortex

@CrypticCortex CrypticCortex commented Jun 24, 2026

Copy link
Copy Markdown

Summary

  • Align McpError.RESOURCE_NOT_FOUND with SEP-2164 by using JSON-RPC INVALID_PARAMS (-32602).
  • Update the resource-not-found error code regression expectation.

Test plan

  • ./mvnw -pl mcp-core -Dtest=McpErrorTest test
  • ./mvnw -pl mcp-core test
  • ./mvnw -pl mcp-core spring-javaformat:validate
  • git diff --check

Closes #1001

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.

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

1 participant