CollabHub MCP Server
Provides Git worktree isolation and gated merge operations: create and review worktrees, run allowlisted test verification, merge verified changes, and clean up worktrees.
Routes and dispatches coding tasks to local Ollama OpenAI-compatible endpoints as agent backends, with receipt tracking and cooldown handling.
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.
⚡ CollabHub v3.0
One Always-On Brain for Every AI Coding Agent — Live Usage HUD, Smart Model Routing, 14-Client MCP Hub & Sticky Native IDE/Desktop/CLI Plugins.
English · 简体中文 · Live Interactive Demo → · Standalone Cockpit Demo →
Why CollabHub?
If you code with Claude Code, Codex, Antigravity, Cursor, Windsurf, Cline, or Ollama every day, you probably hit the same four walls:
You can't see what you're spending across tools in real time — tokens, burn rate (
tok/min), and active MCP calls are fragmented across apps.Orchestration tools disappear the moment you close a browser tab — instead of staying inside your IDE sidebar, Desktop chat pane, StatusBar, and terminal prompt.
Every client repeats the same mistakes — duplicated
mcpServersJSON/TOML configs with accidental plaintext API keys, driftingSKILL.md/AGENTS.md/CLAUDE.mdrules, and parallel agents stomping on the same files.Weak models get flagship tasks (and vice versa) — nothing checks whether a task needs Codex/Claude/Gemini-Pro vs a fast free local Ollama model.
CollabHub v3.0 fixes all four in one local-first, zero-npm-dependency SQLite hub:
Always-On Resident UI Inside Every Major Agent — sticky StatusBar + Sidebar Webview extension inside VS Code / Cursor / Windsurf / Antigravity IDE / Kiro, sticky SEP-1865 MCP App (
position: sticky) inside Antigravity (aux_pane+global) / Claude Desktop / Codex Desktop, plus sub-30ms Claude CodestatusLine, tmux, Zsh/PowerShell HUD hooks, 24-bit TUI, and an installable floating Dock Window (collab-hub cockpit --dock).Real-Time Cross-Agent Usage & Cost Ledger (Metadata-Only) — tracks every stdio and Streamable HTTP
/mcpclient in real time plus read-only token/cost counters from local CLI sessions. Zero prompts, code, or secrets are ever extracted or stored.Model-Strength Smart Task Router — bilingual (EN + 中文) classifier across 10 task categories (
coding,security_audit,architecture,frontend_ui,copywriting,long_context,linux_ops,debugging,research,fast_cheap) and 4 strategies (balanced,quality,cost,speed) with transparentrouting_reasons[].53 MCP Tools (
core13 /cockpit23 /full53) + Streamable HTTP/mcp— plug in without blowing your LLM context window.
Related MCP server: Synapse MCP
60-Second Quickstart
Requires Node.js >= 22.13.0 (uses built-in node:sqlite — zero runtime npm dependencies).
# Install globally (stable persistent paths for autostart & IDE extensions)
npm install -g collab-hub
# Or run from a local clone before npm publish: git clone https://github.com/mortal7520/collab-hub.git && cd collab-hub
# 1. Detect all 14 local AI clients & configure zero-secret MCP + Claude Code StatusLine (.bak backup first)
collab-hub setup --profile cockpit --confirm
# 2. Install the Sticky Always-On Native Extension into VS Code / Cursor / Windsurf / Antigravity / Kiro
collab-hub install-plugins --confirm
# 3. Auto-start the local hub & pop out the Always-On Resident Floating Cockpit
collab-hub cockpit --dockOr preview instantly with zero global setup via TUI demo / Docker / autostart:
# 24-bit TrueColor interactive terminal cockpit (`--demo` works on any fresh machine)
npx -y collab-hub tui --demo
# Enable zero-admin OS autostart (macOS LaunchAgent / Linux systemd --user / Windows Task Scheduler)
collab-hub autostart install --confirm
# Run via Docker (Streamable HTTP /mcp + Web Workbench on port 5290)
docker build -t collab-hub . && docker run --rm -p 5290:5290 -v collabhub-data:/data collab-hub1. Always-On Resident UI Inside Every Agent
Surface | Host Agents Supported | Always-On & Chat-Adjacent Behavior |
In-Chat MCP App Strip & Pill ( | Antigravity ( |
|
Web AI Browser Companion ( | claude.ai, chatgpt.com, gemini.google.com, muse.ai, DeepSeek, Grok, Perplexity | Zero-dep Chrome/Edge MV3 Shadow DOM pill anchored beside the chat box: live usage, |
Native IDE Extension ( | VS Code, Cursor, Windsurf, Antigravity IDE, Kiro | Pinned StatusBar + Activity Bar & Panel views ( |
Terminal Native HUD & Split ( | Claude Code CLI ( |
|
Pinned Floating Dock & PWA ( | macOS, Windows, Linux Desktops | Frameless always-on-top compact dock ( |
Web Workbench ( | Any Browser (+ GitHub Pages Demo) | Sticky Live Usage Dock Bar across all 9 views, Light/Dark themes, EN/中文 toggle, |
2. Supported Market Clients & Ecosystem (14 Clients)
CollabHub detects, imports, probes, and safely syncs configurations (with automatic .bak backups and inline-secret blocking) across 14 mainstream AI clients, handling their exact JSON/TOML schemas (mcpServers, mcp_servers, servers, mcp, context_servers):
Antigravity · Claude Code · Claude Desktop · Codex · Cursor · Windsurf · VS Code Copilot · Gemini CLI · Cline · Roo Code · OpenCode · Zed · Continue · Kiro
Plus auto-discovery for Ollama, LM Studio, vLLM, Aider, Qwen CLI, and environment-ready OpenAI / DeepSeek / OpenRouter / SiliconFlow gateways — never reading or echoing raw API keys.
3. Real-Time Cross-Agent Usage & Smart Capability Router
Live Cross-Agent Usage (collab_usage / GET /api/usage/live / collab-hub usage)
Every MCP Call Counted: Both stdio and Streamable HTTP
/mcpautomatically recordclient_id,transport,profile, call count, errors, and last tool inclient_usage_telemetry.Metadata-Only Local Session Aggregation: Bounded, cached scans compute today/7-day tokens,
tok/minburn rate, 24h hourly throughput sparklines, and API-equivalent USD cost estimates ($0for Ollama/local models) with a hard privacy guarantee (privacy_note: "metadata_only_no_prompts").
Capability & Model-Strength Smart Router (collab_plan / POST /api/route/recommend / collab-hub plan)
Inspired by lm-sys/RouteLLM (complexity stratification) and BerriAI/litellm Router (cooldown/latency/cost awareness), CollabHub scores every online agent on 10 bilingual task categories (coding, security_audit, architecture, frontend_ui, copywriting, long_context, linux_ops, debugging, research, fast_cheap) and returns transparent routing_reasons[]:
$ collab-hub plan --prompt "Security audit of SSRF and HMAC webhook boundaries" --strategy quality
# -> Illustrative summary from JSON output: Codex (gpt-5-codex, flagship) · security_audit=96/100 · flagship_boost_for_high_complexity(+8)
$ collab-hub plan --prompt "Quick log formatting summary" --strategy cost
# -> Illustrative summary from JSON output: Ollama Qwen (local, free) · fast_cheap=99/100 · strategy=cost(free:+24)4. Streamable HTTP /mcp & Context-Budget Profiles (53 Tools)
Don't waste 20k context tokens on tool definitions you aren't using. Pick your profile:
Profile | Tools | Designed For |
| 13 | Tight context budgets: Cockpit, Roster, Smart Plan, Dispatch, Poll, Cancel, Tasks, Shared Rooms, Handoff Pack, Worktrees ( |
| 23 | Recommended default: |
| 53 | Power orchestrators: everything above + FTS5 Memory, Code Toolkit ( |
Connect over stdio (npx collab-hub mcp --profile cockpit) OR Streamable HTTP (POST/GET/DELETE http://127.0.0.1:5290/mcp?profile=cockpit with strict loopback Host & Origin protection).
5. Full Engineering & Safety Architecture
Zero-Secret All-Agent MCP Hub & Meta-MCP Lazy Router: Blocks inline API keys (
sk-,ghp_,AIza, UTF-16LE/BE checks) on read/write; only allows safe${ENV_VAR}placeholders (explicitly banning${cmd:...}shell injection); DNS-resolving SSRF guard blocks private/CGNAT/link-local metadata IPs.Cross-Agent Skills & Rules Sync: Syncs
SKILL.mddirectories and project rules (AGENTS.md,CLAUDE.md,GEMINI.md,.cursor/rules/project.mdc,.windsurfrules,.clinerules,.github/copilot-instructions.md) with Dry-Run unified diffs and.bakbackups.Worktree Isolation, Inline Diff Comments & Speculative Merge Queue: Parallel agents work in isolated Git worktrees; pre-flight checks use side-effect-free
git merge-tree --write-treeto detect semantic collisions before touchingmain.Living Shared Rooms, Consensus, Artifact Vault & Budgets: Path-glob leases with TTLs, per-agent
/inbox/staging with confirmed promotion, arbitration rounds, redacted artifacts, daily token/call policies (warn/downgrade/block), and SSRF-guarded HMAC-SHA256 Signed Webhooks for Slack, Discord, Feishu, DingTalk, and Telegram.Programmatic ESM SDK (
package.json"exports"):import { createCollabHub, classifyTaskIntent, getLiveAgentUsage } from 'collab-hub'; const hub = await createCollabHub({ port: 5290 });
Configuration (Environment Variables)
Variable | Default | Purpose |
|
| Runtime directory ( |
| Current working directory / | Root workspace scanned for Git repos, worktrees & project rules |
|
| Loopback dashboard, SSE & Streamable HTTP |
|
| Default MCP tool profile ( |
|
| Optional companion MCP Agent Mail endpoint |
Full documentation of upstream open-source inspirations & provenance:
docs/UPSTREAM-REUSE.md.
Ready-to-use launch posts & directory checklist:docs/LAUNCH-KIT.md· Machine-readable index:/llms.txt.
Comparison
Feature | Single-Client Dashboards | Cloud Router Proxies | Raw MCP Config Files | CollabHub v3.0 |
Zero runtime npm dependencies (local-first) | Rarely | No | N/A | Yes (Node 22+ built-ins) |
Sticky Always-On UI inside IDE / Desktop / CLI | IDE-locked | Web only | No | Yes (VS Code/Cursor/Windsurf/AGY/Kiro/Claude/Codex/TUI/Dock) |
Real-time usage across 14 clients (zero prompt leak) | 1 client | Proxy-only | No | Yes (stdio + |
Capability & model-strength task router | No | API-only | No | Yes (10 categories × 4 strategies + explainable reasons) |
Zero-secret multi-client MCP & Skills/Rules sync | No | No | Manual copy | Yes (Dry-Run diff + |
Speculative Git Merge Queue & Shared Rooms | Partial | No | No | Yes ( |
License
MIT — Built with zero runtime bloat for engineers orchestrating real multi-agent workflows.
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
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Shared control plane for AI coding agents — tasks, memory, decisions, file locks. 12 tools.
Work management where AI agents are first-class members: tasks, projects, memory over hosted MCP
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Related MCP Servers
- FlicenseAqualityBmaintenanceEnables coding agents to track and coordinate project work through a shared SQLite ledger, including task plans, session ancestry, claims, work locations, blockers, and commits via MCP tools.9-
- AlicenseAqualityBmaintenanceEnables multiple AI coding agents to work concurrently on the same repository by coordinating task ownership, file locks, architectural decisions, investigation gaps, handoffs, and audit activity through a local SQLite-backed MCP interface.14MIT
- AlicenseBqualityBmaintenanceLets multiple AI agents and parallel coding sessions share one memory and task ledger, so they can claim work instead of duplicating it, resume each other's handoffs and reasoning, and use credentials without ever seeing the keys. Connects assistants such as Claude Code, Codex, Cursor, Gemini, ChatGPT and custom agents over MCP, backed by a single local SQLite file or a self-hosted Postgres hub.412MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP hosts to run auditable multi-agent work through a SQLite task registry, DAG orchestration, three collaboration modes (pipeline, iterative refinement, and proposal voting), human-in-the-loop approvals, an enforced sandbox, compliance scanning, and long-term memory. Exposes these capabilities as 36 tools so every consequential step stays gated behind a human checkpoint.AGPL 3.0