mcp.integration.haive_agent_mcp_integration =========================================== .. py:module:: mcp.integration.haive_agent_mcp_integration .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: mcp.integration.haive_agent_mcp_integration.logger Classes ------- .. autoapisummary:: mcp.integration.haive_agent_mcp_integration.HaiveMCPIntegration Functions --------- .. autoapisummary:: mcp.integration.haive_agent_mcp_integration.demo_discovery_to_agent mcp.integration.haive_agent_mcp_integration.demo_manual_integration Module Contents --------------- .. py:class:: HaiveMCPIntegration Integrates discovered MCP tools with Haive agents. .. py:method:: create_agent_with_mcp_tool(agent_type: str = 'simple', tool_query: str = 'calculator') -> Any | None :async: Create a haive agent with a discovered MCP tool. .. py:method:: create_mcp_tool(server_name: str, tool_info: dict[str, Any]) -> langchain_core.tools.Tool Create a LangChain tool from MCP server info. .. py:method:: discover_tool(query: str) -> dict[str, Any] | None :async: Discover an MCP tool/server by query. .. py:method:: install_and_configure(server_name: str) -> bool :async: Install and configure an MCP server. .. py:method:: start_mcp_server(server_name: str) -> bool :async: Start an MCP server. .. py:attribute:: mcp_system .. py:attribute:: mcp_tools .. py:attribute:: process_manager .. py:function:: demo_discovery_to_agent() :async: Demonstrate the complete workflow. .. py:function:: demo_manual_integration() :async: Demonstrate manual integration steps. .. py:data:: logger