This GitHub Custom Action is responsible for mounting an MCP behind a HTTP transport to isolate the MCP from the main container.
type(required): Upstream connection type. Must be eitherstdioorhttp.
command: Command to execute (required whentypeisstdio)args: JSON array of command arguments (e.g.,'["arg1", "arg2"]')env: JSON object of environment variables (e.g.,'{"NODE_ENV": "production"}')
url: URL for HTTP connection (required whentypeishttp)headers: JSON object of HTTP headers (e.g.,'{"Authorization": "Bearer token"}')
container: Container namecontainer-image: Container image to runcontainer-version: Container version/taglogs-dir: Directory for log files (default:./logs)
url: The URL of the proxy serverport: The port number the proxy is running ontoken: The API token for accessing the proxy
- name: Start MCP Proxy
uses: githubnext/gh-aw-mcp-container-action@v1
with:
type: http
url: http://localhost:3000/mcp
headers: '{"Authorization": "Bearer my-token"}'- name: Start MCP Proxy
uses: githubnext/gh-aw-mcp-container-action@v1
with:
type: stdio
command: node
args: '["mcp-server.js"]'
env: '{"NODE_ENV": "production", "DEBUG": "true"}'- name: Start MCP Proxy
uses: githubnext/gh-aw-mcp-container-action@v1
with:
type: http
url: http://localhost:3000/mcp
container-image: my-mcp-server:latestSee CONTRIBUTING.md for development instructions.