Tutorials

Welcome to the haive-mcp tutorials! These hands-on guides will walk you through using the Model Context Protocol (MCP) with Haive’s 1900+ available servers.

Tutorial Overview

Tutorial 1: Understanding MCP

Learn what MCP is and how it enables dynamic tool integration with 1900+ available servers.

Tutorial 2: Your First MCP Server

Create your first agent with automatic MCP server discovery and installation.

Tutorial 3: Installer Types

Understand how different MCP servers are installed automatically behind the scenes.

Quick Start

Jump right in with a simple example:

import asyncio
from haive.mcp.agents.enhanced_mcp_agent import EnhancedMCPAgent
from haive.core.engine.aug_llm import AugLLMConfig

async def quick_start():
    # Agent automatically discovers and installs tools from 1900+ servers
    agent = EnhancedMCPAgent(
        name="my_agent",
        engine=AugLLMConfig(),
        mcp_categories=["core"],  # Auto-install filesystem, database, search
        auto_install=True
    )

    await agent.initialize_mcp()
    result = await agent.arun("List files in current directory")
    print(result)

asyncio.run(quick_start())

Next Steps

After completing the tutorials:

  • Explore the Examples for real-world use cases

  • Check out the Guides for advanced topics

  • Browse the API Reference for detailed documentation