Shared Workspace MCP

Shared Workspace MCP

Local-first memory, pipelines, learning, feedback, and safe code tools for AI coding agents.

Category
访问服务器

README

<div align="center">

<img src="assets/banner.svg" alt="Cairn" width="100%" />

<p> <a href="https://github.com/WhileTrueBlackObelizk/shared-workspace-mcp/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/WhileTrueBlackObelizk/shared-workspace-mcp/actions/workflows/ci.yml/badge.svg"></a> <img alt="Python" src="https://img.shields.io/badge/python-3.12-3776AB?logo=python&logoColor=white"> <img alt="Protocol" src="https://img.shields.io/badge/protocol-MCP-5eead4"> <img alt="Dependencies" src="https://img.shields.io/badge/deps-stdlib--first-34d399"> <img alt="Cost" src="https://img.shields.io/badge/cost-%240-success"> <a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-MIT-2563eb"></a> </p>

<b>Shared memory & verified handover for AI agents.</b><br/> <sub>Codex and Cowork pass work back and forth without losing the thread — and can't fake "done".</sub>

<sub><i>“Cairn” is the unofficial name for the <b>Shared Workspace MCP</b> (<code>shared-workspace-mcp</code>).</i></sub>

</div>


🔄 The gated pipeline

<div align="center"><img src="assets/pipeline.svg" alt="intake → plan → implement → test → review → handover" width="100%" /></div>

<div align="center"><sub>A step is <b>done</b> only when its evidence is <b>fresh, independent, and pre-registered</b> — not because the agent says so.</sub></div>

🏆 Earn the level

<div align="center"><img src="assets/levels.svg" alt="evidence → score → level" width="100%" /></div>


✨ What it does

🧠 Memory shared KV · activity · file events survives restarts & handovers
🤝 Handover one-call prepare / takeover Codex ⇄ Cowork, nothing dropped
🚦 Gates hard vs advisory, evidence-graded blocks self-declared "done"
🕵️ Freshness chain-of-custody on evidence a stale check is not proof
👀 Four-eyes source-tracked checks warns on self-certification
🛎️ Andon blocked gate → logged lesson failures compound into learning
🏅 Self-score 0–10, evidence-based quality trend, not vanity
🔒 Safe localhost · home-scoped · preset checks no arbitrary shell

<div align="center"><sub>🛬 aviation gates · 🔬 chain-of-custody · 🏭 Toyota andon · 🧪 pre-registration — borrowed where they beat the default.</sub></div>


<details> <summary><b>⚡ Setup</b> — one command</summary>

<br/>

Windows (PowerShell)

powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/WhileTrueBlackObelizk/shared-workspace-mcp/main/install.ps1 | iex"

Linux (systemd user service)

curl -fsSL https://raw.githubusercontent.com/WhileTrueBlackObelizk/shared-workspace-mcp/main/install.sh | bash

Then point your MCP client at:

http://localhost:8765/sse

Claude Code can also spawn it over stdio:

claude mcp add --scope user shared-workspace -- python /path/to/shared-mcp/server.py --stdio

On Windows the installer also wires up the Claude Desktop / Cowork config and a local extension. Restart Claude, then ask Cowork for workspace_dump or gate_check. Liveness: GET http://localhost:8765/health.

</details>

<details> <summary><b>🚀 Usage</b> — the whole trick</summary>

<br/>

Compact state outside the prompt, pulled only when it matters:

workspace_dump
get_recent_activity n=10
learning_search query="similar failure"
gate_check step=test root="C:\path\to\repo" source=cowork
gate_advance pipeline_id=my-task root="C:\path\to\repo" source=cowork
drift_report pipeline_id=my-task
goal_complete goal_id=my-task        # self-scores + levels up

Default pipeline: intake → plan → implement → test → review → handover. Advance with gate_advance (not manual edits); a blocked gate writes a lesson.

</details>

<details> <summary><b>🧰 Tools</b></summary>

<br/>

Area Tools
Memory workspace_write · workspace_read · workspace_dump · workspace_list · workspace_delete
Activity / files log_activity · get_recent_activity · get_file_events
Handover handover_prepare · handover_takeover
Code workspace repo_status · git_diff · search_code · read_file · run_check (ruff/mypy too)
Gates gate_policy · gate_check · gate_status · gate_advance · verify_file_refs · drift_report
Goals / pipelines goal_start · goal_update · goal_status · goal_complete · pipeline_create · pipeline_next · pipeline_status · pipeline_update_step · pipeline_finish
Learning learning_log_error · learning_log_lesson · learning_search · learning_recent
Tokens / feedback token_log · token_summary · estimate_tokens · context_snapshot · feedback_maybe · feedback_log · feedback_summary

</details>

<details> <summary><b>🔒 Security</b> & <b>🏗️ Architecture</b></summary>

<br/>

  • Binds 127.0.0.1 only · file paths must stay under your home · run_check runs fixed presets, never arbitrary shell.
  • Storage: UTF-8 JSON under ~/.claude/shared-workspace/. No hosted DB, no paid service.
  • Deep dives: ARCHITECTURE.md · handover-protocol.md · SECURITY.md · agent rules in AGENTS.md.

</details>

<div align="center"><sub>MIT · built stone by stone 🪨</sub></div>

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选