Internal Release 0.6.0

Rename Context Arg
This commit is contained in:
Tyler Rowsell 2025-04-23 16:30:01 -04:00 • committed by Topher Bullock
commit 62184957e0

View file

@ -44,7 +44,7 @@ module ModelContextProtocol
attr_reader :input_schema_value
attr_reader :annotations_value
def call(*args, context:)
def call(*args, server_context:)
raise NotImplementedError, "Subclasses must implement call"
end
@ -108,8 +108,8 @@ module ModelContextProtocol
description description
input_schema input_schema
self.annotations(annotations) if annotations
define_singleton_method(:call) do |*args, context:|
instance_exec(*args, context:, &block)
define_singleton_method(:call) do |*args, server_context:|
instance_exec(*args, server_context:, &block)
end
end
end