AI代理编排服务

ProBound AI Orchestrator (MCP Edition) 是一个高并发的AI代理后端,利用模型上下文协议(MCP)标准化和扩展代理与工具之间的通信,适用于需要高吞吐量和弹性的AI服务场景。

  • by zayesosa
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 cyrexez/probound-demo-mcp

使用说明

ProBound AI Orchestrator (MCP Edition)

A high-concurrency AI agent backend utilizing the Model Context Protocol (MCP) to standardize and scale agent-to-tool communication. This project was developed as a research-focused extension to demonstrate advanced infrastructure for resilient, high-throughput AI services. 🚀 Architectural Advantages

  1. Model Context Protocol (MCP) Integration Instead of traditional REST-based tool calls, this orchestrator acts as an MCP Host. It communicates with a dedicated MCP Tool Server via JSON-RPC over Standard I/O (stdio). This decouples the "thinking" (API logic) from the "doing" (Tool execution), allowing for LLM-agnostic tool discovery.

  2. Zero Network Overhead By utilizing a persistent pipe between the Host and the Tool Server, we eliminated the 15% failure rate observed in standard REST architectures caused by external API throttling and TCP handshake overhead.

  3. Non-Blocking Orchestration Leveraging Python's asyncio and the mcp SDK, the orchestrator manages 5,000 simultaneous tool calls without blocking the FastAPI event loop, ensuring the system remains responsive even when integrations are slow.

🛠 Setup & Execution Prerequisites Docker & Docker Compose

Python 3.11+ (for local testing)

Launching the System Bash

Build and start the orchestrator and load tester

docker-compose up --build -d Running the Stress Test Access the Locust UI at http://localhost:8089.

Configure the test:

Users: 1000

Spawn Rate: 100

Host: http://mcp-orchestrator:8000

Click Start Swarming and monitor the real-time performance graphs.

📁 Repository Structure /app: FastAPI Orchestrator (MCP Host) logic.

/mcp_service: The Tool Provider (MCP Server) hosting the integration tools.

locust.py: Performance benchmarking suite.

Dockerfile & docker-compose.yml: Standardized deployment and scaling environment.