mcp_adapter
mcp_adapter
¶
MCP tool adapter — wraps external MCP server tools as native BaseTool instances.
Classes¶
MCPToolAdapter
¶
Bases: BaseTool
Wraps a single MCP-hosted tool as a native BaseTool.
This adapter enables tools discovered from external MCP servers to
be used seamlessly within OpenJarvis agents via the ToolExecutor.
| PARAMETER | DESCRIPTION |
|---|---|
client
|
The
TYPE:
|
tool_spec
|
The
TYPE:
|
Source code in src/openjarvis/tools/mcp_adapter.py
Functions¶
execute
¶
execute(**params: Any) -> ToolResult
Execute the remote MCP tool and return a ToolResult.
Source code in src/openjarvis/tools/mcp_adapter.py
MCPToolProvider
¶
MCPToolProvider(client: MCPClient)
Discovers tools from an MCP server and returns BaseTool adapters.
| PARAMETER | DESCRIPTION |
|---|---|
client
|
The
TYPE:
|