Wrapper to make MCP tools compatible with LangChain's tool interface.
This wrapper handles the conversion between LangChain's tool calling format and MCP's tool execution format, ensuring seamless integration.
MCPToolWrapper(
self,
mcp_tool,
mcp_session,
)| Name | Type | Description |
|---|---|---|
mcp_tool* | unknown | The MCP tool instance |
mcp_session* | unknown | The MCP session for tool execution |
| Name | Type |
|---|---|
| mcp_tool | unknown |
| mcp_session | unknown |