Repository navigation
Releases
v1.2.1 - Block Hidden Base64 Payloads
What's new in v1.2.1
Security: hidden base64 payloads are always blocked
Commands that decode base64 straight into an interpreter hide what actually runs, so they are now always blocked in every approval mode, next to curl … | sh and encoded PowerShell:
base64 -d … | sh(alsobash,python,node,perl,ruby,php, …)openssl enc -d -base64 … | nodeiex … [Convert]::FromBase64String(…)in PowerShell
Plain base64 decoding to a file or the terminal still works. New unit tests cover the command policy (npm run test:policy).
Fixes
- Fixed garbled characters in the README (badges and the 简体中文 link).
Install / upgrade
npm install -g @markmayandi/bridge@latest
Full changelog: v1.2.0...v1.2.1
v1.2.0 - Overview Panel, Clickable Menu & Smoother Terminal UI
What's new in v1.2.0
Overview panel
Press [S] or click the ≡ button in the dashboard's top-right corner:
- Review: every file the AI created, edited or deleted, with diffs,
[U]undo and[O]open in editor - Files: check on disk that the files the AI touched really exist
- Terminals: watch running commands and background jobs, stop them, or attach full screen in tabs
- Help: built-in reference for all keys and safety rules
Click a menu item to open it, click elsewhere to close. (To select text in the dashboard, hold Shift while dragging.)
Better terminal experience
- New tunnel connecting animation: a two-lane link through the Cloudflare edge with a checklist of each startup stage
- Clean redraw when you resize or maximize the window, including during the loading screens (Windows Terminal)
- No more blank screen for a second after choosing a project folder
Run several Bridges at once
A new Bridge never stops another running Bridge's server; it uses the next free port (3001–3020). Only servers left behind by a Bridge that has exited are cleaned up.
Context compaction
Bridge meters tool output and asks the AI to save a checkpoint (compact_context) before the chat fills up; resume_context continues in a new chat.
Gemini users
Use a Gemini Task instead of a normal Chat for Bridge work.
Install / upgrade
npm install -g @markmayandi/bridge@latest
v1.1.1 - Version Detection Fix
Includes everything in v1.1.0 plus:
- Version detection: the CLI header and MCP
serverInfonow read the version frompackage.jsoninstead of hardcoded strings. - Update banner: only appears when npm has a newer release (numeric semver compare); it no longer advertises older versions.
npm install -g @markmayandi/bridge@latest
🤖 Generated with Claude Code
v1.1.0 - Approval Modes, Delete Safety & Gemini Stability
Highlights
- Approval modes: press
[M](or launch with--mode=) to pick Turbo (never asks), Review (asks every time), Default (asks only for deletes and risky commands) or Auto (Bridge decides). - Gemini stability: fixed the "Connecting to Bridge" reconnect loop caused by replies leaking onto other clients' SSE streams. Long tool calls now stream over SSE with keepalives, so they survive Cloudflare's 100 s timeout.
- Safer commands: harmful commands (disk format, shutdown, registry,
curl | sh, encoded PowerShell, Defender changes…) are always blocked. Deletes, destructive git and secret-file access ask you first. - New
delete_filetool: moves files to~/.bridge/trashand can be undone. - Sandbox hardening: symlink/junction escape checks, atomic writes, SSRF protection for web fetches, request and read size limits.
- Reliability: server auto-restart with backoff, full process-tree cleanup on exit, safe port selection that never kills other apps.
- CLI: exit confirmation (
QthenY); the dashboard adapts to any terminal size. - Diagnostics:
~/.bridge/logs/server_requests.lognow records SSE stream open/close, client aborts, approval waits and per-call timing.
Install / upgrade
npm install -g @markmayandi/bridge@1.1.0
Note: Gemini's own "Let Gemini use …?" cards are controlled by Gemini. Set Bridge's actions to Always allow under Gemini > Customize > Connectors > Bridge.
🤖 Generated with Claude Code
v1.0.14 - Security Hardening & Authentication Enforcement
Security Fixes (Fixes #2)
- Authentication Enforcement: All HTTP and SSE endpoints (/mcp, /call, /api/set-directory, /api/status, /openapi.json) now require Bearer token authentication (\Authorization: Bearer \ or ?token=). Unauthenticated requests are rejected with \401 Unauthorized.
- Localhost Isolation: The HTTP server now strictly binds to \127.0.0.1\ instead of \
v1.0.13: Multi-File Batch Writer (write_files) & Hardened SSE Connection Keep-Alives
What's Changed in v1.0.13
🚀 Key Improvements & Fixes
- Batch Multi-File Writer (\write_files):
- Adds atomic multi-file writing support so AI models (Gemini, Claude, ChatGPT) can create or update multiple files in a single network roundtrip.
- Eliminates the sequential Chat-Wait-Write bottleneck and minimizes permission prompt interruptions to a single approval.
- Hardened SSE Streaming & Keep-Alives:
- Enabled TCP socket-level keep-alives (
eq.socket.setKeepAlive(true, 10000)) and disabled Nagle buffering (\setNoDelay(true)). - Emits both SSE comment pings and named \event: ping\ heartbeats every 15 seconds to prevent Cloudflare tunnel edge timeouts during user pauses (e.g. permission prompts).
- Hands back full absolute endpoint URLs (\https://\System.Management.Automation.Internal.Host.InternalHost/mcp?sessionId=...) in \event: endpoint\ for robust session binding.
- Added multi-listener socket cleanup on \close\ and \error\ events to prevent broadcasting into dead sockets.
- Enabled TCP socket-level keep-alives (
- Command Execution Hardening:
- Increased \execute_command\ default timeout to 120s (up to 180s) and expanded buffer to 4MB for long builds and installs.
- Server Health Diagnostics:
- Added \�ctiveSseSessions\ count to the /api/status\ endpoint.
Full Changelog: v1.0.12...v1.0.13
v1.0.12: Batch File Reader & Named Cloudflare Tunnels (PR #1)
What's New in v1.0.12
- Merged PR #1 by @pranav1k: Added support for persistent Named Cloudflare Tunnels via \�ridge setup. Users can now configure custom domains (\https://mcp.yourdomain.com\) with zero burst rate-limits and persistent URLs.
- Batch Multi-File Reader (
ead_files): Added high-efficiency multi-file reading tool. AI models can now inspect 10+ files in a single network roundtrip, preventing dropped streams during parallel inspection. - Socket Pooling & Keep-Alive Tuning: Hardened Node.js HTTP server socket timeouts (\keepAliveTimeout = 65000, \headersTimeout = 66000, \ imeout = 120000) to match Cloudflare's 60-second window.
- Updated AI Harness Guidance: Automatically advises LLMs to use
ead_files\ for large multi-file code reviews.
v1.0.11: Fix MCP SSE Handshake Desync & Auto-Update Notifier
Changes in v1.0.11
- Fix MCP SSE Handshake Desync: Full dual-stream delivery pushing JSON-RPC responses over open SSE streams (\event: message) and HTTP POST bodies, resolving infinite 'Connecting to Bridge' spins in Gemini, Claude, and ChatGPT.
- **Add Cloudflare \X-Accel-Buffering: no**: Eliminates Cloudflare edge proxy response buffering on Server-Sent Events.
- Session Tracking: Automatic \sessionId\ routing for multi-turn and persistent client sessions.
- MCP Compatibility Stubs: Added handlers for
esources/list,
esources/templates/list, \completion/complete, and \logging/setLevel. - In-CLI Auto-Update Notifier: Added lightweight background version checker notifying installed users when a newer npm release is available.
v1.0.10 — Standard MCP SSE Streaming & Bridge Identity Rebrand
Changes in v1.0.10
- Standard MCP SSE Streaming Transport: Added full Server-Sent Events (SSE) streaming support for
GET /mcpandGET /ssewith keep-alive pings (text/event-stream), resolving connection hangs and infinite loops in Gemini, Claude, and standard MCP clients. - Bridge Server Identity: Rebranded
serverInfo.nametoBridgeso connected AI clients (Gemini, Claude, ChatGPT) automatically display the connector name as "Bridge". - Tool Suite & Spec Rebrand: Updated all 24 tool descriptions, OpenAPI specifications, and system execution logs to Bridge.
- Internationalization (i18n): Added full Simplified Chinese documentation (
README_zh.md) and a language switcher inREADME.md. - npm Registry Sync: Published to npm as
@markmayandi/bridge@1.0.10.
npm package: @markmayandi/bridge@1.0.10
v1.0.8 — Full-Screen Adaptive TUI & Universal AI MCP Harness
Changes in v1.0.8
- Full-Screen Viewport Architecture: Terminal output now dynamically scales and frames the entire command prompt height and width in-place, eliminating trailing empty space.
- Pinned Bottom Framing Bar: Bottom status bar and compatibility indicators are pinned to the bottom row of the terminal viewport (
ows - 2\ and
ows - 1), matching Claude Code and Antigravity CLI design standards. - Universal Chat LLM Harness: Replaced client-specific quick-connect tips with universal support messaging for all chat-based LLMs and AI agents that support custom MCP connectors (Claude, Gemini, ChatGPT, DeepSeek, Cursor, Windsurf, etc.).
- Zero-Wrap Safety: Dynamic visible-length clamping prevents character wrapping across all standard and wide monitor resolutions (80 to 240+ cols).
- Windows Batch Launcher: Configured \�ridge.bat\ with 150-column width and 40-row buffer for generous fullscreen launching.
npm package: [@markmayandi/bridge@1.0.8](https://www.npmjs.com/package/@markmayandi/bridge)
