Skip to main content

MCPToolRunner

Defined in the MCP module.
AI Agent A dedicated thread for running MCP operations.

Constructor

server_params
Any
required
No description available.
timeout
Any
default:"60"
No description available.

Methods

run()

Main thread function that processes MCP requests.

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 24

Tools Concept

Create Custom Tools

Tool Development

MCP Concept

MCP Lifecycle