Compass MCP Server
Compass MCP Server gives a coding agent a local, persistent project-memory ledger — it reads goals/next steps, records decisions and pitfalls, files evidence, and gates "done" claims.
project_context— pull the bound project's compact context (core goal, current next step, priority list, pending ideas); optionallyrefreshthe cache.record_note— capture a goal, decision, unverified assumption, or task/pitfall in one call, with a 15–20 char mindmap title and an optional idempotencyclient_nonce.query_state— ask a natural question or expand a spilled evidence item by ID (e.g.ev-xxx) against evidence-backed project state.propose_fact— submit structured candidate facts with exact source quotes, which stayproposeduntil a human confirms them.append_evidence— append public agent evidence events (session minutes, verifiable command results) to the ledger.verify_completion— run a deterministic pre-completion check against confirmed baselines, open pitfalls, changed files, and test evidence IDs before the agent claims it's done.Multi-session/multi-project scoping — every tool accepts optional
session_id(isolate parallel sessions),project_id, andproject_path(route to that workspace's.project-memory/).Local-first operation — all memory writes to the project's own
.project-memory/with zero external dependencies and no API key required for core function.
Supports exporting project handoff briefs and context snapshots as GitHub Issues or PR descriptions, enabling project state to be shared through GitHub workflows.
Click on "Deploy 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., "@Compass MCP Server what's the agreed project baseline and which evidence gaps are pending?"
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.
⚡ 30 秒先看效果(零配置,不改你的任何代码)
装好 Python 3.10+ 即可用内置示范项目(「个人播客笔记与剪藏小工具」)直接打开可视化看板体验:
# 方式 A:免预装直接体验(推荐,需要 uv)
uvx --from git+https://github.com/get-compass/compass compass --demo
# 方式 B:克隆源码运行
git clone https://github.com/get-compass/compass.git
cd compass && pip install -e .
compass --demo运行后会自动打开浏览器看板,你可以直接点选思维导图节点、点击 「✓ 标记已完成」 或 「✓ 确认并发给 AI」、用全文搜索框直接提问「下一步做什么」。
Related MCP server: DIP
💬 懒人一键配置:复制下面这段话发给你的 AI 助手
如果不想记命令,直接在 Antigravity / Cursor / Claude Code / Codex CLI 中对你的 AI 助手发送下面这段话,它会帮你完成全部配置并自检:
请帮我把当前项目接入 Compass 看板:
先检查本机是否已有
compass-mcp;如果没有,用pip install -e .或uvx配好零依赖环境;在当前项目根目录运行
compass-setup --project-path . --init-rules(写入规则并自动把.project-memory/加进.gitignore);执行
compass-setup --client <填你用的工具: antigravity/cursor/claude/codex/hermes> --project-path . --zero-config --write;运行
compass-setup --doctor --project-path .确认检查全部通过后告诉我。
🤔 Compass 解决什么问题?
和 Coding Agent 聊久了做项目,最容易遇到四件事:
你经常遇到的抓狂时刻 | 以前 | 用了 Compass v1.7.1 之后 |
随口提个备选思路,AI 当圣旨直接改代码 | 对话和代码混在一起,AI 抢跑实现未决方案 | 新想法自动放进「待确认想法」,你点确认或勾选「同时标记为已确认」才算正式生效 |
聊到第 20 轮忘了主目标和当前重点 | 目标被几十轮日志和报错淹没,新开窗口就失忆 | 顶部永久固定 核心目标 + 当前下一步,做完还能点 「✓ 标记已完成」 |
之前否决过的方案过两天 AI 又提一遍 | 找不到当时为什么排除,白白返工踩坑 | 明确排除的路线和未核实前提保留原话依据,AI 偏航或重提旧坑会主动提醒 |
跨项目 / 多个窗口开着容易记串 | 全局配置不知道写去了哪 | 每个项目独立存进自己的 |
🚀 3 分钟手动接入你自己的项目
支持 Python >= 3.10,核心包零第三方依赖(dependencies = [])。
1. 安装(二选一)
git clone https://github.com/get-compass/compass.git
cd compass
pip install -e .2. 初始化规则 + 写入宿主零配置(必加 --zero-config)
进入你要开发的项目根目录:
# 1. 写入项目协作守则,并自动把 .project-memory/ 加入 .gitignore 防误提交
compass-setup --project-path . --init-rules
# 2. 按你使用的工具写入 MCP 零配置(任选一条)
compass-setup --client antigravity --project-path . --zero-config --write
compass-setup --client cursor --project-path . --zero-config --write
compass-setup --client claude --project-path . --zero-config --write
compass-setup --client codex --project-path . --zero-config --write
compass-setup --client hermes --project-path . --zero-config --write
# 3. 跑一次环境自检
compass-setup --doctor --project-path .3. 日常怎么用最顺手?
在 Antigravity 里:上面
--write已顺带装好原生右侧栏插件;聊天时在需要的时机调用open_compass或点击对话里的[打开 Compass 实时掌控台](sidecar://compass/compass_board/)胶囊,即可在右侧并排查看,切换左侧工程时右侧会自动同步。在 Cursor / Codex / Claude / 独立浏览器里:随时在项目目录执行一条命令把看板开在屏幕右半边(
540px–720px窄分屏适配):
compass --open . --extract-docs --with-code-index --web --port 8787{
"mcpServers": {
"project-compass": {
"type": "stdio",
"command": "compass-mcp",
"args": ["--project-path", "."]
}
}
}(若未全局安装,可把 "command" 改为 "uvx","args" 为 ["--from", "git+https://github.com/get-compass/compass", "compass-mcp", "--project-path", "."]。)
内置 8 个 MCP 工具:
project_context:开局或长对话压缩后对齐核心目标、当前下一步、优先执行列表与待确认想法。record_note:随时用一句话记下新想法、前提假设、待办或目标(支持15~20字短标题)。verify_completion:Agent 声称完工前核查改动记录、测试退出码与未清待办,并在提醒中附上可直达看板入口。append_evidence:追加公开会话纪要与可核对的命令执行结果。query_state:按关键词或自然问题检索项目事实、分歧与证据原文。propose_fact:提交带原文引用的结构化提案(未经人确认保持proposed)。open_compass:按宿主环境自动识别侧栏 / IDE 内置浏览器 / 本机浏览器打开主看板。compass_app_action:供内嵌 MCP App 面板执行确认、忽略、撤回、记一条与发送给 AI。
📸 界面与核心功能一览
🧠 可选增强:接入你自己的 AI 模型(默认纯本地也能用)
Compass 不配置任何 API Key 也能完成 100% 核心功能(本地检索与规则提醒)。如需启用更聪明的 AI 归纳与提醒,在终端或 .env 中设置任意一路环境变量即可:
export MINIMAX_API_KEY="your-minimax-key" # MiniMax-M3.1-Flash / MiniMax-M2.7
export DEEPSEEK_API_KEY="your-deepseek-key" # DeepSeek-Chat
export OLLAMA_HOST="http://127.0.0.1:11434" # 本机 Ollama 模型详细复盘、延迟采样与真实失效归因见:v1.4 评测与定版报告。
对照路线 | 综合得分 | 关键事实抽取 (L2 F1 / Recall) | 回答准确率 (14 题) | 证据引用有效率 | 适用定位与说明 |
纯本地检索 ( | 39.8 / 100 | F1 | 35.71% (5/14) | 100% | 零外网依赖、零成本,完全可保底运行 |
| 41.3 / 100 | F1 | 42.86% (6/14) | 100% (14/14) | 单问延迟 |
| 41.1 / 100 | F1 | 50.00% (7/14) | 100% | 适合复杂深问分析 |
| 41.8 / 100 | Recall | 28.57% (4/14) | 92.86% | 事实覆盖高,单问 |
🧪 运行全套自检与测试
# Python 单元测试(PowerShell)
$env:PYTHONPATH = 'src'; python -m unittest discover -s tests -q
# 前端 JS 契约测试(需本机安装 Node.js)
node --check src/project_compass/web/app.js
for f in tests/*_test.cjs; do node "$f" src/project_compass/web/app.js; done📄 开源许可与致谢
本项目基于 Apache License 2.0 开源发布。第三方组件与适配说明见 THIRD_PARTY_NOTICES.md 与 licenses/learn-ai-basics-MIT.txt。
Available Tools
6 toolsappend_evidenceC
Append one public Agent evidence event.
Inputs: event (required), session_id, project_path.
project_contextC
Read the bound ProjectCompass project context (compact inline & spill cached view).
Inputs: refresh, session_id, project_path.
propose_factC
Submit a candidate fact with an exact source quote.
Inputs: proposals (required), project_id, session_id, project_path.
query_stateC
Read evidence-backed project state or expand spilled evidence.
Inputs: question (required), project_id, session_id, evidence_id, +1 more.
record_noteC
Record a goal, pending decision, unverified assumption, or todo pitfall in 1 step with a concise 15-20 char human title.
Inputs: text (required), kind, title, project_id, +3 more.
verify_completionA
Run pre-completion deterministic check against confirmed baselines, open pitfalls, and verification evidence before claiming done.
Inputs: summary (required), project_id, session_id, project_path, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have distinct roles: project_context and query_state are reads of different scopes (bound context vs evidence-backed state), and append_evidence is clearly an event write. The main soft overlap is between record_note and propose_fact/spill expansion, since both capture project knowledge with differing rigor, but descriptions (exact source quote + candidate status vs 1-step lightweight note) give agents enough to choose.
Five of six tools follow a clean verb_noun snake_case pattern (append_evidence, query_state, propose_fact, record_note, verify_completion). project_context breaks the pattern as a bare noun phrase, which is a minor deviation but still readable and unambiguous.
Six tools is well within the well-scoped range and each maps to a distinct step in the workflow: read context, read state, append evidence, propose fact, record note, verify completion. No filler tools and nothing obviously bloating the surface.
The read/write/verify lifecycle is largely covered, but propose_fact implies a downstream confirmation or promotion step that no tool exposes, and there is no way to update, retract, or resolve notes/evidence once recorded. These are notable gaps that could leave agents stuck mid-lifecycle.
Maintenance
Related MCP Connectors
Shared project docs, task planning and GitHub evidence for people and their AI agents.
Project memory, documentation and controlled secret access for AI coding agents.
Project memory for coding agents: requirements, decisions, code graph and delivery telemetry.
Shared, scoped, reviewable team memory for AI coding agents.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables MCP agents to maintain durable, evidence-aware project knowledge, retrieve precise excerpts on demand, and track decisions, conflicts, and revisions across sessions.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to maintain local-first project memory, coordinate task ownership across Git worktrees, and verify completion against project-defined checks with durable evidence stored in the repository.1Apache 2.0
- FlicenseNot gradedqualityAmaintenanceProvides AI coding agents with a local-first persistent memory layer they can read and write during sessions, storing decisions, preferences, error patterns, and research per project or globally. Enables semantic and keyword search, formatted context recall, and cross-project guideline surfacing without API keys or cloud storage.-
- AlicenseBqualityBmaintenanceEnables AI coding agents to share persistent project memory across sessions and worktrees through content-hash file summaries, symbol lookup, bounded reads, notes, handoffs, claims, and agent messaging.10848 PyPIMIT