mcp: proxy stdio servers in standalone mode#1479
Merged
nacx merged 6 commits intoenvoyproxy:mainfrom Nov 12, 2025
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1479 +/- ##
=======================================
Coverage 83.80% 83.81%
=======================================
Files 145 145
Lines 12722 12722
=======================================
+ Hits 10662 10663 +1
+ Misses 1440 1438 -2
- Partials 620 621 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
Signed-off-by: Ignasi Barrera <nacx@apache.org>
Member
Author
|
I've rebased to latest main and removed the dependency on |
Member
Author
|
/retest |
Contributor
|
this is good, now a user can test stdio servers using EAIGW standalone mode ! |
Member
Author
|
And also "convert" their stdio to HTTP easily.... You just need to build a Docker image that wraps your MCP with the aigw CLI and you have it. |
Signed-off-by: Ignasi Barrera <nacx@apache.org>
Member
Author
|
/retest |
mathetake
approved these changes
Nov 12, 2025
| func TestStdio2HTTP(t *testing.T) { | ||
| // create a command to fork and exec the test binary as an MCP server. | ||
| t.Setenv(runMCPTestServer, "true") | ||
| cmd, err := os.Executable() |
Member
There was a problem hiding this comment.
oh this pattern makes me feel so nostalgic... I was using this exact thing in wazero
hustxiayang
pushed a commit
to hustxiayang/ai-gateway
that referenced
this pull request
Nov 13, 2025
**Description**
Opening as a draft to get early feedback.
When running in standalone mode, it allows running and proxying `stdio`
MCP servers. This PR only supports defining the servers in the
`servers.json` format, as for now, we don't want to introduce new nouns
for a feature that does not apply to Kubernetes.
With this change, the CLI can be started with a file like the following:
```
aigw run --mcp-json '{
"mcpServers": {
"everything": {
"command": "npx",
"args": ["-y","@modelcontextprotocol/server-everything"]
},
"filesystem": {
"command": "npx",
"args": ["-y","@modelcontextprotocol/server-filesystem"]
}
}
}'
```
**Related Issues/PRs (if applicable)**
Depends on envoyproxy/gateway#7427 for a clean
implementation.
**Special notes for reviewers (if applicable)**
N/A
---------
Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
Signed-off-by: Ignasi Barrera <nacx@apache.org>
Signed-off-by: yxia216 <yxia216@bloomberg.net>
missBerg
pushed a commit
to missBerg/ai-gateway
that referenced
this pull request
Dec 20, 2025
**Description**
Opening as a draft to get early feedback.
When running in standalone mode, it allows running and proxying `stdio`
MCP servers. This PR only supports defining the servers in the
`servers.json` format, as for now, we don't want to introduce new nouns
for a feature that does not apply to Kubernetes.
With this change, the CLI can be started with a file like the following:
```
aigw run --mcp-json '{
"mcpServers": {
"everything": {
"command": "npx",
"args": ["-y","@modelcontextprotocol/server-everything"]
},
"filesystem": {
"command": "npx",
"args": ["-y","@modelcontextprotocol/server-filesystem"]
}
}
}'
```
**Related Issues/PRs (if applicable)**
Depends on envoyproxy/gateway#7427 for a clean
implementation.
**Special notes for reviewers (if applicable)**
N/A
---------
Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
Signed-off-by: Ignasi Barrera <nacx@apache.org>
Signed-off-by: Erica Hughberg <erica.sundberg.90@gmail.com>
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.
Description
Opening as a draft to get early feedback.
When running in standalone mode, it allows running and proxying
stdioMCP servers. This PR only supports defining the servers in theservers.jsonformat, as for now, we don't want to introduce new nouns for a feature that does not apply to Kubernetes.With this change, the CLI can be started with a file like the following:
Related Issues/PRs (if applicable)
Depends on envoyproxy/gateway#7427 for a clean implementation.
Special notes for reviewers (if applicable)
N/A