Lightweight coordination layer for multiple AI agents working on the same codebase simultaneously.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Lightweight coordination layer for multiple AI agents working on the same codebase simultaneously.
Two tools bracketing a working session β one to announce it, one to end it:
| Tool Name | Description |
|---|---|
shift_check_in | Register or update a worker session. Returns a worker ID, the coordination protocol, and the active peers. |
shift_check_out | End a working session and remove it from the active worker list. |
shift_check_inCalled at the start of every working session, and again whenever the scope changes.
gist of the current work plus optional files the agent expects to modifyworkerId to update the session β patch semantics, so omitted fields and the original check-in timestamp are preservedworkerId fails with reason: "unknown_worker" and embeds the active-workers table so the caller can self-identify or start freshshift_check_outEnds a working session.
workerId and an optional one-sentence summary| Type | Name | Description |
|---|---|---|
| Resource | shift://status | All currently active workers with their gists, declared files, and check-in timestamps. |
The same roster is returned inline by shift_check_in, so tool-only clients see it without reading the resource. Subscribers to shift://status receive notifications/resources/updated on every check-in, session update, and check-out.
Built on @cyanheads/mcp-ts-core:
Coordination-specific:
Agent-friendly output:
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 hintAdd the following to your MCP client configuration file:
Or with npx (no Bun required):
Or with Docker:
Every agent sharing a codebase must reach the same server process for the roster to be shared. Over stdio each client spawns its own process, so point concurrent agents at one Streamable HTTP instance instead:
No server-specific environment variables. Framework defaults worth knowing:
| Variable | Description | Default |
|---|---|---|
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | Port for the HTTP server. | 3010 |
MCP_HTTP_HOST | Hostname for the HTTP server. | 127.0.0.1 |
MCP_SESSION_MODE | HTTP session handling: auto, stateful, or stateless. auto resolves to stateful; this server runs stateless, since no handler needs a session. | auto |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
LOGS_DIR | Directory for log files (Node.js only). | <project-root>/logs |
OTEL_ENABLED | Enable OpenTelemetry instrumentation. | false |
See .env.example for the full list of optional overrides.
Build and run:
Run checks and tests:
The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/shift-mcp-server. OpenTelemetry peer dependencies are installed by default β build with --build-arg OTEL_ENABLED=false to omit them.
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point β registers the tools and the resource. |
src/mcp-server/tools | Tool definitions (check-in.tool.ts, check-out.tool.ts). |
src/mcp-server/resources | Resource definitions (status.resource.ts). |
src/services/worker-store | In-memory worker session store and table formatting. |
tests/ | Unit, smoke, integration, and fuzz suites mirroring src/. |
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for request-scoped logging, ctx.state for tenant-scoped storagesrc/index.tsformat() must render every field in the output schema β both client surfaces carry the same dataApache-2.0 β see LICENSE for details.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/shift-mcp-server)<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>