RA

roddutra/agent-mcp-gateway

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

41 stars 5 forks 품질 75 트렌드 12MIT

roddutra/agent-mcp-gateway는 MCP 서버 후보가 https://github.com/roddutra/agent-mcp-gateway.에서 수입되었습니다

개요

roddutra/agent-mcp-gateway는 MCP 서버 후보가 https://github.com/roddutra/agent-mcp-gateway.에서 수입되었습니다

개요(AI 번역)

여러 MCP 서버를 구성하는 모델 Context Protocol (MCP) 게이트웨이와 에이전트 및 시약에 대한 정책 기반 액세스 제어를 제공합니다. Solves Claude Code의 MCP 컨텍스트 윈도우 폐기물은 모든 도구 정의를 로드하는 대신 On-demand tool discovery를 가능하게 합니다.

상태

  • ✅ M0: Foundation - 구성, 정책 엔진, 감사 로깅, list_servers 도구
  • ✅ ** M1: Core** - 프록시 인프라, get_server_tools, execute_tool, 미들웨어, 메트릭스, 핫 리로드, OAuth 지원
  • M M2: 생산 - HTTP 수송, 건강 검사 (예정)
  • M M3 : DX - 단일 시약 모드, 구성 검증 CLI, 도커 (예정)

현재 버전: M1-Core 완료 (OAuth 포함)

내용 표

  • 개요
  • 설치
  • 빠른 시작
  • 명령행 옵션
  • 구성 파일 Discovery
  • 구성
  • 사용
  • Gateway 도구
  • 보안 고려
  • 문제 해결
  • 테스트
  • 개발
  • 건축
  • 미래 특징
  • 문서
  • 기여
  • 라이센스
  • 지원
  • Acknowledgments의 특징

개요

문제

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Agent MCP Gateway

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.

Status

  • ✅ M0: Foundation - Configuration, policy engine, audit logging, list_servers tool
  • ✅ M1: Core - Proxy infrastructure, get_server_tools, execute_tool, middleware, metrics, hot reload, OAuth support
  • 🚧 M2: Production - HTTP transport, health checks (planned)
  • 🚧 M3: DX - Single-agent mode, config validation CLI, Docker (planned)

Current Version: M1-Core Complete (with OAuth)

Table of Contents

Overview

The Problem

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:

  • 5,000-50,000+ tokens consumed upfront
  • 80-95% of loaded tools never used by individual agents
  • Context needed for actual work gets wasted on unused tool definitions

The Solution

The Agent MCP Gateway acts as a single MCP server that proxies to multiple downstream MCP servers based on configurable per-agent rules:

  • 3 gateway tools load at startup (~2k tokens)
  • Agents discover and request specific tools on-demand
  • 90%+ context reduction
  • Policy-based access control per agent/subagent

How It Works

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.

GitHub에서 전체 README 보기

설치

uvx agent-mcp-gateway
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "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" } } } }