原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Shift MCP Server

作者:cyanheads版本 0.2.0i★ –i在你的电脑上运行
注册名称io.github.cyanheads/shift-mcp-server

安装

概览

作者提供的说明(英文原文)

Lightweight coordination layer for multiple AI agents working on the same codebase simultaneously.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: SHIFT_WORKSPACE, SHIFT_STATE_DIR, MCP_LOG_LEVEL

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "shift": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/shift-mcp-server"
      ],
      "env": {
        "SHIFT_WORKSPACE": "your-value",
        "SHIFT_STATE_DIR": "your-value",
        "MCP_LOG_LEVEL": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add shift --env SHIFT_WORKSPACE=your-value --env SHIFT_STATE_DIR=your-value --env MCP_LOG_LEVEL=your-value -- npx -y @cyanheads/shift-mcp-server

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "shift": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/shift-mcp-server"
      ],
      "env": {
        "SHIFT_WORKSPACE": "your-value",
        "SHIFT_STATE_DIR": "your-value",
        "MCP_LOG_LEVEL": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "shift": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/shift-mcp-server"
      ],
      "env": {
        "SHIFT_WORKSPACE": "your-value",
        "SHIFT_STATE_DIR": "your-value",
        "MCP_LOG_LEVEL": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • SHIFT_WORKSPACE env
    Shared exact-match workspace namespace; defaults to the launch Git root or cwd.
  • SHIFT_STATE_DIR env
    Shared writable SQLite directory; defaults to ~/.local/state/shift-mcp-server.
  • MCP_LOG_LEVEL env
    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 cyanheads 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 1394 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1394 个服务器的 70% 更新
  • 基础检查结果等于或优于此分类中其他 1394 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Shift MCP Server 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.2.0)于20天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

电脑或云端★ 34,245MIT3天前更新
安装

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

在你的电脑上运行★ 10,225MIT16天前更新
安装

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

在云端运行★ 4,446Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

@cyanheads/shift-mcp-server Lightweight coordination layer for multiple AI agents working on the same codebase simultaneously. 2 Tools • 1 Resource • 1 Resource Template


Overview

Coordination layer for multiple AI agents working on the same codebase at once. Check in with a gist of your task and the files you expect to touch, see the full roster of active peers, and check out when finished.

Tools
ToolDescription
shift_check_inRegister or update a worker session. Returns a worker ID, the coordination protocol, and the active peers.
shift_check_outEnd a working session and remove it from the active worker list.
Resources
ResourceDescription
shift://statusAll currently active workers with their gists, declared files, and check-in timestamps.
shift://status{?workspace}The roster for an explicit workspace; use the statusUri returned by either tool.

The same roster is returned inline by shift_check_in. Modern subscriptions/listen streams receive one update per committed check-in, session update, or actual removal at the workspace-qualified URI; the bare alias is also published for the server's default workspace. Mutations from either protocol era publish through the same server event bus. This framework's legacy delivery adapter requires polling; that limitation is not inherent to the 2025 protocol. Notifications stay within one process; reads always observe committed state from other processes.

Capability reference

shift_check_in tool
  • Required gist plus optional files, workspace, and workerId (six ASCII letters/digits, case-insensitive) to update a session. IDs are stored and returned uppercase.
  • Returns your session, activeWorkers, resolved workspace, and qualified statusUri. Updates preserve omitted files and the original checkedInAt; an explicit empty files array clears the declaration.
  • The coordination protocol and applicable solo-worker notice are delivered once as notice in structured output and as a text trailer.
  • An unknown workerId fails with reason unknown_worker (NotFound), a recovery hint, and the current roster.

shift_check_out tool
  • Required workerId (six ASCII letters/digits, case-insensitive), optional workspace and one-sentence summary.
  • Returns removed, resolved workspace, qualified statusUri, and the ID/summary. An unknown or already-removed ID succeeds with removed: false and points to that roster without guessing why the ID is absent.
  • Publishes a resource update only when a session actually existed and was removed.

shift://status resource
  • Returns text/markdown — the active-workers table, or "No agents are currently active." when the roster is empty
  • workerId comes from shift_check_in
  • The bare resource reads the process default workspace. The qualified template reads the exact identifier encoded in its URI.
  • Table cells escape backslashes and pipes and flatten CRLF/LF/CR; stored values and structured output remain unchanged.

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

Coordination-specific:

  • Per-user SQLite roster shared across processes, isolated by workspace, durable across restarts until explicitly checked out
  • The coordination protocol ships in every check-in response, so ground rules reach the agent without client-side configuration
  • The active-workers table rides along with every check-in for situational awareness
  • Patch semantics on session updates — only the fields provided change

Agent-friendly output:

  • Both client surfaces carry the same data — structuredContent from the output schema, markdown from format()
  • shift_check_in declares a typed error contract, so an unknown worker ID arrives with data.reason and a recovery hint
  • Failure responses embed the current roster, so an agent recovers in the same turn instead of calling again to orient

Getting started

Add the following to your MCP client configuration file:

{

"mcpServers": { "shift-mcp-server": { "type": "stdio", "command": "bunx", "args": ["@cyanheads/shift-mcp-server@latest"], "env": { "MCP_TRANSPORT_TYPE": "stdio", "MCP_LOG_LEVEL": "info", "SHIFT_WORKSPACE": "my-project" } } } }

Or with npx (no Bun required):

{

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

Or with Docker:

{

"mcpServers": { "shift-mcp-server": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "-e", "SHIFT_WORKSPACE=my-project", "-v", "shift-state:/var/lib/shift-mcp-server", "ghcr.io/cyanheads/shift-mcp-server:latest" ] } } }

Set the same SHIFT_WORKSPACE and use the same state directory for every agent working together. Native processes for one OS user share ~/.local/state/shift-mcp-server by default. An explicit identifier is opaque and exact-match: my-project and /path/my-project are different namespaces. Native and Docker clients can share a roster by bind-mounting the native state directory into the container instead of using a named volume.

Without SHIFT_WORKSPACE, either transport uses the real path of the enclosing Git worktree root, or the launch cwd outside Git. An empty tool workspace selector uses this default too; nonempty identifiers remain exact. Launching from a subdirectory or symlink converges on the same root. Desktop clients and install badges may launch outside your project: configure SHIFT_WORKSPACE after installation, or pass workspace in every tool call. The Desktop bundle prompts for a workspace. The Codex plugin forwards SHIFT_WORKSPACE and SHIFT_STATE_DIR from your environment; the Claude plugin exposes matching configuration options.

A shared HTTP process uses its own launch directory as the default; multiplexed clients must pass an explicit workspace for their project:

SHIFT_WORKSPACE=my-project MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http

Server listens at http://localhost:3010/mcp

Prerequisites
  • Bun v1.4.3 or higher (or Node.js v24+).
  • No API keys, accounts, or external services.
Installation
  1. Clone the repository:
git clone https://github.com/cyanheads/shift-mcp-server.git
  1. Navigate into the directory:
cd shift-mcp-server
  1. Install dependencies:
bun install
  1. Configure environment:
cp .env.example .env

edit .env if you need to override a framework default

Configuration

The roster uses SQLite independently of the framework's STORAGE_PROVIDER_TYPE. State persists until check-out; restarting does not clear abandoned sessions. There is no TTL or automatic reaping. Workspace names and worker IDs are coordination selectors, not authentication boundaries.

WAL and BEGIN IMMEDIATE serialize mutations, ID allocation, and the returned roster snapshot. Startup retries SQLite lock contention within one 3-second deadline; a busy mutation also waits at most 3 seconds. Busy, corrupt, or unwritable storage fails visibly without an in-memory fallback. Use a local filesystem supporting SQLite locking for the shared state directory.

VariableDescriptionDefault
SHIFT_WORKSPACEOpaque default workspace namespace; tools can override it.Real Git root or launch cwd
SHIFT_STATE_DIRShared writable local directory containing roster.sqlite.~/.local/state/shift-mcp-server
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTPort for the HTTP server.3010
MCP_HTTP_HOSTHostname for the HTTP server.127.0.0.1
MCP_SESSION_MODEHTTP session handling: auto, stateful, or stateless. The server declares stateless in createApp(), since no handler needs a session; setting this variable overrides that.stateless
MCP_AUTH_MODEAuth mode: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (RFC 5424).info
LOGS_DIRDirectory for log files (Node.js only). /logs
OTEL_ENABLEDEnable OpenTelemetry instrumentation.false

See .env.example for the full list of optional overrides.

Running the server

Local development
  • Build and run:
  bun run rebuild

bun run start:stdio

or

bun run start:http

  • Run checks and tests:
  bun run devcheck   # Lint, format, typecheck, security, packaging

bun run test # Vitest suites: unit, smoke, integration, fuzz bun run lint:mcp # Validate MCP definitions against spec

Docker
docker build -t shift-mcp-server .

docker run --rm -p 127.0.0.1:3010:3010 -e SHIFT_WORKSPACE=my-project -v shift-state:/var/lib/shift-mcp-server shift-mcp-server

The Dockerfile defaults to HTTP transport, stateless session mode, logs at /var/log/shift-mcp-server, and roster state at /var/lib/shift-mcp-server. Reuse the same writable volume and workspace for every coordinating container. A host bind mount must be writable by the image's bun user. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.

Project structure

DirectoryPurpose

| src/index.ts | createApp() entry point — definitions, storage setup/teardown, serv

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx