Skip to main content
Glama
README.md
# ๐Ÿš€ H0wZy/mcp โ€” The Ultimate Multi-Agent MCP Hub & Go CLI

[![CI Pipeline](https://github.com/H0wZy/mcp/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/H0wZy/mcp/actions/workflows/ci.yml)
[![GitHub Release](https://img.shields.io/github/v/release/H0wZy/mcp?color=04B575&label=release&logo=github)](https://github.com/H0wZy/mcp/releases)
[![npm](https://img.shields.io/npm/v/%40h0wzy%2Fmcp?color=CB3837&logo=npm)](https://www.npmjs.com/package/@h0wzy/mcp)
[![Go Version](https://img.shields.io/badge/Go-1.26+-00ADD8?logo=go)](cli)
[![Node Version](https://img.shields.io/badge/Node-20+-339933?logo=node.js)](package.json)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Platform](https://img.shields.io/badge/Platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey)](https://github.com/H0wZy/mcp)

Centralize, enhance, and distribute high-performance **MCP (Model Context Protocol)** servers connecting the world's leading AI developer CLIs:
- **Claude Code** (Anthropic)
- **OpenAI Codex CLI** (OpenAI GPT-5.6 / GPT-6 Astra)
- **Google Antigravity** (Gemini 3.1 Pro / Flash)

Cross-model code reviews, independent second opinions, and autonomous multi-agent validation โ€” configured effortlessly via an interactive **Golang TUI CLI** and distributed via standalone binaries and `npx @h0wzy/mcp`.

๐Ÿท๏ธ `#mcp` `#ai-agents` `#multi-agent` `#antigravity` `#claude-code` `#openai-codex` `#gemini` `#cli` `#go` `#bubbletea` `#tui` `#developer-tools` `#model-context-protocol`

---

## ๐Ÿ›๏ธ Interactive Architecture Diagram

Explore the full interactive system architecture with Light/Dark themes and semantic tracing:
๐Ÿ‘‰ **[View Interactive Architecture Diagram](specs/001-multi-agent-mcp-hub/architecture.html)**

---

## ๐ŸŒŸ Why H0wZy/mcp?

1. **DRY Shared Core (`@h0wzy/mcp-shared`):**
   - Eliminates matrix code duplication across host agents. A single `createMcpServer()` engine manages 100% of JSON-RPC 2.0 stdio protocol handling, error catching, and lifecycle handshakes.
2. **Native Cross-Platform (Zero Windows Glitches):**
   - Eliminates POSIX-only bugs like `PATH.split(':')` by utilizing native path delimiters (`;` on Windows, `:` on POSIX).
   - Resolves executable extensions automatically (`.exe`, `.cmd`, `.bat` from `PATHEXT`), finding `agy.exe` and `codex.cmd` without requiring manual environment path overrides.
3. **Instant Performance (Zero `npx` Latency):**
   - Directly executes local binaries with sub-50ms invocation overhead, removing runtime `npx` network/cache-checking delays.
4. **Resilient Rate Limits & Quotas:**
   - Gracefully traps HTTP 429 and `ResourceExhausted` provider quota limits, returning structured `{ isError: true }` responses so host agents fall back seamlessly without crashing the session.
5. **Interactive Go CLI (`h0wzy-mcp`):**
   - Auto-detects local CLI installations (`claude`, `codex`, `agy`), tests binary health, and guides the user through an interactive checklist to configure MCP connections globally or per-project.

---

## ๐Ÿ“ Repository Layout

```text
H0wZy/mcp/
โ”œโ”€โ”€ .github/workflows/          # CI/CD & cross-platform testing
โ”œโ”€โ”€ cli/                        # Interactive CLI in Go (Bubble Tea / Huh)
โ”‚   โ”œโ”€โ”€ cmd/                    # Commands: install, doctor, list, remove
โ”‚   โ”œโ”€โ”€ detector/               # Discovers local claude, codex, and agy CLIs
โ”‚   โ”œโ”€โ”€ config/                 # Read/write ~/.claude.json, config.toml, etc.
โ”‚   โ””โ”€โ”€ ui/                     # Terminal user interface
โ”œโ”€โ”€ servers/                    # Decoupled, host-agnostic MCP servers
โ”‚   โ”œโ”€โ”€ antigravity/            # Google Antigravity bridge (Gemini 3.1 Pro / Flash)
โ”‚   โ”œโ”€โ”€ codex/                  # OpenAI Codex CLI bridge (GPT-5.6 / GPT-6 Astra)
โ”‚   โ””โ”€โ”€ claude/                 # Claude Code bridge
โ”œโ”€โ”€ shared/                     # Reusable core (@h0wzy/mcp-shared)
โ”‚   โ”œโ”€โ”€ server.js               # createMcpServer() generic JSON-RPC 2.0 stdio engine
โ”‚   โ”œโ”€โ”€ executor.js             # Child process runner with timeouts and buffers
โ”‚   โ”œโ”€โ”€ resolver.js             # Cross-platform executable resolver
โ”‚   โ””โ”€โ”€ errors.js               # Resilient Quota / HTTP 429 error handler
โ”œโ”€โ”€ npm/                        # Lightweight npx runner wrapper
โ”œโ”€โ”€ specs/                      # SpecKit feature specs & Archify diagrams
โ”œโ”€โ”€ LICENSE                     # MIT License
โ””โ”€โ”€ package.json                # Monorepo workspaces configuration
```

---

## ๐Ÿš€ Quick Start

### 1. Interactive Setup (Recommended)

Choose your preferred way to run H0wZy/mcp:

```bash
# 1. Instant execution via npx (Zero setup):
npx @h0wzy/mcp

# 2. Or install globally via npm (provides 'hmcp', 'hwzmcp', and 'h0wzy-mcp'):
npm install -g @h0wzy/mcp
hmcp

# 3. Or directly from source with Go:
go run ./cli setup-path
hmcp
```

#### ๐Ÿ“ฆ Precompiled Standalone Binaries (v1.0.2)

Download zero-dependency native binaries directly from [Releases](https://github.com/H0wZy/mcp/releases):
- ๐ŸชŸ **Windows (`amd64`):** [`h0wzy-mcp-windows-amd64.exe`](https://github.com/H0wZy/mcp/releases/download/v1.0.2/h0wzy-mcp-windows-amd64.exe)
- ๐Ÿง **Linux (`amd64`):** [`h0wzy-mcp-linux-amd64`](https://github.com/H0wZy/mcp/releases/download/v1.0.2/h0wzy-mcp-linux-amd64)
- ๐Ÿ **macOS Apple Silicon (`arm64`):** [`h0wzy-mcp-darwin-arm64`](https://github.com/H0wZy/mcp/releases/download/v1.0.2/h0wzy-mcp-darwin-arm64)
- ๐Ÿ **macOS Intel (`amd64`):** [`h0wzy-mcp-darwin-amd64`](https://github.com/H0wZy/mcp/releases/download/v1.0.2/h0wzy-mcp-darwin-amd64)

The CLI will scan your system:
```text
๐Ÿš€ H0wZy/mcp โ€” Multi-Agent MCP Hub Setup
Scanning local AI developer CLIs...
  โœ“ Claude Code (C:\Users\...\claude.exe)
  โœ“ OpenAI Codex CLI (C:\Users\...\codex.cmd)
  โœ“ Google Antigravity (C:\Users\...\agy.exe)

? Select MCP bridges to configure:
  [x] Claude Code -> Google Antigravity (Gemini 3.1 Pro/Flash)
  [x] Claude Code -> OpenAI Codex (GPT-5.6 / GPT-6 Astra)
  [ ] OpenAI Codex -> Google Antigravity (Gemini 3.1)

? Configuration Scope: User (Global across all projects)
? Apply configuration now? Yes

โœ… All selected bridges configured successfully!
```

---

### 2. Commands & Management

```bash
# Check version and verify if updates are available
hmcp version

# Upgrade hmcp to latest release (or 'hmcp update')
hmcp upgrade

# Setup PATH and shims (~/.local/bin) so 'hmcp' works everywhere
hmcp setup-path

# Diagnose local environment, paths, and agent communication health
hmcp doctor

# Diagnose and output as JSON
hmcp doctor --json

# Install all supported integrations automatically
hmcp install --all

# Install a specific bridge globally or locally
hmcp install claude-antigravity --scope user
hmcp install claude-codex --scope project

# List available bridges
hmcp list

# Remove an integration
hmcp remove claude-antigravity
```

---

## ๐Ÿ”Œ Available MCP Tools (Symmetrical Parity)

| Provider | Tool Name | Description |
| :--- | :--- | :--- |
| **Antigravity** | `ask_antigravity` | Independent second opinion or general inquiry from Gemini 3.1 Pro / Flash |
| **Antigravity** | `review_antigravity` | Comprehensive code & security review inspecting correctness, edge cases, and diffs |
| **Antigravity** | `brainstorm_antigravity` | Architectural exploration, trade-offs, and design patterns with Gemini |
| **Antigravity** | `plan_antigravity` | Structured implementation roadmaps and dependency-ordered execution steps |
| **Codex** | `ask_codex` | Cross-verification with OpenAI Codex (GPT-5.6 Terra / GPT-6 Astra) |
| **Codex** | `review_codex` | Structured repository code review from OpenAI Codex |
| **Codex** | `brainstorm_codex` | Architectural exploration, trade-offs, and system design ideation with Codex |
| **Codex** | `plan_codex` | Step-by-step implementation planning and checklist generation |

---

## ๐Ÿงช Testing

```bash
# Run all Node.js MCP server & resilience tests
npm test

# Run all Go CLI detector & config tests
go test -v ./cli/...
```

---

## ๐Ÿ“„ License & Acknowledgements

Created and architected by **Marcos (H0wZy)** under the [MIT License](LICENSE).

This project unifies and enhances foundational work from the open-source MCP community:
- [antigravity-claude-mcp](https://github.com/arjunthilak05/antigravity-claude-mcp) by Arjun Thilak (MIT License)
- [codex-mcp-tool](https://github.com/trishchuk/codex-mcp-tool) by Taras Trishchuk (MIT License)