Shift MCP Server logo

Shift MCP Server

Coordinates AI agents editing the same codebase through shared sessions, file declarations, overlap checks, and handoffs.

Install Shift MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

shift-mcp-server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Start the server
    SHIFT_WORKSPACE=my-project MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
    
  2. 2. Install
    git clone https://github.com/cyanheads/shift-mcp-server.git
    
  3. 3. Configure
    cd shift-mcp-server
    
  4. 4. Install
    bun install
    
  5. 5. Configure
    cp .env.example .env
    
  6. 6. Run
    bun run rebuild
    

Overview

shift-mcp-server coordinates multiple AI agents working in a shared codebase by maintaining a workspace-scoped roster of active sessions. Agents check in with a task description and expected files, then receive peer presence, file overlaps, and recent handoffs; checking out records a final summary for other workers. It provides stdio and Streamable HTTP transports, with npm, Bun, and Docker installation options. Reach for it when concurrent coding agents need a lightweight coordination protocol rather than direct file or task management.

Use cases

  • Coordinate agents editing the same repository
  • Detect declared-file overlaps before making changes
  • Share handoffs after an agent finishes
  • Track active workers by project workspace

Key features

  • Workspace-scoped multi-agent roster
  • File declaration and overlap detection
  • Check-in and check-out handoffs
  • Status resource with active workers
  • Stdio and Streamable HTTP transports
  • Structured and Markdown MCP output

Tools2

What Shift MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~60 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 80d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 22d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit9d agoMost recent push to the default branch.
Tools exposed2Callable tools this server registers over MCP.

How Shift MCP Server works

What shift-mcp-server does

shift-mcp-server keeps a roster for agents working on the same project. Each session has a six-character worker ID, a task gist, optional declared files, a workspace, and timestamps. The roster shows active peers and helps agents identify shared files before making edits.

Two MCP tools form the coordination workflow:

  • shift_check_in creates or updates a session and returns the worker record, active workers, the resolved workspace, a status resource URI, file overlaps, and recent handoffs.
  • shift_check_out removes a session and records its final declaration, declared files, checkout time, and optional one-sentence summary for peers.

The server also exposes shift://status for the default workspace and a workspace-qualified status resource. A bundled shift-guide skill covers shared edits, interrupted sessions, and handoffs.

How it works

Check in with a required task gist. You can include repo-relative files, a workspace, or an existing workerId to update a session. Updates use patch semantics: omitted fields remain unchanged, while files: [] clears the file declaration. Worker IDs are case-insensitive and returned in uppercase.

File overlap detection compares normalized declarations lexically. When an absolute workspace identifier is used, paths within that root can match equivalent relative paths. The original declarations remain available, while the overlap result identifies matching files and the corresponding active worker IDs.

Sessions are isolated by workspace and persist across restarts until checked out. Native processes for one operating-system user share the default state directory at ~/.local/state/shift-mcp-server. The roster can use a per-user SQLite store and is shared across processes that use the same state and workspace settings.

Both structured MCP output and formatted Markdown carry the same coordination data. Check-in responses include the coordination guidance and active-worker table, while failure responses include the current roster to help an agent recover without first making another orientation request. Status updates can be delivered through subscriptions for committed check-ins, session updates, and actual removals within the process event bus.

Setup and configuration

Run the package through Bun or npx as an MCP stdio server:

config.json
{
  "mcpServers": {
    "shift-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cyanheads/shift-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

A Docker image is also available. Mount a persistent volume at /var/lib/shift-mcp-server and set SHIFT_WORKSPACE when agents or containers need to share an explicitly named roster. Native and containerized processes must use the same state directory and workspace to see one another.

When launched from a Git project, the server uses the enclosing real worktree root of CLAUDE_PROJECT_DIR when supplied by Claude Code, or of the launch directory. Outside Git, it uses the real launch directory. Subdirectories and symlinks into the same worktree resolve to the shared roster.

Tools and capabilities

  • Register or refresh a worker session with shift_check_in.
  • Declare expected files and receive lexical overlap results.
  • Inspect active workers and recent handoffs through the status resource.
  • Close a session with shift_check_out and leave a handoff summary.
  • Use in-memory, filesystem, Supabase, or Cloudflare KV/R2/D1 storage through the underlying framework.
  • Run over stdio or Streamable HTTP with configurable authentication options including none, JWT, and OAuth.

Limitations and notes

An unknown worker ID produces a typed unknown_worker error for check-in, while checkout of an unknown or already removed ID returns removed: false. Orphan detection can confirm that an owning process disappeared only within the same PID namespace; a shared HTTP server cannot detect individual agent disconnects. Confirm that a claim is stale before clearing it.

The legacy delivery adapter requires polling. Resource notifications remain within one process, while reads observe committed state from other processes. Text-formatted roster output normalizes line endings and escapes table delimiters, but structured fields preserve their original values.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Shift MCP Server

shift-mcp-server is an MCP server that coordinates AI agents working on the same codebase through a shared workspace roster. Its main tools, shift_check_in and shift_check_out, register sessions, report active peers and declared-file overlaps, expose recent handoffs, and record final summaries when agents finish.

Install it by adding an MCP stdio entry that runs @cyanheads/shift-mcp-server@latest with npx or Bun. Docker is also supported with the published image, a persistent state mount, and an optional SHIFT_WORKSPACE value for a shared project roster.

Yes, shift-mcp-server has a Cursor installation configuration. Cursor can run the package as an MCP server with npx and the @cyanheads/shift-mcp-server@latest package.

It compares the repo-relative files declared during check-in using lexical path matching. The check-in response lists normalized overlapping files and the worker IDs of active peers that declared them; an absolute workspace identifier can also match equivalent paths inside that root.

Agents share a roster by using the same workspace and state directory. Native processes for one OS user use ~/.local/state/shift-mcp-server by default, while containers should bind-mount the corresponding native state directory and use the same explicit SHIFT_WORKSPACE.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewShift MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/shift-mcp-server?style=directory)](https://allmcps.com/mcp/shift-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/shift-mcp-server"><img src="https://allmcps.com/api/badge/shift-mcp-server?style=directory" alt="Shift MCP Server on AllMCPs" /></a>