Skip to main content
Connect any LangGraph agent to HoopAI using the MCP server and the langchain-mcp-adapters library. Your agent gets all 36 HoopAI tools automatically — no manual tool wrappers needed.

Installation

Quickstart

Set these environment variables before running:

Multi-agent architecture

For production use, split tools across specialist agents controlled by a router. This keeps each agent focused and prevents accidental cross-domain actions.

Specialist subagents

Give each subagent an allowlist of tool names so it can only call the tools relevant to its domain:

Router pattern

The router classifies intent and delegates to one specialist:

Full multi-agent example

Implementation checklist

  • One shared MCP client, reused across all subagents
  • Per-subagent tool allowlists
  • Approval middleware for write operations
  • Log all MCP calls with locationId, tool name, timestamp, and status
  • Add replay tests for common workflows (contact search, send message, move opportunity)
Last modified on March 7, 2026