rapid-mcp-server

macjunkins/rapid-mcp-server

3.2

If you are the rightful owner of rapid-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The RAPID-MCP-Server is a Unified Model Context Protocol (MCP) server designed for RAPID-style AI workflows, providing a consistent command interface across various AI tools.

Build and Run (Zig 0.15.1)

Prerequisites:

  • Install Zig 0.15.1 (zig version to verify)

Commands:

  • Build (Debug): zig build
  • Build (Release Safe): zig build -Doptimize=ReleaseSafe
  • Build (Release Fast): zig build -Doptimize=ReleaseFast
  • Run: zig build run

This scaffolds the Rapid MCP Server and currently prints: Rapid MCP Server - Foundation

Dependencies

Runtime dependencies are configured in build.zig.zon:

  • ZigJR (JSON-RPC 2.0 foundation) - commit 1a783c5c7c01143001db2112d6feb4eb546dba0a
  • zig-yaml (YAML parsing) - commit a6c2cd8760bf45c49b17a3f6259c4dfe3ded528e (with Zig 0.15.x support)

All dependencies are automatically fetched by the Zig build system with pinned revisions and integrity hashes.

Development setup

  1. Install Zig 0.15.1 and verify with zig version
  2. Clone the repo and change into the directory
  3. Build: zig build (dependencies will be fetched automatically on first build)
  4. Run: zig build run

Build Targets

The build system supports multiple optimization modes:

  • Debug (default): zig build

    • Full debug symbols and runtime safety checks
    • Best for development and debugging
  • ReleaseSafe: zig build -Doptimize=ReleaseSafe

    • Optimized for performance with safety checks enabled
    • Recommended for production use
  • ReleaseFast: zig build -Doptimize=ReleaseFast

    • Maximum performance, safety checks disabled
    • Use only when performance is critical and code is well-tested

Repository layout

rapid-mcp-server/
├── build.zig              # Build configuration
├── build.zig.zon         # Package manifest (deps will be pinned)
├── src/
│   └── main.zig          # Entry point placeholder
├── test/
│   ├── unit/             # Unit tests (to be added)
│   └── integration/      # Integration tests (to be added)
├── docs/                 # Documentation
├── commands/             # YAML command definitions (to be populated)
├── prd.md                # Product requirements and architecture notes
└── README.md             # You are here

RAPID-MCP-Server

Status: 📋 Planning Phase - PRD Complete, Implementation Pending

Unified Model Context Protocol (MCP) server for RAPID-style AI workflows. Exposes 25 standardized RAPID commands to any MCP-compatible AI client (Claude Code, GitHub Copilot, Codex CLI, VS Code, etc.).


Current State

This repository contains:

  • 25 RAPID command definitions (commands/*.md) - Complete workflow playbooks
  • Comprehensive PRD (prd.md) - Full technical specification for Zig implementation
  • Contributor guidelines (AGENTS.md) - Repository expectations for agents and maintainers
  • Zig project foundation - Build system configured with ZigJR and zig-yaml dependencies
  • Implementation in progress - Phase 1 underway

Next up: Convert 3 MVP commands to YAML and implement core MCP protocol handlers


Architecture Decision: Zig, Not Node.js

Why Zig?

  • ⚡ Performance target: < 50ms startup vs Node.js ~200ms (unverified)
  • 📦 Minimal dependencies goal - static binary (with zig-yaml)
  • 🛡️ Memory safety without GC overhead
  • 🔧 Easy C interop for system tools (gh CLI, git)
  • 🚀 Foundation for RapidOS "AI-first" operating system
  • 🎯 Pioneering work - no mature Zig MCP implementations exist yet

Strategic rationale: Position RapidOS as an innovative, performance-focused platform by embracing emerging technologies early.

Reality check: This is pioneering work. ZigJR provides JSON-RPC foundation only - MCP protocol layer must be built from scratch.

See prd.md for full technical justification and implementation reality check.


What This Will Be

Once implemented, this MCP server will:

  1. Load 25 RAPID commands from YAML files (converted from current .md files)
  2. Validate all parameters rigorously (never trust AI input)
  3. Execute workflows via GitHub CLI (gh) for GitHub operations
  4. Return structured prompts to AI clients with full context
  5. Optional HTTP bridge for non-MCP clients (VS Code tasks, etc.)

Planned Architecture

┌─────────────────────────────────────────────────────────┐
│                   AI Clients                            │
│  Claude Code │ Copilot │ Codex │ VS Code │ Other MCP    │
└──────────────┬──────────┬───────┬──────────┬────────────┘
               │          │       │          │
               └──────────┴───────┴──────────┘
                          │ MCP Protocol (JSON-RPC/stdio)
               ┌──────────▼────────────────────┐
               │  Rapid MCP Server (Zig)       │
               │  - YAML Command Loader        │
               │  - Parameter Validator        │
               │  - GitHub CLI Wrapper         │
               │  - Prompt Template Engine     │
               └──────────┬────────────────────┘
                          │
               ┌──────────▼────────────────────┐
               │  External Tools                │
               │  - gh CLI (GitHub ops)         │
               │  - git (repo context)          │
               │  - filesystem (docs)           │
               └────────────────────────────────┘

Command Inventory (25 Total)

All commands currently defined in commands/*.md:

GitHub Operations (11)

  • sanity-check, gh-work, gh-finish, gh-update-issue, gh-review-issue
  • gh-validate-issue, gh-next-issue, create-issue, gh-create-milestone
  • create-pr, review-pr

Documentation (3)

  • doc-project, create-doc, shard-doc

Workflow/Analysis (8)

  • brainstorm, elicit, test-design, qa-gate, qa-apply-fixes
  • nfr-assess, risk-assess, correct-course

Utilities (3)

  • research-prompt, gen-prompt, trace-requirements

Implementation Phases

See prd.md for full details. Summary:

  1. Phase 1 (1-2 weeks): Foundation - Zig setup, 3 MVP commands (sanity-check, gh-work, create-issue)
  2. Phase 2 (1 week): End-to-end testing with Claude Code
  3. Phase 3 (2-3 weeks): Port all 25 commands, comprehensive testing
  4. Phase 4 (1 week): Optional HTTP bridge for non-MCP clients
  5. Phase 5 (1 week): RapidOS integration prep, cross-platform binaries

Estimated timeline: 8-12 weeks total (revised from original 6-8 week estimate)

Timeline adjustment: Accounts for building MCP layer from scratch, YAML conversion complexity, and Zig ecosystem learning curve.


Prerequisites (Future)

When implemented, you'll need:

  • Zig 0.14.0+ (or latest stable)
  • GitHub CLI (gh) authenticated locally
  • git (for repository context)

Example Usage (Future)

Once implemented, you'll be able to:

Claude Code CLI

# Work on a GitHub issue with full investigate → plan → execute workflow
/gh-work issue_number:42

Generic MCP Client

{
  "method": "tools/call",
  "params": {
    "name": "gh-work",
    "arguments": { "issue_number": 42 }
  }
}

VS Code Task (via HTTP bridge)

{
  "label": "Work on Issue #42",
  "type": "shell",
  "command": "curl -X POST http://localhost:5001/run -d '{\"command\":\"gh-work\",\"args\":{\"issue_number\":42}}'"
}

Why This Matters

Problem: RAPID workflow commands currently only work with Claude Code (defined in .claude/commands/*.md). Other AI tools can't access them.

Solution: MCP server exposes all commands to any MCP-compatible client. Write once, use everywhere.

Bonus: High-performance Zig implementation becomes core component of RapidOS, demonstrating technical leadership in AI-native systems.


Technology Stack (Planned)

Core:

  • Zig 0.14.0+ (build system + runtime)

Dependencies:

  • ZigJR - JSON-RPC 2.0 foundation (MCP layer built on top)
  • zig-yaml - YAML parsing (work-in-progress library)
  • http.zig - Optional HTTP bridge (truly optional for MVP)

Important: ZigJR provides JSON-RPC infrastructure only. MCP protocol methods must be implemented manually.

External Tools:

  • GitHub CLI (gh) - All GitHub operations
  • git - Repository context detection

Performance Targets

Note: Aspirational targets, not verified benchmarks. Actual performance will be measured during implementation.

  • Startup: Target < 50ms (cold start) - unverified
  • Command latency: Target < 100ms (YAML load + validation) - depends on zig-yaml
  • Memory: Target < 10MB (resident) - unverified
  • Binary size: Target < 5MB (static) - depends on dependencies
  • Reality: GitHub CLI network calls (500ms+) will dominate total latency

Next Steps

  1. ✅ PRD complete (see prd.md)
  2. ✅ Initialize Zig project in this repository
  3. ✅ Set up build.zig with ZigJR + zig-yaml dependencies
  4. ⏳ Convert 3 MVP commands to YAML schema
  5. ⏳ Implement core MCP protocol handlers
  6. ⏳ End-to-end test with Claude Code

Related Projects

Note: No mature Zig MCP server implementations exist as direct references. This is pioneering work.


License

MIT