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ΒΆ

HaiveMCPIntegration

Integrates discovered MCP tools with Haive agents.

FunctionsΒΆ

demo_discovery_to_agent()

Demonstrate the complete workflow.

demo_manual_integration()

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.

async discover_tool(query: str) dict[str, Any] | NoneΒΆ

Discover an MCP tool/server by query.

async install_and_configure(server_name: str) boolΒΆ

Install and configure an MCP server.

async start_mcp_server(server_name: str) boolΒΆ

Start an MCP server.

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ΒΆ