go-sdk/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Rob Findley 3db848abec mcp: implement a concurrency model for calls
Implement the concurrency model described in #26: notifications are
synchronous, but calls are asynchronous (except for 'initialize'). To
achieve this, implement jsonrpc2.Async(ctx) to signal asynchronous
handling. This is simpler to use than returning ErrAsyncResponse and
calling Respond, and since this is an internal detail we don't need to
worry too much about whether it's idiomatic.

Add tests that verify both features, for both client and server.

Also:
- replace req.ID.IsValid with req.IsCall
- remove the methodHandler type as we can just use MethodHandler

Fixes #26
2025-08-19 11:21:02 -04:00
..
jsonrpc2 mcp: implement a concurrency model for calls 2025-08-19 11:21:02 -04:00
readme mcp: introduce Requests (#267) 2025-08-12 17:49:50 -04:00
util internal/util: move FieldJSONInfo into jsonschema/util (#251) 2025-08-06 12:07:57 -04:00
xcontext x/tools: modernize interface{} -> any 2025-02-19 15:14:27 -08:00