Skip to content

Align containerized env gate docs with MCP_GATEWAY_AGENT_ID#7229

Merged
lpcox merged 3 commits into
mainfrom
copilot/fix-containerized-alignment
Jun 8, 2026
Merged

Align containerized env gate docs with MCP_GATEWAY_AGENT_ID#7229
lpcox merged 3 commits into
mainfrom
copilot/fix-containerized-alignment

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

run_containerized.sh and the containerized docs had one remaining mismatch around the gateway deployment gate: the runtime already treats MCP_GATEWAY_AGENT_ID as the canonical variable, with MCP_GATEWAY_API_KEY as a deprecated fallback, but the docs/commentary still referenced the legacy name in places.

  • Containerized entrypoint docs

    • Update CONTRIBUTING.md Docker development guidance to describe MCP_GATEWAY_AGENT_ID as the required gate variable.
    • Call out MCP_GATEWAY_API_KEY only as a deprecated compatibility alias.
  • Script comment alignment

    • Update the proxy-mode inline comment in run_containerized.sh to reference AGENT_ID instead of API_KEY, so the shell script terminology matches internal/config/validation_env.go and the environment variable docs.

Example of the intended containerized config reference:

{
  "gateway": {
    "agentId": "${MCP_GATEWAY_AGENT_ID}"
  }
}

GitHub Advanced Security started work on behalf of lpcox June 8, 2026 16:57 View session
GitHub Advanced Security finished work on behalf of lpcox June 8, 2026 16:58
Copilot AI changed the title [WIP] Fix containerized script agent ID gate alignment with validation environment Align containerized env gate docs with MCP_GATEWAY_AGENT_ID Jun 8, 2026
Copilot AI requested a review from lpcox June 8, 2026 16:59
Copilot finished work on behalf of lpcox June 8, 2026 16:59
@lpcox lpcox marked this pull request as ready for review June 8, 2026 17:08
Copilot AI review requested due to automatic review settings June 8, 2026 17:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns containerized development documentation and script commentary with the runtime’s canonical gateway deployment gate environment variable (MCP_GATEWAY_AGENT_ID), while acknowledging MCP_GATEWAY_API_KEY as a deprecated compatibility fallback.

Changes:

  • Update run_containerized.sh proxy-mode inline comment to reference AGENT_ID instead of the legacy API_KEY.
  • Update CONTRIBUTING.md Docker guidance to treat MCP_GATEWAY_AGENT_ID as canonical and call out MCP_GATEWAY_API_KEY as deprecated fallback.
Show a summary per file
File Description
run_containerized.sh Updates proxy-mode comment wording to align with AGENT_ID terminology.
CONTRIBUTING.md Updates Docker/containerized entrypoint guidance to use MCP_GATEWAY_AGENT_ID as canonical and note MCP_GATEWAY_API_KEY deprecation.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2

Comment thread run_containerized.sh
Comment on lines 358 to 360
# Run proxy mode — lightweight path that skips gateway-specific checks
# (no Docker socket, no stdin config, no MCP_GATEWAY_PORT/DOMAIN/API_KEY needed)
# (no Docker socket, no stdin config, no MCP_GATEWAY_PORT/DOMAIN/AGENT_ID needed)
run_proxy_mode() {
Comment thread CONTRIBUTING.md
Comment on lines 573 to 576
The container uses `run_containerized.sh` as the entrypoint, which:
- Requires the `-i` flag for JSON configuration via stdin
- Requires `MCP_GATEWAY_PORT`, `MCP_GATEWAY_DOMAIN`, `MCP_GATEWAY_AGENT_ID` env vars (the agent ID is a deployment gate; reference it in your JSON config via `"gateway": {"agentId": "${MCP_GATEWAY_AGENT_ID}"}` to enable authentication)
- Requires `MCP_GATEWAY_PORT`, `MCP_GATEWAY_DOMAIN`, and `MCP_GATEWAY_AGENT_ID` env vars (`MCP_GATEWAY_API_KEY` is accepted as a deprecated fallback; the agent ID is a deployment gate, so reference it in your JSON config via `"gateway": {"agentId": "${MCP_GATEWAY_AGENT_ID}"}` to enable authentication)
- Queries the Docker daemon API version (falls back to 1.44)
@lpcox

lpcox commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address review feedback

Addressed in commit 01f5658.

  • Updated run_containerized.sh proxy-mode comment to use full env var names, including MCP_GATEWAY_AGENT_ID.
  • Reworded the Docker entrypoint bullets in CONTRIBUTING.md to make clear that MCP_GATEWAY_API_KEY is only a deprecated alias that run_containerized.sh maps to MCP_GATEWAY_AGENT_ID.

GitHub Advanced Security started work on behalf of lpcox June 8, 2026 17:15 View session
Copilot finished work on behalf of lpcox June 8, 2026 17:15
GitHub Advanced Security finished work on behalf of lpcox June 8, 2026 17:16
@lpcox lpcox merged commit 1b02693 into main Jun 8, 2026
4 checks passed
@lpcox lpcox deleted the copilot/fix-containerized-alignment branch June 8, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Repo Assist] fix(containerized): align run_containerized.sh agent ID gate with validation_env.go

3 participants