-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Background
The latest MCP specification (2025-06-18) added support for structured tool output, but the current go-sdk implementation still uses workarounds.
Current Implementation
- Using
TextContentwith manually marshaled JSON CallToolResultFor[T]doesn't properly handle structured responses- go-sdk has TODO comment: "check that structured content is set in response"
Goal
When go-sdk catches up with the latest MCP specification:
- Replace manual JSON marshaling with native structured responses
- Remove
mustMarshalJSONworkaround - Use proper structured content types
References
- MCP Specification Changelog: https://modelcontextprotocol.io/specification/2025-06-18/changelog
- Structured tool output was added in PR #371
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels