This commit is contained in:
Riley Shott 2025-06-03 12:19:17 -07:00
commit e546d76991
3 changed files with 16 additions and 16 deletions

View file

@ -30,7 +30,7 @@ module MCP
nil # Simulate end of input nil # Simulate end of input
end end
def set_encoding(encoding) def set_encoding(encoding) # rubocop:disable Naming/AccessorMethodName
# Mock implementation # Mock implementation
end end
@ -131,7 +131,7 @@ module MCP
@server.define_tool( @server.define_tool(
name: "dynamic_tool", name: "dynamic_tool",
description: "A dynamically added tool", description: "A dynamically added tool",
) do |**args| ) do |**_args|
{ result: "success" } { result: "success" }
end end
@ -213,7 +213,7 @@ module MCP
@server.define_prompt( @server.define_prompt(
name: "test_prompt", name: "test_prompt",
description: "Test prompt", description: "Test prompt",
) do |args, server_context:| ) do |_args, _server_context:|
MCP::PromptResponse.new(messages: [{ role: "user", content: "Test" }]) MCP::PromptResponse.new(messages: [{ role: "user", content: "Test" }])
end end

View file

@ -181,7 +181,7 @@ module MCP
@server.define_tool( @server.define_tool(
name: "dynamic_tool", name: "dynamic_tool",
description: "A dynamically added tool", description: "A dynamically added tool",
) do |**args| ) do |**_args|
{ result: "success" } { result: "success" }
end end

View file

@ -33,7 +33,7 @@ module MCP
@server = Server.new( @server = Server.new(
name: "test_server", name: "test_server",
version: "1.0.0", version: "1.0.0",
configuration: configuration configuration: configuration,
) )
@mock_transport = MockTransport.new(@server) @mock_transport = MockTransport.new(@server)
@ -92,7 +92,7 @@ module MCP
expected_contexts = [ expected_contexts = [
{ notification: "tools_list_changed" }, { notification: "tools_list_changed" },
{ notification: "prompts_list_changed" }, { notification: "prompts_list_changed" },
{ notification: "resources_list_changed" } { notification: "resources_list_changed" },
] ]
call_count = 0 call_count = 0