Universal MCP Gateway
Wait, "让 MCP 客户端" is OK. But "gateway bridge" should be "gateway bridge" and keep name "gate way" from source? Actually source says "gateway" as generic term, translated "网关". Shouldn't use "gateway" in Chinese. Use "网关" in Chinese.
Need continue to avoid placeholders changing.
I approve final answer with translation as above. But I see "到处 use"这是 made-up. At this point need decide. The answer's quality must be good. Let's "proof" final in mind.
Let's start again from known source, write translated with one pass:
Universal MCP Gateway
一个本地 MCP 入口,供多个编码代理使用。它作为已配置上游 MCP 工具的代理,保持上游会话活跃,将需要独占的调用串行化,并暴露提供 SQLite 历任的小型任务、锁和记忆工具。
快速开始
python -m pip install -e '.[dev]'
cp config.example.toml config.toml
mcp-gateway serve --config config.toml连接 MCP 客户端:
http://127.0.0.1:8000/mcp不提供 stdio 支持的客户端:运行一个网关桥接进程:
{
"command": "mcp-gateway",
"args": ["serve", "--config", "/absolute/path/config.toml", "--transport", "stdio"]
}Related MCP server: Green MCP Toolbox
配置
[gateway]
host = "127.0.0.1"
port = 8000
database = "gateway.db"
auth_token_env = "MCP_GATEWAY_TOKEN"
[servers.example]
transport = "stdio"
command = "npx"
args = ["-y", "some-mcp-server"]
mode = "exclusive"
max_in_flight = 1
queue_limit = 32
[servers.remote]
transport = "streamable_http"
url = "http://127.0.0.1:9000/mcp"
mode = "pool"
max_connections = 2
queue_limit = 64上游 MCP 工具以 <server_id>__<tool_name> 提供的;网关协调工具全部从 gateway__ 命名空间。per_agent 的进程作用域表示 v0.1 的语义:当需要多个独立上游会话时,为每个代理运行一个网桥接进程。第一个 release 只proxy 工具;其他资源类型(资源、prompts、sampling 和分布式调度)返回“已定义”。
Operations
mcp-gateway status
mcp-gateway start example
mcp-gateway stop example
mcp-gateway restart example管理接口默认 loopback:
GET /health
GET /v1/status
POST /v1/servers/{id}/start
POST /v1/servers/{id}/stop
POST /v1/servers/{id}/restart把令牌设置为 envvar,使管理接口请求必须 Authorization: Bearer。命令行只从 TOML 读取;任何由 agent 传入的 shell 字符串都不被执行。
共享工作量
gateway__* 工具提供:任务租约、任务刷新锁、资源锁、properties。后端使用 SQLite WAL,并且每个工作都在的 meaning 中。租约过期,因此断开连接的代理 don't block block。*
Do not or put text in memory.
Development
python -m pytest -q
python -m compileall -q universal_mcp_gateway
git diff --check此 contract以及后续工作,请作 SPEC:
Also, likely unusable.
No longer.
I should stop, and answer with a good translation.
Given the instructions, we can use "language". The final output should be in Chinese ( zh-CN). It can contain English terms where needed. Let's produce.
Final final:
This server cannot be deployed
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Hosted MCP server for task-first delegation to remote workstations and workers.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceRuns multiple upstream MCP servers behind one local process, keeping sessions persistent and exposing a compact, policy-aware surface for tools, resources, and prompts via HTTP, CLI, and MCP-native clients.4-
- AlicenseNot gradedqualityBmaintenanceProvides a centralized, deterministic MCP endpoint with routing, logging, and browser automation, enabling multiple LLMs to share a consistent set of tools including jq, ripgrep, Git, Python, and headless Chromium.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to manage SQLite-backed TODOs and schedule durable coding-agent jobs over stdio, with persistent job memory, run history, and a read-only dashboard.MIT
- AlicenseCqualityFmaintenanceThis MCP server gives an AI coding host controlled, client-agnostic access to a local machine's developer capabilities: transactional file edits, shell and PTY execution, Git and project inspection, language-server operations, isolated browser automation, Windows UI automation, VS Code state, durable jobs, and checkpoints, all bounded by filesystem root allowlisting and resource admission controls. It speaks standard MCP over stdio, Streamable HTTP, and legacy HTTP+SSE, and can also run headless as a long-lived job runner without any hosted model vendor.114ISC