java-sdk/mcp/src/main/java
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jordan Zimmerman a14ef425d6 If a handler throws McpError, use its values for the RPC error
Handlers should be able to throw RPC errors and `McpError` is the
right exception for that.

Improve `DefaultMcpStatelessServerHandler` error handler to check if the
exception is `McpError` and, if so, use it to build the RPC error
result instead of re-writing as `INTERNAL_ERROR`.
2025-08-08 10:20:53 +02:00
..
io/modelcontextprotocol If a handler throws McpError, use its values for the RPC error 2025-08-08 10:20:53 +02:00