mcp.integration.haive_agent_mcp_integrationΒΆ
Haive Agent + MCP Tool Integration.
Demonstrates the complete workflow: 1. Discover an MCP server/tool 2. Install and configure it 3. Create a haive agent that uses the MCP tool 4. Show the agent executing with the discovered tool
AttributesΒΆ
ClassesΒΆ
Integrates discovered MCP tools with Haive agents. |
FunctionsΒΆ
Demonstrate the complete workflow. |
|
Demonstrate manual integration steps. |
Module ContentsΒΆ
- class mcp.integration.haive_agent_mcp_integration.HaiveMCPIntegrationΒΆ
Integrates discovered MCP tools with Haive agents.
- async create_agent_with_mcp_tool(agent_type: str = 'simple', tool_query: str = 'calculator') Any | None ΒΆ
Create a haive agent with a discovered MCP tool.
- create_mcp_tool(server_name: str, tool_info: dict[str, Any]) langchain_core.tools.Tool ΒΆ
Create a LangChain tool from MCP server info.
- mcp_systemΒΆ
- mcp_toolsΒΆ
- process_managerΒΆ
- async mcp.integration.haive_agent_mcp_integration.demo_discovery_to_agent()ΒΆ
Demonstrate the complete workflow.
- async mcp.integration.haive_agent_mcp_integration.demo_manual_integration()ΒΆ
Demonstrate manual integration steps.
- mcp.integration.haive_agent_mcp_integration.loggerΒΆ