Skip to main content
Glama

BranchWire

MCP Dry-Run & Transactional Staging Gateway (Plan-Verify-Commit with Sagas)

BranchWire is a Stateless MCP (2026-07-28) HTTP gateway that lets AI agents explore, simulate, and compare multi-tool write workflows (Best-of-N) with zero production side effects, audit a deterministic Transactional Plan Diff, and materialize only approved plans via a durable Saga Executor with idempotency keys and automatic compensation.

Architecture

packages/
├── manifest/        @branchwire/manifest        x-branchwire tool manifest schema & template contract
├── core/            @branchwire/core            Branches, SnapshotReadCache, ShadowOverlay, $ref, RYOW
├── storage-sqlite/  @branchwire/storage-sqlite  node:sqlite WAL StorageDriver + SQL migrations
├── planner/         @branchwire/planner         DAG compiler, write collapsing, Transactional Plan Diff
├── policy/          @branchwire/policy          Deterministic policy engine + Decision Model gate
├── saga/            @branchwire/saga            Durable Saga executor, idempotency & compensation
├── gateway/         @branchwire/gateway         Stateless MCP Hono HTTP gateway & Branch REST API
├── sdk/             @branchwire/sdk             TypeScript client for agents
└── adapters/        sqlite-branch, neon-branch, stripe, hubspot
apps/
├── inspector/       Branch & Diff Inspector UI
├── agent-harness/   Gemini agent & Best-of-N evaluation harness
└── docs/            Documentation site

Related MCP server: enterprise-agent-lab

Prerequisites

  • Node.js >= 24.0.0 (developed and verified on Node 26.13.1 Active LTS; see .node-version)

  • pnpm 12.21.0

Quick Commands

pnpm install
pnpm turbo run lint typecheck test build
pnpm check:deps
pnpm check:secrets

Documentation & ADRs

License

Licensed under the Apache License 2.0.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers