RA

roddutra/agent-mcp-gateway

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

42 stars 5 forks 品質 73 トレンド 0MIT

roddutra/agent-mcp-gateway は [https://github.com/roddutra/agent-mcp-gateway.] からインポートされた MCP サーバー候補です

概要

roddutra/agent-mcp-gateway は [https://github.com/roddutra/agent-mcp-gateway.] からインポートされた MCP サーバー候補です

概要(AI 翻訳)

複数のMCPサーバーを集約し、エージェントとサブエージェントのポリシーベースのアクセス制御を提供するモデルコンテキストプロトコル(MCP)ゲートウェイ。 Claude Code の MCP コンテキスト ウィンドウの無駄を解決します。オンデマンド ツールの検出を有効にして、すべてのツールの定義を上面にロードします。

ステータス

  • ✅M0: ファンデーション - 構成、ポリシーエンジン、監査ロギング、[[list_servers]ツール
  • ✅M1:Core - プロキシインフラストラクチャ、[[get_server_tools]、ミドルウェア、メトリック、ホットリロード、OAuthサポート
  • 在留中 M2: 生産 - HTTP輸送、健康チェック(予定)
  • 存在M3:DX - シングルエージェントモード、設定検証 CLI、Docker(予定)

現行バージョン: M1コアコンプリート(OAuth)

コンテンツの表

  • 概要
  • インストール
  • クイックスタート
  • コマンドラインオプション
  • 設定ファイルディスカバリー
  • 構成
  • 使用法
  • ゲートウェイツール
  • セキュリティの考慮事項
  • トラブルシューティング
  • テスト
  • 開発
  • 建築
  • 未来の特徴
  • ドキュメント
  • 貢献
  • ライセンス
  • サポート
  • アクセシビリティ

概要

問題

このページは 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" } } } }