Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 578 Bytes

File metadata and controls

15 lines (11 loc) · 578 Bytes
@modelcontextprotocol/core minor
@modelcontextprotocol/server major

Fix error handling for unknown tools and resources per MCP spec.

Tools: Unknown or disabled tool calls now return JSON-RPC protocol errors with code -32602 (InvalidParams) instead of CallToolResult with isError: true. Callers who checked result.isError for unknown tools should catch rejected promises instead.

Resources: Unknown resource reads now return error code -32002 (ResourceNotFound) instead of -32602 (InvalidParams).

Added ProtocolErrorCode.ResourceNotFound.