# function-call-agent-mcp **Repository Path**: suzhidong/function-call-agent-mcp ## Basic Information - **Project Name**: function-call-agent-mcp - **Description**: 蜂群agent - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-05 - **Last Updated**: 2026-02-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: langchain, MCP, skills ## README # Hive Mind Agent System This project implements a hierarchical AI Agent system ("Hive Mind") using LangChain, MCP (Model Context Protocol), and a Sci-Fi Web Interface. ## Structure - **web/**: Vue.js + Vite frontend with Three.js robot visualization. - **server/**: Express + LangChain backend. Acts as the Main Agent. - **mcps/**: Independent MCP servers (Sub-agents). Currently includes `math-mcp`. ## Prerequisites - Node.js installed. - OpenAI API Key. ## Setup 1. **Configure Environment:** Open `server/.env` and set your OpenAI API Key: ``` OPENAI_API_KEY=sk-... ``` 2. **Install Dependencies (if not done):** ```bash cd web && npm install cd ../server && npm install cd ../mcps/math-mcp && npm install ``` ## Running the System You need to run the Server and the Web Frontend in separate terminals. **Terminal 1: Server (Main Agent)** ```bash cd server npm start # OR node index.js ``` The server will run on `http://localhost:3000`. It will automatically spawn the `math-mcp` sub-agent. **Terminal 2: Web Frontend** ```bash cd web npm run dev ``` Open the displayed URL (usually `http://localhost:5173`) in your browser. ## Features - **Sci-Fi UI:** 3D glowing robot interface. - **Streaming:** Real-time typewriter effect responses. - **Hive Mind Logic:** - Ask general questions -> Main Agent answers. - Ask math questions (e.g., "Calculate 123 * 456") -> Delegated to Math MCP Agent.