go-sdk/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Rob Findley 3b86fb5601 internal/mcp: export the Transport interface; add a Server example
Export the Transport interface, as there's no reason users shouldn't be
able to define their own transports: they are just bidirectional
streams.

Also, add a godoc example for basic Server usage.

Finally, remove some TODOs that existed due to a bad merge: they are
related to the (as yet unsubmitted) streamable HTTP transport.

Change-Id: Id669793fc80630e667d50611fe2876d09125a025
Reviewed-on: https://go-review.googlesource.com/c/tools/+/668675
TryBot-Bypass: Robert Findley <rfindley@google.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Auto-Submit: Robert Findley <rfindley@google.com>
2025-04-28 13:38:53 -07:00
..
client.go internal/mcp: implement ping, and test request interleaving 2025-04-23 19:15:29 -07:00
content.go internal/mcp: an MCP SDK prototype 2025-04-22 14:37:47 -07:00
example_test.go internal/mcp: export the Transport interface; add a Server example 2025-04-28 13:38:53 -07:00
mcp.go internal/mcp: implement cancellation 2025-04-23 19:15:39 -07:00
mcp_test.go internal/mcp/internal/jsonschema: schema definition 2025-04-25 08:33:53 -07:00
server.go internal/mcp: implement cancellation 2025-04-23 19:15:39 -07:00
sse.go internal/mcp: export the Transport interface; add a Server example 2025-04-28 13:38:53 -07:00
sse_test.go internal/mcp: dynamically determine the mcp server based on URL 2025-04-28 12:16:50 -07:00
tool.go internal/mcp/internal/jsonschema: schema definition 2025-04-25 08:33:53 -07:00
transport.go internal/mcp: export the Transport interface; add a Server example 2025-04-28 13:38:53 -07:00
transport_test.go internal/mcp: implement HTTP SSE transport 2025-04-23 19:15:20 -07:00
util.go internal/mcp: implement ping, and test request interleaving 2025-04-23 19:15:29 -07:00