vibecompass-mcp
Connects MCP-capable coding tools to a VibeCompass project so sessions can read project context and write back decisions, conflicts, statuses, and handoff notes.
Orient at session start —
get_project_contextreturns a whole-project summary: domains, features, statuses, recent decisions, open conflicts.Deep-dive a feature —
get_feature_context(feature_slug, component_slug?)gives description, components, files, repo ownership, decisions, and conflicts before you modify its code.Check settled decisions —
get_decision_log(limit?, feature_slug?)looks up past architectural choices (default 20, max 100) to avoid re-debating them.Check conflicts —
get_conflictssurfaces open contradictions between code changes and prior decisions.Find file ownership —
get_file_context(filepath)tells you which feature/component owns a file (userepo:pathin multi-repo projects).Read hosted proposals —
list_pending_proposals(status?)lists proposal summaries (open, stale, dismissed, applied); read-only, empty in local mode.Log decisions —
log_decision(feature_slug, title, description)records a decision with rationale and alternatives for future sessions.Track progress —
update_feature_status(feature_slug, status, notes?)moves a feature through draft/in_progress/complete/blocked/deprecated.Flag contradictions —
flag_conflict(feature_slug, description)raises duplicated logic or pattern clashes for the developer to resolve in the dashboard.Hand off a session —
add_session_summary(summary, features_touched)records what was done, what remains, and blockers for the next session.Mode limits — reads work in hosted or local mode; all write tools require
VIBECOMPASS_API_KEYand are disabled in pure local mode; hybrid mode reads from the local root but writes to the hosted project.Note: the README's opt-in
get_brieftool is not exposed in this schema.
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., "@vibecompass-mcp log decision: use Redis for caching"
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.
vibecompass-mcp
MCP stdio server for VibeCompass.
It connects Claude Code, Codex, Cursor, and similar MCP-capable tools to a VibeCompass project so sessions can read project context and write back decisions, conflicts, and session handoff notes.
Requirements
Node.js 20+
One of:
VIBECOMPASS_API_KEYfor hosted modeVIBECOMPASS_ROOTfor local read mode
Local mode uses the bundled
@vibecompass/vibecompasscore dependency for file-backed reads
Related MCP server: kb
Environment
Hosted mode:
VIBECOMPASS_API_KEYVIBECOMPASS_API_URLDefaults tohttps://vibecompass.dev
Local mode:
VIBECOMPASS_ROOTAbsolute path to the canonical local project-memory root (project.yaml,architecture/,decisions/,sessions/,state/manifest.json)
Hybrid mode:
If both
VIBECOMPASS_ROOTandVIBECOMPASS_API_KEYare set, read tools resolve from the local root, while write tools and hosted conflict reads remain enabled through the API client
Install
npm
Run the public scoped package:
npx -y @vibecompass/vibecompass-mcpDevelopment
npm test uses Node's t.mock.timers for timeout coverage. Node 20 prints an
experimental MockTimers warning; the warning is expected and does not indicate a
test failure.
Known upstream client issues: Codex 0.33 issue #3426 and Claude Code 2.0.76's
internal effortLevel failure. See
https://github.com/jack-whimvy/vibecompass-docs/blob/main/architecture/mcp-server/context-delivery/resilience.md
for current dogfood status.
Example config
Hosted mode
Claude Code (claude mcp add)
claude mcp add --transport stdio vibecompass \
--env VIBECOMPASS_API_KEY='your-api-key' \
--env VIBECOMPASS_API_URL='https://vibecompass.dev' \
-- npx -y @vibecompass/vibecompass-mcpClaude Code (claude mcp add-json)
claude mcp add-json vibecompass '{"type":"stdio","command":"npx","args":["-y","@vibecompass/vibecompass-mcp"],"env":{"VIBECOMPASS_API_KEY":"your-api-key","VIBECOMPASS_API_URL":"https://vibecompass.dev"}}'Claude Code project config (.mcp.json)
{
"mcpServers": {
"vibecompass": {
"command": "npx",
"args": ["-y", "@vibecompass/vibecompass-mcp"],
"env": {
"VIBECOMPASS_API_KEY": "your-api-key",
"VIBECOMPASS_API_URL": "https://vibecompass.dev"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"vibecompass": {
"command": "npx",
"args": ["-y", "@vibecompass/vibecompass-mcp"],
"env": {
"VIBECOMPASS_API_KEY": "your-api-key",
"VIBECOMPASS_API_URL": "https://vibecompass.dev"
}
}
}
}Codex
Add this to ~/.codex/config.toml:
[mcp_servers.vibecompass]
command = "npx"
args = ["-y", "@vibecompass/vibecompass-mcp"]
env = { VIBECOMPASS_API_KEY = "your-api-key", VIBECOMPASS_API_URL = "https://vibecompass.dev" }Keep the repo-level AGENTS.md file committed so Codex knows when to call the
VibeCompass tools.
Local read mode
Example env:
{
"VIBECOMPASS_ROOT": "/absolute/path/to/project-memory-root"
}Claude Code local-mode command:
claude mcp add --transport stdio vibecompass \
--env VIBECOMPASS_ROOT='/absolute/path/to/project-memory-root' \
-- npx -y @vibecompass/vibecompass-mcpHybrid mode
Example env:
{
"VIBECOMPASS_ROOT": "/absolute/path/to/project-memory-root",
"VIBECOMPASS_API_KEY": "your-api-key",
"VIBECOMPASS_API_URL": "https://vibecompass.dev"
}Hybrid asymmetry, by design: reads prefer the local root (conflicts and
pending proposals still come from hosted — they are collaboration metadata),
while ALL write tools (log_decision, add_session_summary,
update_feature_status, flag_conflict) go to the hosted project only.
A decision logged over MCP lands in the hosted structured tables and does
NOT appear in your local canonical decisions/*.md unless it comes back
through the proposal flow. Local file writes stay with the
@vibecompass/vibecompass package.
Changing a project's hosting mode
Environment variables are read once at startup — after moving a project between modes, update the variables and restart the MCP server:
Promoted to hosted-only (
vibecompass promote-hosted): setVIBECOMPASS_API_KEY(create a key on the hosted Setup page) and removeVIBECOMPASS_ROOT.Demoted to local-primary (
vibecompass demote-hosted): setVIBECOMPASS_ROOTback to the local root; keep the API key for hybrid writes if you want them.
Local development
npm install
npm run build
npm test
VIBECOMPASS_API_KEY=your-api-key npm run startLocal-only read development:
VIBECOMPASS_ROOT=/absolute/path/to/project-memory-root npm run startTools
Read tools work in hosted mode or local mode:
get_project_contextget_feature_contextget_decision_logget_conflictsget_file_contextlist_pending_proposals— hosted proposal summaries, read-only. In local mode it returns an empty list with a note, because proposals live in the hosted project.
Write tools require VIBECOMPASS_API_KEY and are disabled in pure local mode:
log_decisionupdate_feature_statusflag_conflictadd_session_summary
Session brief (get_brief, opt-in)
get_brief builds a session brief for a task: excerpts of the architecture
docs, decisions, and session notes that match it, with a status (complete,
partial, incomplete, or no-match) and the follow-up reads that didn't fit. It
is the same brief vibecompass brief prints.
It appears only in local and hybrid mode, and only when the root's
project.yaml turns the brief on:
brief:
enabled: trueThe server checks this when it starts, so restart it after changing the
setting. If the setting is turned off while the server runs, get_brief
returns a note and builds nothing.
Inputs:
task(required), and optionallyfiles,feature_slugs,claims,lane_id, andbudget(800 to 6,000 estimated tokens; default 6,000). The tool never picks a session lane for you; passlane_idto include one.Output: the brief as markdown, then its metadata as JSON, with units listed as references.
vibecompass brief --jsonwith the same inputs gives the full records.Treat the brief as a starting point. Its excerpts are cut, and it can miss the doc a task depends on, so read the full source behind anything you rely on.
It never serves an old brief: if a build fails or takes over 5 seconds, the call returns an error with no brief.
Each call builds in its own worker thread. The server stops the build at 5 seconds and keeps answering other tool calls while it runs.
Response budgets
Every mode keeps read responses small enough for a model's context.
(get_brief is the exception described above: its markdown keeps the brief's
own budget, and only its JSON metadata follows these limits.)
get_project_context and get_feature_context drop their least important
detail first to fit about 2,000 tokens. Any read response still over about
2,500 tokens comes back as a preview with a _note pointing to narrower tools,
such as get_feature_context with a component_slug. In local mode, when a
feature's component details are dropped, the note says to read each
component's doc, whose path the response gives.
In local mode, decisions are filtered by the feature's domain decision file
(for example decisions/mcp-server.md), because decision entries don't record
which feature they belong to. Responses say so in a note.
Server instructions
The server tells the client what the tools are for and where the project's
source of truth is: the local project-memory files in local and hybrid mode.
The instructions never mention get_brief, so agents aren't steered to call
it.
Available Tools
10 toolsadd_session_summaryA
Call this at the END of every coding session. Summarize what you accomplished, what is left to do, and any blockers. List all features you touched. The next AI session will read this summary to continue where you left off.
Inputs: summary (required), features_touched (required).
flag_conflictA
Flag a conflict when you notice contradictory patterns, duplicated logic across features, or disagreement with a past decision. Conflicts are surfaced to the developer in the dashboard for resolution. Do not try to auto-resolve conflicts — flag them and move on.
Inputs: description (required), feature_slug (required).
get_conflictsA
Check for open conflicts before starting work. Conflicts indicate areas where code changes contradicted prior decisions or where patterns collided. You MUST check conflicts before modifying affected features.
Inputs: no named parameters.
get_decision_logA
Check past architectural decisions before proposing changes. Prevents re-debating settled decisions. Call this when you are unsure why something was built a certain way, or before making a significant architectural choice.
Inputs: limit, feature_slug.
get_feature_contextA
Get FULL details for a specific feature before working on it. Returns description, components, involved files, repo ownership, recent decisions, and open conflicts for that feature. Always call this before modifying code that belongs to a feature.
Inputs: feature_slug (required), component_slug.
get_file_contextA
Before modifying any file, call this to understand which feature and component owns it. This prevents accidental cross-feature changes and helps you stay within the right domain. For multi-repo projects, pass file paths in repo:path form (for example "web:src/app/page.tsx").
Inputs: filepath (required).
get_project_contextA
Call this FIRST at the START of every coding session. Returns a summary of the entire project: domains, features, their statuses, recent decisions, and open conflicts. Use this to orient yourself before writing any code. If you need detail on a specific feature, follow up with get_feature_context.
Inputs: no named parameters.
list_pending_proposalsA
Read hosted proposal summaries for Hybrid mode. This is read-only: local project-memory files remain authoritative, and proposal application must happen through the VibeCompass package sync flow.
Inputs: status.
log_decisionA
Log EVERY significant architectural decision you make during this session. This creates a permanent record that future sessions will read. If you chose between two approaches, log why. If you changed an existing pattern, explain the reasoning. Future sessions depend on this.
Inputs: title (required), description (required), feature_slug (required).
update_feature_statusA
Update a feature's status when you make progress. Mark "in_progress" when you start working on it, "complete" when done, "blocked" if stuck. This keeps the project brain accurate for the next session.
Inputs: status (required), feature_slug (required), notes.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Every tool targets a distinct purpose: session summary, conflict management, decision logging, feature/file/project context, proposals, and status updates. No two tools overlap in functionality.
All tools follow a clear verb_noun pattern (e.g., get_feature_context, log_decision) using snake_case, making them predictable and easy to navigate.
With 10 tools, the set is well-scoped for a project context server. It covers session handling, conflicts, decisions, features, files, proposals, and status without being too numerous or sparse.
The tool surface covers the full lifecycle for project context: reading current state (get_project_context, get_feature_context, get_file_context, get_conflicts, get_decision_log, list_pending_proposals) and updating it (add_session_summary, flag_conflict, log_decision, update_feature_status). No obvious gaps.
Maintenance
Related MCP Connectors
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseCqualityDmaintenanceMCP server for sharing source-backed engineering memory across AI coding clients like Cursor and VS Code.301MIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server that provides a shared context and learning foundation across multiple AI tools (Claude, Copilot, Codex) for multiple projects, enabling persistent knowledge, decisions, and gap reflection through note storage.48 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceMCP server that enables AI coding agents to communicate, share state, and coordinate work in real time via MCP tools or REST API.79 npm10MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives your agent a persistent project brain: vision, architecture decisions, conventions, roadmaps, and automatic session handoff.2 npm7MIT