Session Collab MCP
Session Collab MCP
プロバイダー非依存のMCPサーバーで、マルチエージェント/マルチセッション作業をサポートします: ファイルのクレーム、短期作業メモリ、パスの保護、競合の検出。
stdioまたはHTTP JSON-RPCで、Claude Code、Codex、Cursor、その他のMCPクライアントと連携します。オプションのClaude Codeパッケージング: plugin/。
Why
同一マシンのみ — これはリモートGitロックではありません。1つのOSユーザーで複数のコーディングセッションを並行して行うと、共有の「作業意図」がないため、互いに上書きしてしまいます。このサーバーはローカルWIPレジストリです: ファイルを宣言し、競合をチェックし、短いメモを保持し、重要なパスを保護し、そして解放します。
Related MCP server: agent-coord
Install
任意のMCPクライアント
{
"mcpServers": {
"session-collab": {
"command": "npx",
"args": ["-y", "session-collab-mcp@latest"]
}
}
}HTTP + CLI
session-collab-http --host 127.0.0.1 --port 8765
session-collab doctor --base-url http://127.0.0.1:8765MCP-over-HTTP: POST /mcp。便利なREST: /v1/*(MCPツールと1:1対応)。localhostではトークン不要。非ローカルバインドではSESSION_COLLAB_HTTP_TOKENおよびSESSION_COLLAB_ALLOWED_HOSTS(または--allowed-hosts)が必要です。Origin検証を実施。/healthエンドポイントはトークン設定時に同じチェックを行います。
Claude Code plugin
/plugin marketplace add leaf76/session-collab-mcp
/plugin install session-collab@session-collab-pluginsグローバル: npm install -g session-collab-mcp
ローカルリポジトリ: npm run install:local を実行し、MCP設定を dist/cli.js にポイントします。
Workflow
並行作業が複雑な場合にのみ使用してください。
collab_session_start— 同じname+プロジェクトは再利用されます。restore_contextはデフォルトfalsecollab_claimaction=create— ファイルを一括でクレーム。原子的なクレームまたはブロック。パスはproject_rootに正規化されます。checkはオプションのプローブのみcollab_memory_save— 短いメモのみ(それ以上は拒否され、長すぎる場合は保存されません。ボールトではありません)collab_claimaction=release、その後collab_session_end
list / status / クレームの通常パスはdetail=trueでない限り簡潔です。
モード ( | 動作 |
| 重複クレームをブロック |
| 安全なファイル/シンボルをクレームし、ブロックされたものはキューに |
| 重複は |
ファイル共有時はシンボルレベルでのクレームを推奨します。重複時はwaiting_for_coordinationまたはpartial_claim_createdを返します。
Tools
ツール | 目的 |
| セッションの登録、終了、一覧表示、ハートビート更新 |
| 競合モードと自動リリースオプションの設定 |
| スナップショット ( |
|
|
| 作業メモリ ( |
|
|
v2.0 の破壊的変更: MIGRATION.md。完全な履歴: CHANGELOG.md。セキュリティ報告: SECURITY.md。
Data
SQLiteはマシンごと(WAL, オフライン)です。パスの優先順位:
SESSION_COLLAB_DBが設定されている場合既存の
~/.session-collab/collab.db既存のレガシー
~/.claude/session-collab/collab.dbそれ以外は
~/.session-collab/collab.dbを作成
collab_session_startはscope: "local-machine"とdb_pathを返します。Claude Code pluginのPreToolUseは、別セッションが書き込むファイルに対してWrite/Editを拒否します(SESSION_COLLAB_HOOK_DISABLE=1でスキップ)。
Development
Node.js 18+。npm install && npm run build
npm run typecheck
npm run lint
npm run test
npm run test:http # needs a local listen port
npm run test:releaseオプションのレガシーサポート: SESSION_COLLAB_INCLUDE_LEGACY=true npm run build (v2ツールリストには含まれません)。
Related
License
MIT © leaf76
This server cannot be deployed
Maintenance
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
MCP Server for JFrog, providing tools for development and artifact management.
Related MCP Servers
- AlicenseAqualityCmaintenanceA local MCP server that enables multiple AI coding tools to share structured project state (decisions, tasks, bugs) so they coordinate without re-explaining.5MIT
- AlicenseNot gradedqualityDmaintenanceA zero-dependency MCP server that allows multiple coding agents to coordinate work on the same repository using file locks, task claims, and status messages.1MIT
- AlicenseNot gradedqualityCmaintenanceA storage-backed MCP server for sharing durable project context between trusted coding agents, with project discovery, optimistic concurrency, and timestamped handoffs.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceAn MCP server that provides coordination tools (claim, release, broadcast, state) for concurrent coding agents working on a CRDT-merged shared filesystem, ensuring no edits are lost and enabling collaborative task completion.MIT