Rubocop
This commit is contained in:
parent
55b03fc7aa
commit
e546d76991
3 changed files with 16 additions and 16 deletions
|
|
@ -30,7 +30,7 @@ module MCP
|
|||
nil # Simulate end of input
|
||||
end
|
||||
|
||||
def set_encoding(encoding)
|
||||
def set_encoding(encoding) # rubocop:disable Naming/AccessorMethodName
|
||||
# Mock implementation
|
||||
end
|
||||
|
||||
|
|
@ -131,7 +131,7 @@ module MCP
|
|||
@server.define_tool(
|
||||
name: "dynamic_tool",
|
||||
description: "A dynamically added tool",
|
||||
) do |**args|
|
||||
) do |**_args|
|
||||
{ result: "success" }
|
||||
end
|
||||
|
||||
|
|
@ -213,7 +213,7 @@ module MCP
|
|||
@server.define_prompt(
|
||||
name: "test_prompt",
|
||||
description: "Test prompt",
|
||||
) do |args, server_context:|
|
||||
) do |_args, _server_context:|
|
||||
MCP::PromptResponse.new(messages: [{ role: "user", content: "Test" }])
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ module MCP
|
|||
@server.define_tool(
|
||||
name: "dynamic_tool",
|
||||
description: "A dynamically added tool",
|
||||
) do |**args|
|
||||
) do |**_args|
|
||||
{ result: "success" }
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ module MCP
|
|||
@server = Server.new(
|
||||
name: "test_server",
|
||||
version: "1.0.0",
|
||||
configuration: configuration
|
||||
configuration: configuration,
|
||||
)
|
||||
|
||||
@mock_transport = MockTransport.new(@server)
|
||||
|
|
@ -92,7 +92,7 @@ module MCP
|
|||
expected_contexts = [
|
||||
{ notification: "tools_list_changed" },
|
||||
{ notification: "prompts_list_changed" },
|
||||
{ notification: "resources_list_changed" }
|
||||
{ notification: "resources_list_changed" },
|
||||
]
|
||||
|
||||
call_count = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue