Shift MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Shift MCP Servercheck me in, working on index.js"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Tools
Two tools bracketing a working session — one to announce it, one to end it:
Tool Name | Description |
| Register or update a worker session. Returns a worker ID, the coordination protocol, and the active peers. |
| 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
gistof the current work plus optionalfilesthe agent expects to modifyReturns a 6-character worker ID, the coordination protocol, and the full active-workers table
Pass an existing
workerIdto update the session — patch semantics, so omitted fields and the original check-in timestamp are preservedAn unknown
workerIdfails withreason: "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
workerIdand an optional one-sentencesummaryIdempotent — an unknown or already-checked-out ID succeeds silently
Related MCP server: Geond Agent Protocol
Resources
Type | Name | Description |
Resource |
| 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:
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 —
structuredContentfrom the output schema, markdown fromformat()shift_check_indeclares a typed error contract, so an unknown worker ID arrives withdata.reasonand a recovery hintFailure 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"
}
}
}
}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"
}
}
}
}Or with Docker:
{
"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:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcpPrerequisites
Bun v1.3.0 or higher (or Node.js v24+).
No API keys, accounts, or external services.
Installation
Clone the repository:
git clone https://github.com/cyanheads/shift-mcp-server.gitNavigate into the directory:
cd shift-mcp-serverInstall dependencies:
bun installConfigure environment:
cp .env.example .env
# edit .env if you need to override a framework defaultConfiguration
No server-specific environment variables. Framework defaults worth knowing:
Variable | Description | Default |
| Transport: |
|
| Port for the HTTP server. |
|
| Hostname for the HTTP server. |
|
| HTTP session handling: |
|
| Auth mode: |
|
| Log level (RFC 5424). |
|
| Directory for log files (Node.js only). |
|
| Enable OpenTelemetry instrumentation. |
|
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:httpRun 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 3010:3010 shift-mcp-serverThe 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 |
|
|
| Tool definitions ( |
| Resource definitions ( |
| In-memory worker session store and table formatting. |
| Unit, smoke, integration, and fuzz suites mirroring |
Development guide
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storageRegister new tools and resources in
src/index.tsformat()must render every field in the output schema — both client surfaces carry the same data
License
Apache-2.0 — see LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Shared control plane for AI coding agents — tasks, memory, decisions, file locks. 12 tools.
- ParleyOAuthdev.weldra
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
The team layer for AI coding agents: shared contracts, collision alerts, E2EE sessions.
The AI orchestration agent for modern software teams.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceA coordination layer for coding agents that provides memorable identities, inbox/outbox messaging, searchable message history, and file lease management to prevent conflicts. Uses Git for human-auditable artifacts and SQLite for fast queries, enabling multiple agents to collaborate across projects without stepping on each other.2,128MIT
- AlicenseAqualityBmaintenanceLocal-first shared memory and coordination layer for AI coding agents, with repository evidence, reservations, handoffs, code graph context, and dashboard review backed by PostgreSQL/pgvector.303Apache 2.0
- AlicenseNot gradedqualityDmaintenanceCoordination layer for AI coding agents working on the same codebase. Adds file locks, shared project memory, and cross-machine file sync so Claude Code, Cursor, Windsurf, and other MCP agents stop overwriting each other.50Apache 2.0
- AlicenseNot gradedqualityAmaintenanceCoordinates parallel AI coding agents by providing task ownership, scoped file locks, handoffs, and verification workflows.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyanheads/shift-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server