Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
On-demand tool discovery for all your MCPs and per-subagent MCP controls to preserve context window.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
GATEWAY_MCP_CONFIG, GATEWAY_RULES, GATEWAY_DEFAULT_AGENT, GATEWAY_DEBUGต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"agent-gateway": {
"command": "uvx",
"args": [
"agent-mcp-gateway"
],
"env": {
"GATEWAY_MCP_CONFIG": "ใส่ค่าของคุณ",
"GATEWAY_RULES": "ใส่ค่าของคุณ",
"GATEWAY_DEFAULT_AGENT": "ใส่ค่าของคุณ",
"GATEWAY_DEBUG": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add agent-gateway --env GATEWAY_MCP_CONFIG='ใส่ค่าของคุณ' --env GATEWAY_RULES='ใส่ค่าของคุณ' --env GATEWAY_DEFAULT_AGENT='ใส่ค่าของคุณ' --env GATEWAY_DEBUG='ใส่ค่าของคุณ' -- uvx agent-mcp-gatewayเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"agent-gateway": {
"command": "uvx",
"args": [
"agent-mcp-gateway"
],
"env": {
"GATEWAY_MCP_CONFIG": "ใส่ค่าของคุณ",
"GATEWAY_RULES": "ใส่ค่าของคุณ",
"GATEWAY_DEFAULT_AGENT": "ใส่ค่าของคุณ",
"GATEWAY_DEBUG": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"agent-gateway": {
"type": "stdio",
"command": "uvx",
"args": [
"agent-mcp-gateway"
],
"env": {
"GATEWAY_MCP_CONFIG": "ใส่ค่าของคุณ",
"GATEWAY_RULES": "ใส่ค่าของคุณ",
"GATEWAY_DEFAULT_AGENT": "ใส่ค่าของคุณ",
"GATEWAY_DEBUG": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
GATEWAY_MCP_CONFIG envGATEWAY_RULES envGATEWAY_DEFAULT_AGENT envGATEWAY_DEBUG envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub roddutra ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.5) เข้า registry 11 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, SuperCollider
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Make sound with SuperCollider: synths, drums, chords, melodies and soundscapes over OSC.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A Model Context Protocol (MCP) gateway that aggregates multiple MCP servers and provides policy-based access control for agents and subagents. Solves Claude Code's MCP context window waste by enabling on-demand tool discovery instead of loading all tool definitions upfront.
list_servers toolget_server_tools, execute_tool, middleware, metrics, hot reload, OAuth supportCurrent Version: M1-Core Complete (with OAuth)
When multiple MCP servers are configured in development environments (Claude Code, Cursor, VS Code), all tool definitions from all servers load into every agent's and subagent's context window at startup:
The Agent MCP Gateway acts as a single MCP server that proxies to multiple downstream MCP servers based on configurable per-agent rules:
The gateway sits between agents and downstream MCP servers, exposing only 3 lightweight tools. When an agent needs specific functionality, it discovers available servers and tools through the gateway, which filters visibility based on policy rules - agents only see servers and tools they have access to. This reduces each agent's context window to only relevant tools, while the gateway handles proxying authorized requests to downstream servers.
[View detailed diagram with examples →](docs/diagram-full.png) (includes downstream servers, tools, and gateway rules examples)
get_*, *_user)get_gateway_status (debug mode only)# Creates ~/.config/agent-mcp-gateway/ with template configuration files
uvx agent-mcp-gateway --init
This generates two template files ready to customize:
mcp.json - Your downstream MCP servers (Brave, Postgres, etc.)mcp-gateway-rules.json - Per-agent access policies (who can use which servers/tools)For local development: See Development section.
After running uvx agent-mcp-gateway --init (see Installation), edit the generated template files:
# Define your downstream MCP servers
nano ~/.config/agent-mcp-gateway/.mcp.json
nano ~/.config/agent-mcp-gateway/.mcp-gateway-rules.json
See Configuration section for detailed examples and Configuration File Discovery for alternative file locations.
Claude Code CLI:
claude mcp add agent-mcp-gateway uvx agent-mcp-gateway
Manual configuration:
{
"mcpServers": { "agent-mcp-gateway": { "command": "uvx", "args": ["agent-mcp-gateway"], "env": { "GATEWAY_MCP_CONFIG": "~/.config/agent-mcp-gateway/.mcp.json", "GATEWAY_RULES": "~/.config/agent-mcp-gateway/.mcp-gateway-rules.json", "GATEWAY_DEFAULT_AGENT": "developer" } } } }
Note: The env variables are optional if using default config locations. See Environment Variables Reference for all options.
The gateway's tool descriptions are self-documenting, but for proper access control you should configure how your agents identify themselves. Choose the approach that fits your use case:
For different agents with different permissions, configure each agent to pass its identity.
Add this to your agent's system prompt (e.g., CLAUDE.md, .claude/agents/agent-name.md):
## MCP Gateway Access
Available Tools (via agent-mcp-gateway):
You have access to MCP servers through the agent-mcp-gateway. The specific servers and tools available to you are determined by the gateway's access control rules.
Tool Discovery Process:
When you need to use tools from downstream MCP servers:
agent_id: "YOUR_AGENT_NAME" in ALL gateway tool calls for proper access controllist_servers to discover which servers you have access toget_server_tools with the specific server name to discover available toolsexecute_tool to invoke tools with appropriate parametersImportant: Always include agent_id: "YOUR_AGENT_NAME" in your gateway tool calls. This ensures proper access control and audit logging.
Replace YOUR_AGENT_NAME with your agent's identifier (e.g., "researcher", "backend", "admin").
Examples: See .claude/agents/researcher.md and .claude/agents/mcp-developer.md for complete configuration examples.
For simpler setups where all agents should have the same permissions, or when using MCP clients without system prompt configuration (e.g., Claude Desktop), configure a default agent using either method:
Option A: Environment Variable
# Set in your MCP client configuration
export GATEWAY_DEFAULT_AGENT=developer
**Note:** The agent specified (e.g., "developer") must exist in your `.mcp-gateway-rules.json` file with appropriate permissions.
Option B: "default" Agent in Rules
{
"agents": { "default": { "allow": { "servers": ["*"] } } }, "defaults": { "deny_on_missing_agent": false } }
**Note:** Allowing all servers (`"servers": ["*"]`) without specifying tool restrictions grants access to all tools on all servers.
With either approach, agents can omit agent_id in tool calls - the gateway uses your configured default agent automatically.
# Show version
agent-mcp-gateway --version
agent-mcp-gateway --init
agent-mcp-gateway --debug
agent-mcp-gateway --help
The gateway searches for configuration files in this order:
GATEWAY_MCP_CONFIG environment variable (if set).mcp.json in current directory~/.config/agent-mcp-gateway/.mcp.json (home directory)./config/.mcp.json (fallback)GATEWAY_RULES environment variable (if set).mcp-gateway-rules.json in current directory~/.config/agent-mcp-gateway/.mcp-gateway-rules.json (home directory)./config/.mcp-gateway-rules.json (fallback)Tip: Use agent-mcp-gateway --init to create the home directory configs on first run.
The gateway requires two configuration files:
File: mcp.json (searched in multiple locations)
Defines the downstream MCP servers the gateway will proxy to. Uses the standard MCP config format compatible with Claude Code and other coding agents:
{
"mcpServers": { "brave-search": { "description": "Web search via Brave Search API", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-brave-search"], "env": { "BRAVE_API_KEY": "${BRAVE_API_KEY}" } }, "postgres": { "description": "PostgreSQL database access and query execution", "command": "uvx", "args": ["mcp-server-postgres"], "env": { "DATABASE_URL": "${DATABASE_URL}" } }, "remote-server": { "description": "Custom remote API integration", "url": "https://example.com/mcp", "transport": "http", "headers": { "Authorization": "Bearer ${API_TOKEN}" } } } }
Server Descriptions (Recommended): Adding a description field to each server helps AI agents understand what each server provides and when to use it. Descriptions are always returned by list_servers, enabling agents to make informed decisions about which servers to query for tools. While optional, descriptions significantly improve agent tool discovery and decision-making.
Supported Transports:
stdio - Local servers via npx/uvx (specified with command + args)http - Remote HTTP servers (specified with url)Environment Variables:
${VAR_NAME} syntax for environment variable substitutionexport BRAVE_API_KEY=your-keyImportant - GUI Applications (Claude Desktop, etc.): If you use ${VAR_NAME} syntax in .mcp.json, note that macOS GUI applications run in isolated environments without access to your shell's environment variables. For Claude Desktop and similar apps, add API keys to the gateway's env object in your MCP client configuration:
{
"mcpServers": { "agent-mcp-gateway": { "command": "uvx", "args": ["agent-mcp-gateway"], "env": { "BRAVE_API_KEY": "your-actual-key-here", "DATABASE_URL": "postgresql://...", "GATEWAY_DEFAULT_AGENT": "claude-desktop" } } } }
(If you hardcode values directly in .mcp.json without ${VAR_NAME} syntax, this is not necessary.)
File: mcp-gateway-rules.json (searched in multiple locations)
Defines per-agent access policies using deny-before-allow precedence:
{
"agents": { "researcher": { "allow": { "servers": ["brave-search", "context7"], "tools": {
ตัดมาแค่ช่วงต้น อ่านต่อใน repo