MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / mcp_tool_runner.py

File mcp_tool_runner.py

examples/mcp_tool_runner.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""Example showing how to use MCP helpers with tool_runner().
2
3Connects to an MCP server, converts its tools to Anthropic-compatible tools
4using async_mcp_tool(), and runs them in a tool_runner() loop.

Callers

nothing calls this directly

Calls 3

AsyncAnthropicClass · 0.90
mainFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected