mcp: fix bugs handling pointer types (#344)

Some bad merging in #338 led to a bad bug in the handling of structured
output for pointer output types. Add a conformance test and fix the bug.
This commit is contained in:
Robert Findley 2025-08-21 14:43:22 -04:00 • committed by GitHub
commit d8e18b34cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,7 @@ Fixed bugs:
-- tools --
greet
structured
-- client --
{
@ -63,6 +64,35 @@ greet
"additionalProperties": false
},
"name": "greet"
},
{
"inputSchema": {
"type": "object",
"required": [
"In"
],
"properties": {
"In": {
"type": "string",
"description": "the input"
}
},
"additionalProperties": false
},
"name": "structured",
"outputSchema": {
"type": "object",
"required": [
"Out"
],
"properties": {
"Out": {
"type": "string",
"description": "the output"
}
},
"additionalProperties": false
}
}
]
}