Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 642 Bytes

File metadata and controls

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

BREAKING: 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. Users 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), per the MCP specification.

Added ProtocolErrorCode.ResourceNotFound to the ProtocolErrorCode enum.