MCPToolRunner
Defined in the MCP module.AI Agent A dedicated thread for running MCP operations.
Constructor
Any
required
No description available.
Any
default:"60"
No description available.
Methods
run()
Main thread function that processes MCP requests.
read_resource()
Read an MCP resource by URI and return its normalised contents.
get_prompt()
Fetch an MCP prompt template rendered with
arguments.call_tool()
Call an MCP tool and wait for the result.
shutdown()
Signal the thread to shut down.
Source
View on GitHub
praisonaiagents/mcp/mcp.py at line 25
