Skip to content

Commit 1373ddf

Browse files
authored
mcp: add a TODO (#31)
1 parent 5aabc33 commit 1373ddf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mcp/tool.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ type ServerTool struct {
4444
// The input schema for the tool is extracted from the request type for the
4545
// handler, and used to unmmarshal and validate requests to the handler. This
4646
// schema may be customized using the [Input] option.
47+
//
48+
// TODO(jba): check that structured content is set in response.
4749
func NewServerTool[In, Out any](name, description string, handler ToolHandlerFor[In, Out], opts ...ToolOption) *ServerTool {
4850
st, err := newServerToolErr[In, Out](name, description, handler, opts...)
4951
if err != nil {

0 commit comments

Comments
 (0)