Skip to content

AnukaMithara/Workplane

Repository files navigation

Workplane

Workplane MCP diagram

Workplane is an MCP (Model Context Protocol) stdio server that provides a Git worktree-based Workspace Manager for safe, reproducible Multi-agent software delivery.

Keywords: MCP server, Model Context Protocol, Git worktrees, workspace isolation, patch application, command execution, evidence capture, artifact store, locking, multi-agent development.

Phase 1 goals:

  • Isolated workspaces using Git worktrees
  • Centralized state + artifact store under a single root directory
  • Locks to prevent concurrent workspace mutation
  • Safe-by-default tool surface for orchestrators and worker agents

Features (Phase 1)

  • Create, list, inspect, and close workspaces backed by Git worktrees
  • Apply patches inside a workspace using git apply (--check supported)
  • Compute diffs inside a workspace using git diff (optional artifact storage)
  • Run commands in a workspace with:
    • denylist policy (configurable)
    • timeout enforcement
    • bounded stdout/stderr capture (truncation flags)
    • stdout/stderr stored as separate log artifacts
  • Artifact store: put/get/list per workspace
  • JSON persistence (state.json) with atomic writes (v0.1)

Use Cases

  • Orchestrate multi-agent coding with one isolated workspace per agent/task
  • Provide a safe control plane for applying patches and running tests with captured logs
  • Collect diffs/logs/notes as artifacts for review, auditing, or CI handoff

Safety Model (Phase 1)

  • All state lives under one root directory: WORKPLANE_ROOT (default ~/.workplane)
  • Mutation tools (workspace.apply_patch, workspace.run, workspace.close) enforce locks
  • Command execution uses spawn with shell:false, denylist policy, timeouts, and bounded output capture

Tool Status

Implemented tools:

  • Workspace: workspace.create, workspace.get, workspace.list, workspace.close
  • Concurrency: workspace.lock, workspace.release
  • Code ops: workspace.apply_patch, workspace.diff, workspace.run
  • Artifacts: artifact.put, artifact.get, artifact.list

Optional (not implemented):

  • workspace.note.add, workspace.note.list

Quick Links

Quickstart

Prereqs:

  • Node.js (LTS recommended)
  • Git available on PATH

Install and build:

npm install
npm run build

Run the server (dev):

npm run dev

Run the server (prod):

npm start

Run smoke checks:

npm run smoke

Configuration

Environment variables:

  • WORKPLANE_ROOT: Workplane data root directory (default: ~/.workplane)
  • WORKPLANE_COMMAND_DENYLIST: comma-separated executable denylist for workspace.run

Docs: docs/configuration.md

Documentation

Examples

Development

Scripts:

  • npm run dev (tsx) starts the MCP stdio server from src/
  • npm run build builds to dist/
  • npm start runs the built server
  • npm run smoke runs an end-to-end smoke test against dist/server.js

Contributing: CONTRIBUTING.md

License

LICENSE

About

A workspace control plane for safe multi-agent development over MCP.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors