-
Notifications
You must be signed in to change notification settings - Fork 140
fix: command-backed MCP services get one subprocess per session, not a shared multiplexed bridge #387
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
aojea
merged 11 commits into
google:main
from
fer-marino:fix/stdio-bridge-subscriber-drop
Sep 14, 2026
Merged
fix: command-backed MCP services get one subprocess per session, not a shared multiplexed bridge #387
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
17da7f6
fix: stdio_bridge - never drop a subscriber's line on a slow consumer
fer-marino d44580d
fix: subscriberQueue.pop - release popped lines, not just their slot
fer-marino d951715
test: add real-subprocess integration coverage for stdio_bridge Subsc…
fer-marino 82a6a86
fix: command-backed MCP services get one subprocess per session, not …
fer-marino 0f40c80
fix: restore local SSE/POST ingress for command backends, trim comments
fer-marino 6c58300
Merge remote-tracking branch 'origin/main' into fix/stdio-bridge-subs…
fer-marino ac74055
fix: mcp_service - reject a command backend with no command
fer-marino bc3f22c
fix: reject a command backend with no command at construction
aojea b1c2311
fix: cap concurrent subprocesses per command-backed MCP service
aojea 17858e5
test: cover constructor rejection and the per-service session cap
aojea d562ef7
test: replace sleeps in StdioBridge tests with bounded waits
aojea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Accessing
x.Command.Command[0]directly without checking ifx.Commandisnilor ifx.Command.Commandis empty can lead to a nil pointer dereference or an out-of-bounds panic. Since this registration request can be triggered by external API clients or configurations, this represents a potential denial-of-service (DoS) vulnerability.Adding a defensive check to ensure
x.Commandis non-nil and contains at least one command element prevents these panics and improves the robustness of the service.