patchwork-os

mcp
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Warn
  • fs module — File system access in .github/workflows/ci.yml
Permissions Pass
  • Permissions — No dangerous permissions requested
Purpose

This tool acts as a bridge connecting AI models (like Claude) directly to your IDE and local development environment. It exposes over 170 tools to the AI, allowing it to interact with your code editor, run terminal commands, manage Git repositories, and execute debugging workflows.

Security Assessment

The overall security risk is High. By design, this server grants the AI extensive access to your local machine. It explicitly executes shell commands, provides full file system access, and interacts with your GitHub account to manage pull requests and issues. It communicates via local WebSockets and HTTP transports, requiring careful network isolation. While automated rule-based scans found no hardcoded secrets or dangerous requested permissions, file system manipulation is present in its continuous integration workflows. The fundamental architecture of handing over deep terminal and IDE control to an AI agent requires significant trust and strict oversight of the AI's actions.

Quality Assessment

The project is actively maintained with recent repository pushes and is properly licensed under the permissive MIT license. However, community trust and visibility are currently very low. With only 6 stars on GitHub, the tool has not yet undergone widespread peer review or battle-testing by the broader developer community.

Verdict

Use with caution — while actively maintained and MIT-licensed, granting deep terminal and file system control to an AI via a project with minimal community oversight carries inherent risks.
SUMMARY

MCP bridge between Claude Code and your IDE (170+ tools — LSP, debugger, terminal, git). Optional Patchwork OS layer adds recipes, approval queue, and oversight dashboard.

README.md

Claude IDE Bridge & Patchwork OS

One npm package. Two products. Pick the layer you need.

What you get Install Best for
🔌 Claude IDE Bridge MCP bridge connecting Claude Code to your IDE. 170+ tools — diagnostics, LSP, debugger, terminal, git, GitHub, file ops. npm i -g patchwork-os then run claude-ide-bridge Anyone who wants Claude Code to see and act on their editor state
🤖 Patchwork OS Everything in the bridge plus YAML recipes, approval queue, oversight dashboard, mobile push approvals, multi-model providers, JetBrains companion. Same package, run patchwork patchwork-init Power users running automation, agent workflows, or background tasks

Same codebase. Bridge is the foundation; Patchwork OS is the optional layer on top. No vendor lock-in. Runs on your machine.


🔌 Claude IDE Bridge — Quick Start

# 1. Install the npm package
npm install -g patchwork-os

# 2. Install the VS Code / Cursor / Windsurf extension
#    Search "Claude IDE Bridge" on OpenVSX, or:
claude-ide-bridge install-extension

# 3. Start the bridge for your workspace
claude-ide-bridge --workspace .

# 4. Connect Claude Code (in another terminal)
CLAUDE_CODE_IDE_SKIP_VALID_CHECK=true claude --ide

Type /ide in Claude Code to confirm the connection. That's it — Claude now sees your diagnostics, open files, and editor state, and can call 170+ tools to act on them.

What the bridge gives Claude:

  • Diagnostics, LSP navigation (goto / references / call hierarchy), refactoring with risk analysis
  • Terminal — run commands, read output, wait for async work
  • Git — status, diff, commit, push, blame, checkout, branch list
  • GitHub — open PRs, list issues, post reviews, fetch run logs
  • Debugger — set breakpoints, evaluate expressions, inspect runtime state
  • Files — read, edit by line range, search and replace, capture screenshots
  • Code quality — auditDependencies, detectUnusedCode, getCodeCoverage, getGitHotspots

The bridge runs without any flags. No recipes, no automation, no dashboard — just the IDE-Claude connection.

Compatible IDEs: VS Code, Cursor, Windsurf, Google Antigravity. JetBrains IDEs via companion plugin.

Transport layers:

Client Protocol
Claude Code CLI WebSocket ws://127.0.0.1:<port>
Claude Desktop stdio shim → WebSocket
Remote (claude.ai, Codex CLI) Streamable HTTP + Bearer token

Tool modes:

Mode Tools When to use
Full (default) ~170 All git, GitHub, terminal, file ops, orchestration
Slim (--slim) ~60 LSP + debugger + editor state only

Bridge-only docs: documents/platform-docs.md


🤖 Patchwork OS — Quick Start

npx patchwork-os@alpha patchwork-init

Sets up 5 local recipes, detects Ollama, and opens a terminal dashboard — under 90 seconds.

What it adds on top of the bridge

Patchwork OS is a local automation platform that watches your workspace for events, runs AI-powered recipes in response, and routes anything risky through an approval queue before it goes anywhere.

Think of it as a background agent that acts on your behalf — but asks before sending, writing, or modifying anything consequential.

  • Test suite fails on CI → triage note in your inbox before you wake up
  • Customer email arrives → draft reply in your voice, pending your approval
  • Field-trip permission form flagged → reply drafted to the teacher, waiting for your nod

Recipes are plain YAML files. They declare a trigger (cron, file save, git commit, test run, webhook) and an action (run a prompt, write to inbox, call a connector). No code required. Share them like dotfiles.

Models are yours. Claude, GPT, Gemini, Grok, or local Ollama. Swap at any time. Nothing phones home.

Oversight is non-negotiable. Every write or external action lands in ~/.patchwork/inbox/ for approval. The web UI at http://localhost:3100 shows pending approvals, live sessions, recipe run history, and analytics.

Patchwork commands

# One-command setup: extension + CLAUDE.md + starter recipes
patchwork patchwork-init

# Explore
patchwork recipe list                      # installed recipes
patchwork recipe run daily-status         # run one now
patchwork recipe run morning-brief --local # run with local Ollama
patchwork tools list                      # browse 170+ tools
patchwork                                 # open terminal dashboard

# Web UI — bridge + extension watcher in tmux
patchwork start-all                       # then http://localhost:3100

Starter recipes

No external API keys needed for these:

Recipe Trigger What it does
ambient-journal git commit Appends one line to ~/.patchwork/journal/
daily-status cron 08:00 Morning brief from yesterday's commits
watch-failing-tests test run Drops triage note to inbox on failure
lint-on-save file save Surfaces new TS/JS diagnostics to inbox
stale-branches cron weekly Lists branches older than 30 days
morning-brief cron 08:00 Commits + Linear issues + Calendar events
sentry-to-linear manual Sentry issue → Linear ticket (one-shot)
google-meet-debrief manual Meeting notes → Linear + Slack

Connectors (Linear, Sentry, Slack, Google Calendar, Intercom, HubSpot, Datadog, Stripe) require API keys and approval-gated writes.

Automation hooks

Event-driven hooks trigger Claude tasks automatically. Activate with --automation --automation-policy <path.json> --claude-driver subprocess.

Key hooks:

Hook Fires when
onFileSave Matching files saved
onDiagnosticsStateChange Errors appear or clear
onRecipeSave Any .yaml/.yml saved — runs preflight
onGitCommit / onGitPush / onGitPull Git tools succeed
onTestRun Test run completes (filter: any/failure/pass-after-fail)
onBranchCheckout After branch switch
onPullRequest After githubCreatePR succeeds
onCompaction Before/after Claude context compaction
onTaskCreated / onTaskSuccess Orchestrator task lifecycle

All hooks support inline prompts, named prompt references, and a minimum 5s cooldown. Full reference: documents/platform-docs.md → Automation Hooks


Architecture

patchwork-os (npm package)
│
├── claude-ide-bridge          ← run alone for bridge-only mode
│   ├── MCP server             170+ tools over WebSocket / HTTP / stdio
│   ├── VS Code extension      LSP, debugger, editor state, live diagnostics
│   ├── Git / GitHub           gitCommit, gitPush, githubCreatePR, …
│   ├── Terminal               runInTerminal, getTerminalOutput, …
│   └── Code quality           auditDependencies, detectUnusedCode, getCodeCoverage
│
└── patchwork                  ← run for full Patchwork OS layer
    ├── Recipe runner          YAML triggers → LLM prompt → action
    ├── Connectors             Linear, Sentry, Slack, Google Calendar, +
    ├── Orchestrator           Claude subprocess tasks, automation hooks
    ├── Oversight inbox        ~/.patchwork/inbox/ — approval queue
    └── Web dashboard          http://localhost:3100 — approvals, sessions, analytics

The npm package ships three CLI binaries that share the same code:

Binary Default behavior
claude-ide-bridge Bridge only — no automation, no recipe runner, no dashboard
patchwork Full Patchwork OS — automation + recipes + dashboard
patchwork-os Alias for patchwork

Use whichever fits your mental model.


Tool surface (v0.2.0-alpha.35)

170+ MCP tools across 15 categories. Highlights:

Category Tools
LSP / Code Intelligence getDiagnostics, goToDefinition, findReferences, getCallHierarchy, renameSymbol, refactorAnalyze, explainSymbol, … (37 tools)
Git getGitStatus, getGitDiff, gitCommit, gitPush, gitCheckout, gitBlame, … (16 tools)
GitHub githubCreatePR, githubListPRs, githubCreateIssue, githubPostPRReview, … (13 tools)
Terminal runInTerminal, createTerminal, getTerminalOutput, waitForTerminalOutput
File Operations editText, searchAndReplace, searchWorkspace, findFiles, getFileTree, …
Debugger setDebugBreakpoints, startDebugging, evaluateInDebugger
Orchestrator runClaudeTask, listClaudeTasks, getClaudeTaskStatus
Context Platform ctxGetTaskContext, ctxQueryTraces, ctxSaveTrace, enrichStackTrace

Full reference: documents/platform-docs.md


Plugin system

Extend the tool surface without forking the bridge.

# Scaffold a new plugin
patchwork gen-plugin-stub ./my-plugin --name "org/name" --prefix "myPrefix"

# Load at runtime
claude-ide-bridge --plugin ./my-plugin

Plugins register MCP tools in-process. Publish to npm with keyword claude-ide-bridge-plugin.

Full reference: documents/plugin-authoring.md


JetBrains plugin

Companion IntelliJ plugin (v1.0.0) on the JetBrains Marketplace. Covers 49 handlers: core tools, PSI-based LSP (goto, references, hover, rename, symbols, format), XDebugger integration, and code style tools.

Use the same bridge from VS Code and JetBrains IDEs simultaneously — IntelliJ IDEA, PyCharm, GoLand, WebStorm, and other IntelliJ-platform editors.

Source: intellij-plugin/


Remote deployment

Run headless on a VPS with full tool support via VS Code Remote-SSH.

claude-ide-bridge --bind 0.0.0.0 \
  --issuer-url https://your-domain.com \
  --fixed-token <uuid> \
  --vps

Systemd service and deploy scripts in deploy/. Full guide: docs/remote-access.md.


What's shipped

Feature Status
170+ MCP tools (LSP, git, tests, debugger, diagnostics) shipped
VS Code / Cursor / Windsurf / Antigravity extension shipped
JetBrains plugin (49 handlers) shipped
patchwork-init — one-command setup shipped
Terminal dashboard shipped
Web oversight UI (approvals, sessions, recipes) shipped
Recipe runner (YAML, cron, manual, webhook) shipped
Multi-provider LLM (Claude, Gemini, OpenAI, Grok, Ollama) shipped
Connectors: Linear, Sentry, Slack, Google Calendar, Intercom, HubSpot, Datadog, Stripe shipped
Cross-session memory (traces, handoff notes) shipped
Mobile oversight PWA (push approvals) shipped (alpha)
Community recipe marketplace Q3 2026

Install from source

git clone https://github.com/Oolab-labs/patchwork-os
cd patchwork-os
npm install && npm run build

# Pack first — do NOT use `npm install -g .`
# Symlink installs break the macOS LaunchAgent (EPERM at startup)
npm pack
npm install -g patchwork-os-*.tgz
patchwork patchwork-init

Documentation

Doc Contents
documents/platform-docs.md Full tool reference (170+ tools), automation hooks, connectors
documents/prompts-reference.md All 72 MCP prompts
documents/styleguide.md Code conventions, UI patterns
documents/roadmap.md Development direction
documents/data-reference.md Data flows, state management, protocol details
documents/plugin-authoring.md Plugin manifest schema, entrypoint API, distribution
docs/adr/ Architecture Decision Records
docs/remote-access.md VPS deployment guide

License

MIT © Oolab Labs

Reviews (0)

No results found