Skip to content

Remove command stdio server support from MCP gateway per specification v1.0.0#9304

Merged
pelikhan merged 2 commits intomainfrom
copilot/update-mcp-gateway-integration
Jan 8, 2026
Merged

Remove command stdio server support from MCP gateway per specification v1.0.0#9304
pelikhan merged 2 commits intomainfrom
copilot/update-mcp-gateway-integration

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 8, 2026

The MCP Gateway Specification v1.0.0 requires all stdio-based MCP servers to be containerized. Direct command execution is no longer supported.

Changes

Removed Command Field

  • MCPGatewayRuntimeConfig: Deleted Command field, container is now the only execution mode
  • extractMCPGatewayConfig: Removed command field extraction logic
  • generateMCPGatewayStepInline: Removed command execution path, validates container presence

Updated Schema

  • main_workflow_schema.json: Removed command property, made container required
  • Eliminated mutual exclusion validation (no longer needed)

Updated Runtime

  • start_mcp_gateway.sh: Requires MCP_GATEWAY_CONTAINER, rejects command-based execution
  • Error message references specification when container is missing

Example

Before (rejected):

sandbox:
  mcp:
    command: "node gateway.js"  # No longer supported
    port: 8080

After (required):

sandbox:
  mcp:
    container: "ghcr.io/org/mcp-gateway"
    port: 8080

Per specification sections 3.2.1 and 4.1.2, containerization is mandatory for isolation and portability.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login 4c7a077b67d82ef1 rev-parse (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login /ref/tags/v8 --jq /usr/bin/infocmp -json GO111MODULE 64/pkg/tool/linuxterm-color infocmp -1 /ref/tags/v8 64/pkg/tool/linux_amd64/compile 549238730/gh-aw 3467491/run-1 GO111MODULE 64/pkg/tool/linuxterm-color 549238730/gh-aw (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login /run/containerd/io.containerd.runtime.v2.task/moby/bf255c4b35a34c1ccb06f7dce4eb96832ed5a1f4c22882ea325f024f17360f68/init.pid bf255c4b35a34c1ccb06f7dce4eb96832ed5a1f4c22882ea325f024f17360f68 /usr/bin/infocmp ntime.v2.task/mogh GO111MODULE 64/pkg/tool/linulist infocmp -1 ithub/workflows 64/pkg/tool/linuREDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Update the MCP gateway integration based on latest update to the specification located in the docs.

command stdio server support was removed.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Remove Command field from MCPGatewayRuntimeConfig struct
- Update extractMCPGatewayConfig to only extract container field
- Update generateMCPGatewayStepInline to only handle container execution
- Update start_mcp_gateway.sh to require container (remove command support)
- Update main_workflow_schema.json to remove command field and mutual exclusion logic
- Add spec references and comments clarifying container-only requirement
- Set container as required field in schema

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update MCP gateway integration based on latest specification Remove command stdio server support from MCP gateway per specification v1.0.0 Jan 8, 2026
Copilot AI requested a review from pelikhan January 8, 2026 03:45
@pelikhan pelikhan marked this pull request as ready for review January 8, 2026 04:27
@pelikhan pelikhan merged commit f8ea7f1 into main Jan 8, 2026
125 checks passed
@pelikhan pelikhan deleted the copilot/update-mcp-gateway-integration branch January 8, 2026 04:28
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.

2 participants