go-sdk/internal/jsonrpc2
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Rob Findley 14b18b2645 internal/mcp: implement cancellation
Use the existing jsonrpc2 preemption mechanism to implement MCP
cancellation.

This was mostly straightforward, except where I got confused about ID
unmarshaling. Leave a note about using omitempty when it is available.

Change-Id: I13e073f08c5d5c2cc78d882da4e6ff47f09fb340
Reviewed-on: https://go-review.googlesource.com/c/tools/+/667578
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
2025-04-23 19:15:39 -07:00
..
conn.go internal/mcp: implement HTTP SSE transport 2025-04-23 19:15:20 -07:00
frame.go internal/mcp: add batching support 2025-04-22 14:39:09 -07:00
jsonrpc2.go x/tools: modernize interface{} -> any 2025-02-19 15:14:27 -08:00
jsonrpc2_test.go internal/mcp: an MCP SDK prototype 2025-04-22 14:37:47 -07:00
messages.go internal/mcp: implement cancellation 2025-04-23 19:15:39 -07:00
net.go internal/jsonrpc2_v2: rework Connection concurrency 2022-10-31 15:02:00 +00:00
serve.go internal/mcp: implement HTTP SSE transport 2025-04-23 19:15:20 -07:00
serve_go116.go all: upgrade go directive to at least 1.23.0 [generated] 2025-02-18 06:38:13 -08:00
serve_pre116.go all: upgrade go directive to at least 1.23.0 [generated] 2025-02-18 06:38:13 -08:00
serve_test.go internal/mcp: an MCP SDK prototype 2025-04-22 14:37:47 -07:00
wire.go x/tools: modernize interface{} -> any 2025-02-19 15:14:27 -08:00
wire_test.go x/tools: modernize interface{} -> any 2025-02-19 15:14:27 -08:00