
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
GitHub/GH-AW-mcpg は、https://github.com/github/gh-aw-mcpg. からインポートされたMCPサーバー候補です。
概要
GitHub/GH-AW-mcpg は、https://github.com/github/gh-aw-mcpg. からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
モデルコンテキストプロトコル(MCP)サーバー向けのゲートウェイです。
このゲートウェイは、sandbox.mcp構成を通じてGitHub Agentic Workflowsと連携し、サンドボックス環境で動作するAIエージェントにMCPサーバーアクセスを提供します。
クイックスタート
-
Dockerイメージを取得(利用可能な場合):
-
設定ファイルを作成する(
config.json):
注:JSON標準設定において、gatewayセクションは必須であり、port、domain、そしてagentIdまたはagentIdsのちょうど1つを含む必要があります。上記の値は例です;gatewayやこれらの必須フィールドのいずれかを省略すると、起動時にスキーマ検証に失敗します。その他のgatewayフィールドは任意で、存在すれば検証されます。オプションのサーバーフィールドにはentrypoint、entrypointArgs、mounts、args、connectTimeout、toolTimeoutがあります。サーバーフィールドの完全な参照についてはdocs/CONFIGURATION.mdを参照してください。
完全な例をお探しですか?config.example.toml、config.example-payload-threshold.toml、example-http-config.jsonを参照してください。
- コンテナを走らせる:
[!注] CLIは
--configまたは--config-stdinのいずれかを必要とします。パイピングJSONの設定は--config-stdinが必要です。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Gateway
A gateway for Model Context Protocol (MCP) servers.
This gateway is used with GitHub Agentic Workflows via the sandbox.mcp configuration to provide MCP server access to AI agents running in sandboxed environments.
Quick Start
-
Pull the Docker image (when available):
docker pull ghcr.io/github/gh-aw-mcpg:latest -
Create a configuration file (
config.json):{ "gateway": { "port": 8000, "domain": "${MCP_GATEWAY_DOMAIN}", "agentId": "${MCP_GATEWAY_AGENT_ID}" }, "mcpServers": { "github": { "type": "stdio", "container": "ghcr.io/github/github-mcp-server:latest", "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "" } } } }Note: for JSON stdin configuration the
gatewaysection is required, and it must includeport,domain, and exactly one ofagentIdoragentIds. The values shown above are examples; omittinggateway— or any of these required fields — fails schema validation at startup. All othergatewayfields are optional and are validated when present. Optional server fields includeentrypoint,entrypointArgs,mounts,args,connectTimeout, andtoolTimeout; see docs/CONFIGURATION.md for the complete server-field reference.Looking for complete examples? See
config.example.toml,config.example-payload-threshold.toml, andexample-http-config.json. -
Run the container:
docker run --rm -i \ -e MCP_GATEWAY_PORT=8000 \ -e MCP_GATEWAY_DOMAIN=localhost \ -e MCP_GATEWAY_AGENT_ID=your-agent-id \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /path/to/logs:/tmp/gh-aw/mcp-logs \ -p 8000:8000 \ ghcr.io/github/gh-aw-mcpg:latest < config.json
[!NOTE] The CLI requires either
--configor--config-stdin; piping JSON configuration requires--config-stdin. The container entrypoint script (run_containerized.sh) automatically adds--config-stdinwhen it startsawmg. If you runawmgdirectly (outside the container) and want to pipe JSON config, you must pass--config-stdinexplicitly.
Inside the container, the gateway starts in routed mode on http://0.0.0.0:8000, proxying MCP requests to your configured backend servers. When running awmg directly without --listen, the default listen address is http://127.0.0.1:3000.
Required flags:
-i: Enables stdin for passing JSON configuration-v /var/run/docker.sock: Required when using the default Docker runtime- Dockerless Podman mode (
"gateway": {"dockerless": true}) does not use the Docker socket; grant the container the capabilities required for nested containers (for example,--privileged) -p 8000:8000: Port mapping must matchMCP_GATEWAY_PORT
インストール
docker run --rm -i \設定
{
"gateway": {
"port": 8000,
"domain": "${MCP_GATEWAY_DOMAIN}",
"agentId": "${MCP_GATEWAY_AGENT_ID}"
},
"mcpServers": {
"github": {
"type": "stdio",
"container": "ghcr.io/github/github-mcp-server:latest",
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": ""
}
}
}
}