-
Notifications
You must be signed in to change notification settings - Fork 46
Add entrypoint and entrypointArgs support for MCP Gateway container configuration #9389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
… configuration Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix MCP Gateway spec to allow container volume mount points
Add volume mount and container configuration support to MCP Gateway
Jan 8, 2026
Collaborator
|
@copilot please do not add network and port options to the configuration. just add volume mounts. |
…ounts Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Contributor
Author
Copilot
AI
changed the title
Add volume mount and container configuration support to MCP Gateway
Add volume mount support to MCP Gateway
Jan 8, 2026
Copilot
AI
changed the title
Add volume mount support to MCP Gateway
Add entrypoint and entrypointArgs support for MCP Gateway container configuration
Jan 8, 2026
lpcox
approved these changes
Jan 8, 2026
Collaborator
lpcox
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The MCP Gateway specification lacked fields to configure custom entrypoints for backend MCP server containers. This prevented overriding container default entrypoints and passing custom startup arguments.
Changes
Core types (
pkg/types/mcp.go,pkg/workflow/tools_types.go)Entrypoint stringfield toBaseMCPServerConfigmcpServerConfigToMap()to serialize entrypoint fieldParsing & validation
getMCPConfig()with optionaltransformContainerparameter to control docker command transformationtools_parser.goand validation inmcp_config_validation.goRendering system (
pkg/workflow/mcp-config.go,pkg/workflow/copilot_mcp.go)PreserveContainerFieldsflag toMCPConfigRendererto conditionally preserve container fieldsshouldGenerateMCPGateway()), container/entrypoint/entrypointArgs are preserved in JSON format for gateway processing--entrypointflag for backward compatibilityDocumentation (
docs/src/content/docs/reference/mcp-gateway.md)Behavior
Gateway mode (preserves container fields):
Generates config for gateway:
{ "container": "ghcr.io/example/server", "entrypoint": "/custom/entrypoint.sh", "entrypointArgs": ["--verbose"] }Non-gateway mode (transforms to docker command):
{ "command": "docker", "args": ["run", "--rm", "-i", "--entrypoint", "/custom/entrypoint.sh", "ghcr.io/example/server", "--verbose"] }Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.