Fix incorrect capabilities handling for completion/complete
This PR fixes incorrect capabilities handling for `completion/complete`. As specified, the capability of `completion/complete` is `completions`, not `prompts`: https://modelcontextprotocol.io/specification/2025-03-26/server/utilities/completion#capabilities Note that in the Ruby SDK, `completion/complete`, like `logging/setLevel`, is not yet implemented. Therefore, an empty implementation has been added to server.rb.
This commit is contained in:
parent
89ef9d89e5
commit
d3dcde2460
1 changed files with 13 additions and 1 deletions
|
|
@ -60,6 +60,7 @@ module ModelContextProtocol
|
|||
# No op handlers for currently unsupported methods
|
||||
Methods::RESOURCES_SUBSCRIBE => ->(_) {},
|
||||
Methods::RESOURCES_UNSUBSCRIBE => ->(_) {},
|
||||
Methods::COMPLETION_COMPLETE => ->(_) {},
|
||||
Methods::LOGGING_SET_LEVEL => ->(_) {},
|
||||
}
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue