- Home
- MCP servers
- Gateway
Gateway
- typescript
2
GitHub Stars
typescript
Language
5 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"lunfengchen-gateway-mcp": {
"command": "[YOUR_PYTHON_PATH]",
"args": [
"[PATH_TO_FILESYSTEM_PY]"
]
}
}
}You are building an MCP Gateway that aggregates multiple third-party MCP Servers into a small set of top-level tools. This reduces the context your LLM needs to track and helps IDEs manage a larger toolset by presenting a concise, scalable interface.
How to use
Use this MCP Gateway from your MCP client to access a unified set of tools. The gateway exposes two external tools and forwards calls to the underlying MCP Servers transparently. For each server you add, the gateway automatically provides a corresponding use_{name} tool, so you can call all your MCP backends through a single, consistent interface.
How to install
Prerequisites: Python and Git must be installed on your system.
# Clone the project
git clone https://github.com/你的用户名/reverse-mcps.git
cd reverse-mcps/mcp_gateway
# Install the required Python package
pip install fastmcp
Additional configuration and usage notes
Configure the gateway by listing the MCP Servers you want to expose. Each server is defined with a command to start it and the arguments necessary to run it. The gateway will expose a set of top-level tools corresponding to each configured server.
{
"mcpServers": {
"filesystem": {
"command": "【你的python.exe路径】",
"args": ["【你的py文件路径】"]
},
"git": {
"command": "【你的python.exe路径】",
"args": ["【你的py文件路径】"]
},
"github": {
"command": "【你的python.exe路径】",
"args": ["【你的py文件路径】"]
}
}
}
示例:网关在 IDE 中的配置和使用
在你的 MCP 客户端配置网关时,包含网关对本地 MCP Server 的启动配置。以下示例展示了网关的本地启动配置,并包含可选的自动批准工具清单。
{
"mcpServers": {
"GateWay-Mcp": {
"command": "C:\\Users\\xiaofeng\\.pyenv\\pyenv-win\\versions\\3.11.9\\python.exe",
"args": [
"C:\\Users\\xiaofeng\\Desktop\\projects\\Gateway-Mcp\\gateway_mcp_server.py"
],
"disabled": false,
"autoApprove": [
"use_ida-pro-mcp",
"use_jadx-mcp-server",
"use_adb-mcp",
"use_proxypin-mcp"
]
}
}
}
添加更多 MCP Server
要添加新的 MCP Server,只需在配置中加入对应条目。网关会自动为其创建 use_{name} 工具并拉取最新描述,确保你可以随时访问新增服务器提供的功能。
Available tools
use_filesystem
Invoke operations provided by the local filesystem MCP server, such as listing tools, reading files, and performing read/write actions.
use_git
Interact with the Git MCP server to check status, commit changes, and manage repository actions.