mcp/server: advertise completions only if installed (#213)
Previously, completions would always be advertised as a capability even if the CompletionHandler was not installed by the server. This CL fixes that.
This commit is contained in:
parent
0cde9623d3
commit
faaf77dc05
6 changed files with 38 additions and 36 deletions
|
|
@ -58,7 +58,6 @@ code_review
|
|||
"id": 2,
|
||||
"result": {
|
||||
"capabilities": {
|
||||
"completions": {},
|
||||
"logging": {},
|
||||
"prompts": {
|
||||
"listChanged": true
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ code_review
|
|||
"id": 1,
|
||||
"result": {
|
||||
"capabilities": {
|
||||
"completions": {},
|
||||
"logging": {},
|
||||
"prompts": {
|
||||
"listChanged": true
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@ info.txt
|
|||
"id": 1,
|
||||
"result": {
|
||||
"capabilities": {
|
||||
"completions": {},
|
||||
"logging": {},
|
||||
"resources": {
|
||||
"listChanged": true
|
||||
|
|
|
|||
1
mcp/testdata/conformance/server/tools.txtar
vendored
1
mcp/testdata/conformance/server/tools.txtar
vendored
|
|
@ -30,7 +30,6 @@ greet
|
|||
"id": 1,
|
||||
"result": {
|
||||
"capabilities": {
|
||||
"completions": {},
|
||||
"logging": {},
|
||||
"tools": {
|
||||
"listChanged": true
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ response with its latest supported version.
|
|||
"id": 1,
|
||||
"result": {
|
||||
"capabilities": {
|
||||
"completions": {},
|
||||
"logging": {}
|
||||
},
|
||||
"protocolVersion": "2025-06-18",
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ support.
|
|||
"id": 1,
|
||||
"result": {
|
||||
"capabilities": {
|
||||
"completions": {},
|
||||
"logging": {}
|
||||
},
|
||||
"protocolVersion": "2024-11-05",
|
||||
|
|
|
|||
Loading…
Reference in a new issue