Lightweight coordination layer for multiple AI agents working on the same codebase simultaneously.
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/cyanheads/shift-mcp-server{
"mcpServers": {
"shift": {
"command": "node",
"args": ["/path/to/shift-mcp-server/dist/index.js"]
}
}
}MCP Servers overview
<div align="center">
<h1>@cyanheads/shift-mcp-server</h1>
<p><b>Lightweight coordination layer for multiple AI agents working on the same codebase simultaneously.</b>
<div>2 Tools • 1 Resource</div>
</p>
</div>
<div align="center">
[](./CHANGELOG.md) [](./LICENSE) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/shift-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
</div>
<div align="center">
[](https://github.com/cyanheads/shift-mcp-server/releases/latest/download/shift-mcp-server.mcpb) [](https://cursor.com/en/install-mcp?name=shift-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvc2hpZnQtbWNwLXNlcnZlciJdfQ==) [](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22shift-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fshift-mcp-server%22%5D%7D)
[](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
</div>
---
## Tools
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_in`
Called at the start of every working session, and again whenever the scope changes.
- Takes a `gist` of the current work plus optional `files` the agent expects to modify
- Returns a 6-character worker ID, the coordination protocol, and the full active-workers table
- Pass an existing `workerId` to update the session — patch semantics, so omitted fields and the original check-in timestamp are preserved
- An unknown `workerId` fails with `reason: "unknown_worker"` and embeds the active-workers table so the caller can self-identify or start fresh
---
### `shift_check_out`
Ends a working session.
- Takes a `workerId` and an optional one-sentence `summary`
- Idempotent — an unknown or already-checked-out ID succeeds silently
## Resources
| 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.
## Features
Built on [`@cyanheads/mcp-ts-core`](https://www.npmjs.com/package/@cyanheads/mcp-ts-core):
- Declarative tool and resource definitions — one file per primitive, framework handles registration and validation
- Unified error handling — handlers throw, framework catches, classifies, and formats
- Structured logging with request-scoped context and optional OpenTelemetry tracing
- STDIO and Streamable HTTP transports, serving MCP protocol revisions 2025 and 2026-07-28
Coordination-specific:
- In-memory worker session store — no database, no filesystem writes, cleared on restart
- 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:
```json
{
"mcpServers": {
"shift-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/shift-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
```
Or with npx (no Bun required):
```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"
}
}
}
}
```
Or with Docker:
```json
{
"mcpServers": {
"shift-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"ghcr.io/cyanheads/shift-mcp-server:latest"
]
}
}
}
```
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:
```sh
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp
```
### Prerequisites
- [Bun v1.3.0](https://bun.sh/) or higher (or Node.js v24+).
- No API keys, accounts, or external services.
### Installation
1. **Clone the repository:**
```sh
git clone https://github.com/cyanheads/shift-mcp-server.git
```
2. **Navigate into the directory:**
```sh
cd shift-mcp-server
```
3. **Install dependencies:**
```sh
bun install
```
4. **Configure environment:**
```sh
cp .env.example .env
# edit .env if you need to override a framework default
```
## Configuration
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](https://github.com/cyanheads/mcp-ts-core/tree/main/docs/telemetry). | `false` |
See [`.env.example`](./.env.example) for the full list of optional overrides.
## Running the server
### Local development
- **Build and run:**
```sh
bun run rebuild
bun run start:stdio
# or
bun run start:http
```
- **Run checks and tests:**
```sh
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
```sh
docker build -t shift-mcp-server .
docker run --rm -p 3010:3010 shift-mcp-server
```
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.
## Project structure
| 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/`. |
## Development guide
See [`CLAUDE.md`/`AGENTS.md`](./CLAUDE.md) for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no `try/catch` in tool logic
- Use `ctx.log` for request-scoped logging, `ctx.state` for tenant-scoped storage
- Register new tools and resources in `src/index.ts`
- `format()` must render every field in the output schema — both client surfaces carry the same data
## License
Apache-2.0 — see [LICENSE](LICENSE) for details.
What people ask about shift-mcp-server
What is cyanheads/shift-mcp-server?
+
cyanheads/shift-mcp-server is mcp servers for the Claude AI ecosystem. Lightweight coordination layer for multiple AI agents working on the same codebase simultaneously. It has 1 GitHub stars and its last recorded update is dated 2026-08-22.
How do I install shift-mcp-server?
+
You can install shift-mcp-server by cloning the repository (https://github.com/cyanheads/shift-mcp-server) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is cyanheads/shift-mcp-server safe to use?
+
Our security agent has analyzed cyanheads/shift-mcp-server and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains cyanheads/shift-mcp-server?
+
cyanheads/shift-mcp-server is maintained by cyanheads. The last recorded GitHub activity is dated 2026-08-22, with 3 open issues.
Are there alternatives to shift-mcp-server?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy shift-mcp-server to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/cyanheads-shift-mcp-server)<a href="https://claudewave.com/repo/cyanheads-shift-mcp-server"><img src="https://claudewave.com/api/badge/cyanheads-shift-mcp-server" alt="Featured on ClaudeWave: cyanheads/shift-mcp-server" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
The fastest path to AI-powered full stack observability, even for lean teams.
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!