Merge pull request #340 from koic/use_server_tools_instead_of_instance_variable_get
Use `Server#tools` instead of `instance_variable_get`
This commit is contained in:
commit
9090cb6ee3
1 changed files with 1 additions and 1 deletions
|
|
@ -1390,7 +1390,7 @@ module MCP
|
|||
Tool::Response.new({ "response" => message })
|
||||
end
|
||||
|
||||
stored_tool = @server.instance_variable_get(:@tools)["defined_tool"]
|
||||
stored_tool = @server.tools["defined_tool"]
|
||||
assert_not_nil(stored_tool)
|
||||
assert_equal(MCP::Tool::OutputSchema.new({ type: "object", properties: { response: { type: "string" } }, required: ["response"] }), stored_tool.output_schema)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue