Add support for entrypoint and mounts configuration fields#78
Merged
Conversation
- Add entrypoint field to StdinServerConfig struct - Add mounts field (array of strings) to StdinServerConfig - Implement mount validation with format checking (source:dest:mode) - Update Docker command generation to apply --entrypoint and -v flags - Add comprehensive tests for new fields and validation - Update README.md with documentation for new fields Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
- Add example config with new fields in config.json - All tests passing (make agent-finished successful) - Implementation complete and validated Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update MCP Gateway to support new configuration spec
Add support for entrypoint and mounts configuration fields
Jan 8, 2026
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
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 spec now requires support for
entrypoint,entrypointArgs, andmountsfields for containerized MCP servers.Changes
entrypoint(string) andmounts([]string) fields toStdinServerConfigsource:dest:modewhere mode isroorrw, with non-empty path validation--entrypointflag and-vvolume mounts in correct orderExample
{ "mcpServers": { "custom-app": { "type": "stdio", "container": "myorg/custom-mcp:latest", "entrypoint": "/custom/entrypoint.sh", "entrypointArgs": ["--verbose", "--debug"], "mounts": [ "/host/config:/app/config:ro", "/host/data:/app/data:rw" ], "env": { "API_KEY": "${CUSTOM_API_KEY}" } } } }Generates:
docker run --rm -i --entrypoint /custom/entrypoint.sh -v /host/config:/app/config:ro -v /host/data:/app/data:rw -e API_KEY=... myorg/custom-mcp:latest --verbose --debugWarning
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:
go.googlesource.com/update-job-proxy /update-job-proxy /cast.go m ux-amd64/pkg/tool/linux_amd64/vet rtcf�� /x86_64-linux-gnu/13/liblto_plugin.so rg/toolchain@v0.0.1-go1.25.0.linux-amd64/src/net-I 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet s-through=-lgcc transform.go s-through=-lc 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet o_.o�� 1.0.9/bool.go 1.0.9/bool_func.go 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet go1.25.0 ions =0 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet(dns block)/update-job-proxy /update-job-proxy DROP /home/REDACTED/go/origin test -e igiCert_High_Assurance_EV_Root_CA.pem /home/REDACTED/go/-e /usr/bin/test -bool 87dd93a0 pkg/mod/golang.oblob test -e Root_CA_G4.pem pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.lin/var/run/docker/runtime-runc/moby(dns block)go.yaml.in/update-job-proxy /update-job-proxy /cast.go m ux-amd64/pkg/tool/linux_amd64/vet rtcf�� /x86_64-linux-gnu/13/liblto_plugin.so rg/toolchain@v0.0.1-go1.25.0.linux-amd64/src/net-I 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet s-through=-lgcc transform.go s-through=-lc 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet o_.o�� 1.0.9/bool.go 1.0.9/bool_func.go 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet go1.25.0 ions =0 0.1-go1.25.0.linux-amd64/pkg/tool/linux_amd64/vet(dns block)/update-job-proxy /update-job-proxy DROP /home/REDACTED/go/origin test -e igiCert_High_Assurance_EV_Root_CA.pem /home/REDACTED/go/-e /usr/bin/test -bool 87dd93a0 pkg/mod/golang.oblob test -e Root_CA_G4.pem pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.lin/var/run/docker/runtime-runc/moby(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.