Internal Release 0.2.5

changes in this release:
- fix ping response #17
- add prompts and resources support to init response #18
- Bump json from 2.10.1 to 2.10.2 #14
This commit is contained in:
Topher Bullock 2025-03-18 15:35:35 -04:00
commit f5a3567494
2 changed files with 35 additions and 24 deletions

View file

@ -23,7 +23,7 @@ module ModelContextProtocol
"prompts/list" => method(:list_prompts),
"prompts/get" => method(:get_prompt),
"initialize" => method(:init),
"ping" => method(:ping),
"ping" => ->(_) { {} },
}
end
@ -72,13 +72,10 @@ module ModelContextProtocol
def capabilities
@capabilities ||= {
experimental: nil,
logging: nil,
prompts: nil,
resources: nil,
prompts: {},
resources: {},
tools: {},
model_config: nil,
}.compact
}
end
def server_info
@ -96,10 +93,6 @@ module ModelContextProtocol
}
end
def ping(request)
"pong"
end
def list_tools(request)
@tools.map { |_, tool| tool.to_h }
end

View file

@ -1,5 +1,5 @@
# frozen_string_literal: true
module ModelContextProtocol
VERSION = "0.2.4"
VERSION = "0.2.5"
end