feat: thunderbolt-stdio-bridge — bridge local stdio ACP agents and MCP servers#989
Open
Conversation
Semgrep Security ScanNo security issues found. |
PR Metrics
Updated Thu, 18 Jun 2026 22:28:03 GMT · run #1963 |
…e relay at startup
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 661bf2e. Configure here.
| 'agent) is now reachable by other hosts on the network, not just this\n' + | ||
| 'machine. Keep the default 127.0.0.1 unless you really need remote access.\n', | ||
| ) | ||
| } |
There was a problem hiding this comment.
Bridge bind warning too narrow
Low Severity
emitInsecureFlagWarnings treats only 127.0.0.1, localhost, and ::1 as loopback. Other valid loopback binds (rest of 127.0.0.0/8, *.localhost) still get the “reachable by other hosts on the network” warning even though they remain local-only.
Reviewed by Cursor Bugbot for commit 661bf2e. Configure here.
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.


Note
Medium Risk
Changes ACP/MCP transport routing for loopback targets (intentional proxy skip on web) and ships a new local bridge that fronts privileged agents; mitigated by origin checks, tests, and unchanged non-loopback proxy behavior.
Overview
Introduces
thunderbolt-stdio-bridge, a local CLI that relays stdio agents to Thunderbolt over--mode acp(localhost WebSocket) or--mode mcp(Streamable HTTP at/mcp, optional cloudflared tunnel with mandatory bearer). The app is updated so those URLs actually work from the web app, not only desktop.Loopback bypass: New
isLoopbackUrl/isLoopbackHostdetection drives two carve-outs—remote ACP WebSockets and MCP HTTP now use a native connect (no universal cloud proxy) when the target is localhost /127.0.0.0/8/::1/*.localhost, including in the browser. Non-loopback remote agents still proxy as before.Settings UX: Agent catalog cards get Connect via bridge (install +
npx thunderbolt-stdio-bridge --mode acp -- …commands from registry distribution), CopyableCommand, and handoff to Add Custom Agent. Loopback URLs in that dialog show a local network permission hint.The bridge package includes Origin allowlisting, PII-safe logging, child supervision, and broad unit/integration tests.
Reviewed by Cursor Bugbot for commit 661bf2e. Bugbot is set up for automated code reviews on this repo. Configure here.