-
gateway/mcp: richer resolver Call (CallResult/isError, coded errors) + notifications (#3334)
发布于
2026-06-29 06:19:39 +00:00 | 624 次提交 在此版本后已推送到 master- gateway/mcp: richer resolver Call + spec-correct HTTP handler
Resolver.Call now returns (*CallResult, error): a tool that ran but failed sets CallResult.IsError (returned as a tools/call result with isError:true, per the MCP spec), while a protocol/pre-check failure returns an error -- an RPCError carries a specific JSON-RPC code. The HTTP handler also answers notifications/ (and id-less requests) with 204 and no body.
- gateway/mcp: richer resolver Call + spec-correct HTTP handler
Resolver.Call now returns (*CallResult, error): a tool that ran but failed sets CallResult.IsError (returned as a tools/call result with isError:true, per the MCP spec), while a protocol/pre-check failure returns an error -- an RPCError carries a specific JSON-RPC code. The HTTP handler also answers notifications/ (and id-less requests) with 204 and no body.
- gateway/mcp: richer resolver Call + spec-correct HTTP handler
Resolver.Call now returns (*CallResult, error): a tool that ran but failed sets CallResult.IsError (returned as a tools/call result with isError:true, per the MCP spec), while a protocol/pre-check failure returns an error -- an RPCError carries a specific JSON-RPC code. The HTTP handler also answers notifications/ (and id-less requests) with 204 and no body.
下载附件