Harness Bridge
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Harness Bridge
Harness Bridge is a lightweight, harness-agnostic inter-agent proxy and Model Context Protocol (MCP) server for AI coding agents. It enables CLI-based harnesses (such as Claude Code and Antigravity CLI) to interoperate seamlessly, dispatching tasks, executing code in isolated sandboxes, and collaborating across distinct subscription accounts.
┌─────────────────────────────────────────────────────────────┐
│ Orchestrator Harness (e.g., Claude Code, Antigravity, Codex)│
└──────────────────────────────┬──────────────────────────────┘
│ Stdio MCP Tool Calls
▼
┌─────────────────────────────────────────────────────────────┐
│ Harness Bridge Core │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ MCP Stdio Server (JSON-RPC 2.0 strictly on stdout) │ │
│ ├─────────────────────────────────────────────────────────┤ │
│ │ Workspace Isolation Manager (Git Worktree / Inherit) │ │
│ ├─────────────────────────────────────────────────────────┤ │
│ │ Session & Circuit Breaker Manager (Hop limits, timeouts│ │
│ ├─────────────────────────────────────────────────────────┤ │
│ │ Harness Drivers: ClaudeCodeDriver & AntigravityDriver │ │
│ └─────────────────────────────────────────────────────────┘ │
└──────────────┬──────────────────────────────┬───────────────┘
│ Async Headless Subprocess │ Async Headless Subprocess
▼ ▼
┌──────────────────────────────┐ ┌─────────────────────────────┐
│ Worker Harness: Antigravity │ │ Worker Harness: Claude Code │
│ (worktree: .worktrees/<id>) │ │ (worktree: .worktrees/<id>) │
└──────────────────────────────┘ └─────────────────────────────┘Features
Standard Model Context Protocol (MCP) Server: Exposes standard tools (
bridge_list_harnesses,bridge_dispatch_task,bridge_apply_diff,bridge_get_session,bridge_close_session) that any MCP-compliant agent can invoke directly.Dedicated Native Drivers: Built-in, headless drivers for Claude Code (
claude) and Antigravity CLI (agy) with conversational continuity across turns via native session resumption flags (--resume/--conversation).Workspace Sandboxing via Git Worktrees: Ephemeral git worktrees (
.worktrees/<session_id>) prevent concurrent file clobbering. Review generated diffs safely before applying them withbridge_apply_diff.Kernel Buffer & Protocol Deadlock Prevention: Asynchronous execution via
proc.communicate()wrapped with timeouts eliminates 64KB Linux pipe buffer deadlocks. All server logs route strictly tostderrto preserve clean JSON-RPC framing.Distributed Loop Protection: Injects
HARNESS_BRIDGE_TRACE_IDandHARNESS_BRIDGE_HOP_COUNTinto child processes to prevent recursive agent fork bombs.Self-Updating: Built-in
harness-bridge updatecommand syncs with GitHub Releases and updates in-place via pre-compiled.whldistribution assets.
Related MCP server: worker-bridge
Quick Start & Installation
Option 1: One-Line Installer (Recommended)
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/sukumar1210/harness-bridge/main/scripts/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/sukumar1210/harness-bridge/main/scripts/install.ps1 | iexOption 2: Using uv or pip
# Clone the repository
git clone https://github.com/sukumar1210/harness-bridge.git
cd harness-bridge
# Install editable with dev dependencies
uv syncNext Step: One-Shot Setup
Once installed, register Harness Bridge with all detected harnesses in one command:
harness-bridge setupConnecting to Agent Harnesses
One-Shot Automatic Setup (Recommended)
Auto-detect all installed coding harnesses on your system PATH (claude, agy) and register Harness Bridge as an MCP server with a single command:
harness-bridge setupUse --force to re-register or update existing configurations:
harness-bridge setup --forceManual Registration by Harness
Harness Bridge exposes a standard Model Context Protocol (MCP) server over standard I/O (stdio). You can also register it manually in any MCP-compliant harness or IDE:
1. Claude Code
Register Harness Bridge directly using the claude CLI:
claude mcp add harness-bridge -- harness-bridge serveAlternatively, add it directly to your project or user configuration (~/.claude.json):
{
"mcpServers": {
"harness-bridge": {
"command": "harness-bridge",
"args": ["serve"]
}
}
}2. Antigravity CLI (agy)
Register Harness Bridge using the agy CLI:
agy mcp add harness-bridge harness-bridge serveOr configure it in your Antigravity MCP settings (~/.gemini/antigravity-cli/mcp_config.json):
{
"mcpServers": {
"harness-bridge": {
"command": "harness-bridge",
"args": ["serve"]
}
}
}3. Cursor
In Cursor:
Navigate to Cursor Settings > Features > MCP Servers.
Click + Add New MCP Server.
Fill in:
Name:
harness-bridgeType:
commandCommand:
harness-bridge serve(or~/.local/bin/harness-bridge serveif not in global PATH)
4. Windsurf (Codeium Cascade)
Add the server configuration to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"harness-bridge": {
"command": "harness-bridge",
"args": ["serve"]
}
}
}5. Claude Desktop
Add to your claude_desktop_config.json (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"harness-bridge": {
"command": "harness-bridge",
"args": ["serve"]
}
}
}6. Generic MCP Clients / Zed / Goose
Any client supporting JSON-RPC stdio transport can connect to Harness Bridge:
Executable:
harness-bridge(or$HOME/.local/bin/harness-bridge)Arguments:
["serve"]Transport:
stdio
CLI Usage
# List available harnesses on system PATH
harness-bridge list
# Check current version
harness-bridge version
# Check for updates from GitHub Releases
harness-bridge update --check
# Self-update to the latest release
harness-bridge update
# Run a one-shot task directly
harness-bridge run --target agy "Inspect README.md and explain the architecture"
# Start the MCP server manually
harness-bridge serveContributing
Contributions, issues, and feature requests are welcome!
See CONTRIBUTING.md for local development setup, testing guidelines, and PR workflow.
Please review our Code of Conduct.
To report security concerns, refer to SECURITY.md.
License
MIT © Sukumar Rastogi
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build, test, publish, and run Kovca workflows from AI agents over remote MCP.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Task management your AI agents can actually run. One line becomes a context-ready task over MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseBqualityFmaintenanceEnables orchestrating multiple AI CLI agents (Claude Code, Codex, Gemini CLI, Copilot CLI) through a unified MCP interface for task delegation, cross-agent comparison, and specialized tools like code review and debugging.1420 npm14MIT
- AlicenseAqualityDmaintenanceDelegate coding tasks to external AI coding agents in isolated git worktrees with independent verification, enabling any MCP client to orchestrate multi-agent workflows.5MIT
- AlicenseAqualityBmaintenanceEnables orchestrator agents to route coding tasks to native CLI worker agents via MCP, providing tools for agent discovery, task submission, waiting, inspection, and cancellation.53MIT
- AlicenseBqualityBmaintenanceEnables any MCP host to delegate work to multiple coding-agent CLIs such as Codex, Claude Code, and Antigravity as subagents, preserving native sessions and supporting team-based supervision and agent-to-agent messaging.179 npmApache 2.0