mcp: fix conformance tests (#132)
- Use new AddXXX API. - Update goldens to reflect new capability logic. Fixes #131.
This commit is contained in:
parent
bf7e518215
commit
de4b788e59
5 changed files with 70 additions and 75 deletions
|
|
@ -29,12 +29,6 @@ code_review
|
|||
"logging": {},
|
||||
"prompts": {
|
||||
"listChanged": true
|
||||
},
|
||||
"resources": {
|
||||
"listChanged": true
|
||||
},
|
||||
"tools": {
|
||||
"listChanged": true
|
||||
}
|
||||
},
|
||||
"protocolVersion": "2024-11-05",
|
||||
|
|
|
|||
|
|
@ -47,14 +47,8 @@ info.txt
|
|||
"capabilities": {
|
||||
"completions": {},
|
||||
"logging": {},
|
||||
"prompts": {
|
||||
"listChanged": true
|
||||
},
|
||||
"resources": {
|
||||
"listChanged": true
|
||||
},
|
||||
"tools": {
|
||||
"listChanged": true
|
||||
}
|
||||
},
|
||||
"protocolVersion": "2024-11-05",
|
||||
|
|
|
|||
6
mcp/testdata/conformance/server/tools.txtar
vendored
6
mcp/testdata/conformance/server/tools.txtar
vendored
|
|
@ -30,12 +30,6 @@ greet
|
|||
"capabilities": {
|
||||
"completions": {},
|
||||
"logging": {},
|
||||
"prompts": {
|
||||
"listChanged": true
|
||||
},
|
||||
"resources": {
|
||||
"listChanged": true
|
||||
},
|
||||
"tools": {
|
||||
"listChanged": true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,18 +19,9 @@ response with its latest supported version.
|
|||
"result": {
|
||||
"capabilities": {
|
||||
"completions": {},
|
||||
"logging": {},
|
||||
"prompts": {
|
||||
"listChanged": true
|
||||
},
|
||||
"resources": {
|
||||
"listChanged": true
|
||||
},
|
||||
"tools": {
|
||||
"listChanged": true
|
||||
}
|
||||
"logging": {}
|
||||
},
|
||||
"protocolVersion": "2025-03-26",
|
||||
"protocolVersion": "2025-06-18",
|
||||
"serverInfo": {
|
||||
"name": "testServer",
|
||||
"version": "v1.0.0"
|
||||
|
|
|
|||
|
|
@ -19,16 +19,7 @@ support.
|
|||
"result": {
|
||||
"capabilities": {
|
||||
"completions": {},
|
||||
"logging": {},
|
||||
"prompts": {
|
||||
"listChanged": true
|
||||
},
|
||||
"resources": {
|
||||
"listChanged": true
|
||||
},
|
||||
"tools": {
|
||||
"listChanged": true
|
||||
}
|
||||
"logging": {}
|
||||
},
|
||||
"protocolVersion": "2024-11-05",
|
||||
"serverInfo": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue