Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async with stdio_client(StdioServerParameters(command="mcp-server")) as (read, w
await mcp_client.initialize()

tools_result = await mcp_client.list_tools()
runner = await client.beta.messages.tool_runner(
runner = client.beta.messages.tool_runner(
model="claude-sonnet-4-20250514",
max_tokens=1024,
messages=[{"role": "user", "content": "Use the available tools"}],
Expand Down
2 changes: 1 addition & 1 deletion src/anthropic/lib/tools/mcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def async_mcp_tool(
from anthropic.lib.tools.mcp import async_mcp_tool

tools_result = await mcp_client.list_tools()
runner = await client.beta.messages.tool_runner(
runner = client.beta.messages.tool_runner(
model="claude-sonnet-4-20250514",
max_tokens=1024,
tools=[async_mcp_tool(t, mcp_client) for t in tools_result.tools],
Expand Down