Session Collab MCP
Session Collab MCP
与提供商无关的 MCP 服务器,用于多代理/多会话工作:声明文件、短期工作记忆、保护路径以及检测冲突。
通过 stdio 或 HTTP JSON-RPC 与 Claude Code、Codex、Grok、Cursor 及其他 MCP 客户端配合使用。可选的 Claude Code 打包:plugin/。
为什么
仅限同一台机器 — 这不是远程 Git 锁。同一操作系统用户下的并行编码会话会互相覆盖,因为没有共享的“工作意图”。此服务器是一个本地 WIP 注册表:声明文件、检查冲突、持久化简短笔记、保护关键路径,然后释放。
Related MCP server: samskriti-project
安装
stdio(任何 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 工具一一对应)。本地主机无需令牌;非本地绑定需要 SESSION_COLLAB_HTTP_TOKEN 和 SESSION_COLLAB_ALLOWED_HOSTS(或 --allowed-host)。主机/来源会被验证;/health 使用相同的检查(设置令牌时需要 bearer)。
Claude Code 插件
/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。
工作流程
仅用于非平凡/多会话工作。
collab_session_start— 相同的name+项目 复用;restore_context默认 falsecollab_claimaction=create— 批量文件;原子声明或阻止;路径规范化为project_root。check是仅探测的可选操作collab_memory_save— 仅限简短笔记(≤800 字符,超出则拒绝;不是保险库)collab_claimaction=release然后collab_session_end
list / status / 声明的正常路径在 detail=true 之外保持紧凑。
模式( | 行为 |
| 阻止重叠声明 |
| 声明安全的文件/符号;将阻止的排队 |
| 仅与 |
共享文件时优先使用符号级声明。重叠返回 waiting_for_coordination 或 partial_claim_created。
工具
工具 | 用途 |
| 注册、结束、列出、心跳 |
| 冲突模式和自动释放选项 |
| 快照(除非 |
|
|
| 工作记忆( |
|
|
v2.0 破坏性变更:MIGRATION.md。完整历史:CHANGELOG.md。安全报告:SECURITY.md。
数据
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 插件 PreToolUse 会拒绝写入/编辑被其他会话声明的文件(设置 SESSION_COLLAB_HOOK_DISABLE=1 可跳过)。
开发
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 工具列表中)。
相关
许可证
MIT © leaf76
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 Servers
- AlicenseNot gradedqualityDmaintenanceA local-first MCP server for coordinating parallel AI coding sessions with tools like Claude Code and Codex in a single repository.2MIT
- AlicenseAqualityBmaintenanceA 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 gradedqualityCmaintenanceA 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
- AlicenseAqualityDmaintenanceA filesystem-based MCP server for AI coding agents to coordinate work across git worktrees by claiming files, checking for conflicts, and logging progress without affecting the repository's git history.5MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
MCP Server for JFrog, providing tools for development and artifact management.
An MCP server for deep research or task groups
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/leaf76/session-collab-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server