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:
parent
6378df6f24
commit
d8e18b34cf
1 changed files with 46 additions and 4 deletions
30
mcp/testdata/conformance/server/tools.txtar
vendored
30
mcp/testdata/conformance/server/tools.txtar
vendored
|
|
@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue