Skip to content

Commit 5168003

Browse files
committed
rename private method
1 parent ce5ad24 commit 5168003

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mcp/client/http.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ def initialize(url:, version: DEFAULT_VERSION, headers: {})
1414
end
1515

1616
def tools
17-
response = make_request(method: "tools/list").body
17+
response = send_request(method: "tools/list").body
1818

1919
::MCP::Client::Tools.new(response)
2020
end
2121

2222
def call_tool(tool:, input:)
23-
response = make_request(
23+
response = send_request(
2424
method: "tools/call",
2525
params: { name: tool.name, arguments: input },
2626
).body
@@ -52,7 +52,7 @@ def require_faraday!
5252
"Add it to your Gemfile: gem 'faraday', '>= 2.0'"
5353
end
5454

55-
def make_request(method:, params: nil)
55+
def send_request(method:, params: nil)
5656
client.post(
5757
"",
5858
{

0 commit comments

Comments
 (0)