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

@ -50,7 +50,7 @@ module ModelContextProtocol
attr_reader :description_value
attr_reader :arguments_value
def template(args, context:)
def template(args, server_context:)
raise NotImplementedError, "Subclasses must implement template"
end
@ -98,8 +98,8 @@ module ModelContextProtocol
prompt_name name
description description
arguments arguments
define_singleton_method(:template) do |args, context:|
instance_exec(args, context:, &block)
define_singleton_method(:template) do |args, server_context:|
instance_exec(args, server_context:, &block)
end
end
end