Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Automatically captures technical and product decisions from Claude Mac app sessions and writes them into project files, enabling seamless context transfer between strategy and coding sessions.

README.md

claude-code-bridge

A local MCP server that automatically captures decisions from your Claude Mac app strategy sessions and writes them into your project. When you open Cursor, Claude Code already knows where things stand.

---

Who This Is For

You use Claude Mac app to think through product decisions, architecture, and strategy. You use Cursor and Claude Code to build. Every time you switch between them, you lose context. You re-explain what was decided, what the constraints are, what to build next.

This tool eliminates that. After every strategy session, Claude writes the technical decisions into CLAUDE.md and the product decisions into docs/decisions.md inside your project. Cursor reads CLAUDE.md automatically. Anyone reading your repo can follow the product thinking in docs/decisions.md.

---

Two Files, Two Purposes

CLAUDE.md — technical context for Claude Code. Stack, architecture, code rules, and a log of technical decisions. Claude Code reads this at the start of every Cursor session via .cursorrules.

docs/decisions.md — product decision log for humans. Why certain decisions were made, what tradeoffs were accepted, what alternatives were rejected. Useful for PMs and engineers reviewing your work. Append-only, never edited.

---

How the Loop Works

1. You strategize with Claude in Claude Mac app
             |
             v
2. Claude writes technical decisions to CLAUDE.md
   and product decisions to docs/decisions.md
   Automatically, at the end of every strategy session
             |
             v
3. You open Cursor
             |
             v
4. Cursor reads CLAUDE.md automatically via .cursorrules
   Claude Code starts with full context, no commands needed
             |
             v
5. You build. Claude Code knows the decisions, constraints,
   and history. No re-explaining.
             |
             v
6. Next strategy session in Claude Mac app
   Claude reads the existing log, builds on top of it
   The cycle repeats. Context compounds.

---

Setup (Once Per Machine)

Step 1: Clone and build

git clone https://github.com/harshitleads/claude-code-bridge.git
cd claude-code-bridge
npm install
npm run build

The build step is required. It compiles the TypeScript server into dist/index.js which Claude Mac app will run.

---

Step 2: Find your Node.js path

which node

Copy the output. You need it in the next step.

On Macs with Homebrew, the node path is usually /opt/homebrew/bin/node. The default /usr/bin/node often does not work. Always use the output of which node.

---

Step 3: Register the server with Claude Mac app

Open this file:

~/Library/Application Support/Claude/claude_desktop_config.json

Add the mcpServers block:

{
  "mcpServers": {
    "claude-code-bridge": {
      "command": "/your/node/path/here",
      "args": ["/absolute/path/to/claude-code-bridge/dist/index.js"]
    }
  }
}

Quit Claude Mac app (Cmd+Q) and reopen it. Go to Settings, then Connectors. You should see claude-code-bridge listed as LOCAL DEV with three tools: read_file, write_decisions, and create_file.

If you do not see it, the most common causes are a wrong node path or a wrong path to dist/index.js.

---

Setup (Once Per Project)

Step 4: Create CLAUDE.md in your project

Create a CLAUDE.md file at the root of your project:

## Vision and Mission
What this project does and who it is for.

## Current Stack
Technologies, frameworks, deployment setup.

## Code Rules
Non-negotiable standards for this project.

## Project Log
Technical decisions appended here automatically via claude-code-bridge.

---

Step 5: Create docs/decisions.md in your project

# Product Decisions

A running log of significant product decisions. Each entry records what was decided, why, and what alternatives were rejected. Append-only, never edit old entries.

---

This file is for product decisions and tradeoffs. It is public and intended for PMs and engineers reviewing your work.

---

Step 6: Add .cursorrules to your project

Create a .cursorrules file at the root of your project:

Read CLAUDE.md at the start of every session before doing anything else.
This file contains the project vision, stack, code rules, and a log of
technical decisions. Never skip this step.

---

Step 7: Add instructions to your Claude Mac app Project

In Claude Mac app, create a Project for your work. Then open the Project settings and find the Project instructions field. This is separate from the Description field — the Description is just a label, while Project instructions are what Claude actually follows in every conversation.

Important: do not put this in the Description field. It must go in Project instructions for Claude to treat it as binding rules.

Paste this into Project instructions:

## Project Path Registry

Project paths:
- my-project:
  - CLAUDE.md: /absolute/path/to/my-project/CLAUDE.md
  - decisions: /absolute/path/to/my-project/docs/decisions.md
- another-project:
  - CLAUDE.md: /absolute/path/to/another-project/CLAUDE.md
  - decisions: /absolute/path/to/another-project/docs/decisions.md

## Auto-sync Rules

At the end of every technical discussion:
1. Identify which project was discussed
2. Read its current CLAUDE.md using read_file
3. If CLAUDE.md is messy or contradictory, rewrite it cleanly using create_file. Otherwise append using write_decisions.
4. Write only technical decisions to CLAUDE.md — stack changes, constraints, next tasks. Nothing personal.
5. Write product tradeoff decisions to docs/decisions.md — what was decided, why, what was rejected. Dated, short, append-only.
6. If nothing technical was decided, write nothing. Go lean.
7. Do all of this automatically, without being asked.

Replace the example paths with your actual absolute project paths. Add one line per project.

---

Tools

read_file reads any file by absolute path. Claude uses this before writing to avoid duplicating existing content.

write_decisions appends a timestamped entry to any file. Used for both CLAUDE.md and docs/decisions.md.

create_file creates a new file with full content, creating directories if needed. Used for new project files or rewriting messy files cleanly.

---

Requirements

  • Mac only
  • Node.js 18 or higher
  • Cursor with Claude Code
  • Claude Mac app

---

The Short Version

You strategize. Claude writes. Cursor reads. You build. Every session adds to the log. The context never resets.

---

Built by Harshit Sharma.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.