fix: align tool error handling with MCP specification#540
Closed
tzolov wants to merge 3 commits intomodelcontextprotocol:mainmodelcontextprotocol/java-sdk:mainfrom
tzolov:improve-tool-call-error-handlingtzolov/mcp-java-sdk:improve-tool-call-error-handlingCopy head branch name to clipboard
Closed
fix: align tool error handling with MCP specification#540tzolov wants to merge 3 commits intomodelcontextprotocol:mainmodelcontextprotocol/java-sdk:mainfrom tzolov:improve-tool-call-error-handlingtzolov/mcp-java-sdk:improve-tool-call-error-handlingCopy head branch name to clipboard
tzolov wants to merge 3 commits intomodelcontextprotocol:mainmodelcontextprotocol/java-sdk:mainfrom
tzolov:improve-tool-call-error-handlingtzolov/mcp-java-sdk:improve-tool-call-error-handlingCopy head branch name to clipboard
Commits
Commits on Sep 7, 2025
fix: align tool error handling with MCP specification
Show description for 7e3f76ecommittedfix: Return tool errors as CallToolResult instead of throwing exceptions
Show description for 346d767committed
Commits on Sep 8, 2025
fix: Skip structured output validation for error tool results
Show description for f59dbafcommitted