go-sdk/mcp/protocol
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Amsterdam 71265ba130 internal/mcp: adjust content types
- Change the names of some content-related types to better match
  the spec. Most notably, rename Resource to EmbeddedResource,
  because the former has a different meaning in the spec.

- Use []byte intead of string where the spec says "base64-encoded data."

- Unexport EmbeddedResource.ToWire.

Change-Id: I9f65efaadadda1b3abc0e58c64a743af1a72852c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/671362
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Bypass: Jonathan Amsterdam <jba@google.com>
Commit-Queue: Jonathan Amsterdam <jba@google.com>
2025-05-13 08:21:01 -07:00
..
content.go internal/mcp: adjust content types 2025-05-13 08:21:01 -07:00
doc.go internal/mcp/protocol: move out of mcp/internal, as it's used in the API 2025-05-06 10:18:38 -07:00
generate.go internal/mcp/protocol: make type name more convenient 2025-05-13 08:19:37 -07:00
protocol.go internal/mcp: implement roots 2025-05-13 07:52:49 -07:00