Skip to content

Commit 6e5d6fd

Browse files
committed
fix unmarshalling error for Meta property
1 parent 57740b6 commit 6e5d6fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ func (r *CallToolResult) UnmarshalJSON(data []byte) error {
504504
// Unmarshal Meta
505505
if meta, ok := raw["_meta"]; ok {
506506
if metaMap, ok := meta.(map[string]any); ok {
507-
r.Meta = metaMap
507+
r.Meta = NewMetaFromMap(metaMap)
508508
}
509509
}
510510

0 commit comments

Comments
 (0)