
fareedkhan-dev/production-grade-mcp-agentic-system 是从 https://github.com/fareedkhan-dev/production-grade-mcp-agentic-system. 导入的 MCP 服务器候选
概览
fareedkhan-dev/production-grade-mcp-agentic-system 是从 https://github.com/fareedkhan-dev/production-grade-mcp-agentic-system. 导入的 MCP 服务器候选
概述(AI 翻译)
一个设计用于实际发布的MCP服务器参考实现
多租户 ·认证 ·可观察 ·速率限制 ·缓存 ·电路破损 ·被治理
📖 完整分步博客攻略
这个仓库是一篇长篇博客的配套代码库,博客文章会从头到尾讲解每一个组件,并附带上下文解释每一行代码。如果你想在阅读代码前理解架构背后的“为什么”,可以从这里开始。
🔗 **构建带有代理系统→的生产级MCP服务器架构
🎯 这是什么
大多数MCP教程以@tool装饰器返回"hello world"结束。这对演示来说没问题。这不是出货的决定。
该仓库是一个参考实现的MCP服务器,设计用于生产环境运行:多租户、认证、可观察、速率限制、缓存、电路破坏和治理。它将公司的异构数据层(Postgres、Elasticsearch、S3、矢量数据库)作为单一、安全的工具表面暴露给AI代理,并配备四代理支持副驾驶(Planner→Retriever → Synthesizer → Critic),该系统端到端使用该层。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
🎯 What This Is
Most MCP tutorials end with a @tool decorator that returns "hello world". That is fine for a demo. It is not what ships.
This repository is a reference implementation of an MCP server designed to run in production: multi-tenant, authenticated, observable, rate-limited, cached, circuit-broken, and governed. It exposes a company’s heterogeneous data layer (Postgres, Elasticsearch, S3, vector DB) to AI agents as a single, secure tool surface, and ships with a four-agent support copilot (Planner → Retriever → Synthesizer → Critic) that uses it end to end.
The codebase is deliberately organised around twelve components that keep showing up on the 3 AM pager when teams skip them. Each one lives in its own module and can be read, replaced, or extended independently.
🏗️ Architecture Overview
🧩 The 12 Components
| # | Component | Lives in | What it gives you |
|---|---|---|---|
| 1 | 🚪 Transport & Session Layer | server.py |
stdio for local, Streamable HTTP for remote, horizontal-scale-friendly sessions |
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"production-mcp": {
"type": "http",
"url": "http://localhost:8080/mcp",
"headers": {
"Authorization": "Bearer ${ATLAS_MCP_TOKEN}",
"X-Tenant-Id": "acme"
}
}
}
}