Click on "Install 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., "@ccontextget the current context and show me what tasks are active"
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.
ccontext-mcp — Execution Context for AI Agents
Local-first MCP server that gives agents a shared, durable “execution context” across sessions: Vision (why) · Sketch (static blueprint) · Milestones (timeline) · Tasks (deliverables) · Notes/Refs (knowledge) · Presence (who’s doing what).
🧠 Persistent agent memory • 📋 Agent-native task tracking • 🧹 Built-in hygiene (diagnostics + lifecycle) • ⚡ Batch updates (one call) • 🔒 Local files, zero infra
🖼️ ccontext at a Glance
Files on disk (portable, git-friendly)
One call to “load the brain”
get_context() returns version + now + diagnostics so agents can quickly orient:
Why ccontext? (Pain → Payoff)
The Pain
Agents forget what they were doing between sessions.
Multi-agent work becomes N² coordination noise without a shared “source of truth”.
Context grows unbounded; old notes become misleading; task state drifts.
The Payoff
Resume instantly: agents always start from the same structured context.
Coordinate cleanly: presence shows who’s doing what; tasks show what’s actually done.
Stay sane: diagnostics highlight context debt; ttl-based lifecycle prevents bloat.
✨ What Makes ccontext Different
🗂️ Local-first, Portable
Context is plain YAML in your repo. No DB, no cloud, no lock-in.
📋 Agent-native Structure
Designed around how agents actually work: vision, blueprint, milestones, tasks, notes.
⚡ Low-friction Updatescommit_updates() batches multiple changes in one call (status + task step + note).
🧹 Context Hygieneget_context() emits diagnostics + top issues so agents know what to fix.
⏳ Lifecycle Built-in
Notes/refs decay by ttl and auto-archive, keeping context fresh.
👥 Presence That Stays Readable
Presence is normalized (single-line, de-duped) by design.
Core Model (The “Contract”)
Vision: one-sentence north star. Low frequency.
Sketch: static blueprint only (architecture, strategy, constraints, major decisions).
Do not put TODO/progress/task lists here.Milestones: coarse phases (typically 2–6). Exactly one active at a time.
Tasks: deliverables with 3–7 steps. If work spans handoffs, it belongs in a task.
Notes/References: “things we must not forget” + “where to look”.
Presence: what each agent is doing/thinking right now (keep it short).
This contract is embedded into context.yaml under meta.contract for standalone use.
Installation
Claude Code
Claude Desktop
Add to claude_desktop_config.json:
Other MCP clients / manual
Root selection: ccontext uses CCONTEXT_ROOT when set; otherwise it uses the current working directory.
Agent Loop (Recommended)
Start every run
If missing, set the foundation
Keep one milestone active
Track real work as tasks
Update with low friction (one call)
Tools
Category | Tool | Purpose |
Context |
| Call first. Returns |
| Batch multiple updates (presence + task progress + notes/refs) in one call. | |
Vision / Sketch |
| Set the north star. |
| Update blueprint (static, no TODO/progress). | |
Presence |
| See what other agents are doing. |
| Update your status (1–2 sentences). | |
| Clear your status (remove stale/finished status). | |
Milestones |
| Manage coarse phases. |
Tasks |
| Track deliverables with steps. |
Notes / Refs |
| Preserve lessons/decisions with ttl lifecycle. |
| Bookmark key files/URLs with ttl lifecycle. |
Version Tracking (ETag-style)
Agents can detect change without guessing:
Note: version is semantic. It intentionally ignores notes/refs ttl decay so frequent reads don’t churn the hash.
Diagnostics & Lifecycle (Context Hygiene)
Diagnostics:
get_context()returnsdiagnostics(includingdebt_scoreandtop_issues) so agents can keep the context clean.TTL-based lifecycle: notes and references decay by 1 each
get_context()call and auto-archive when stale, preventing “memory bloat”.Presence normalization: agent IDs are canonicalized and de-duped; status is normalized to a single concise line for readability.
Git Recommendations
Most teams prefer:
Commit context/context.yaml and context/tasks/ so work survives sessions and can be reviewed.
Works With (and Without) Orchestrators
Standalone: any MCP-capable agent client can use ccontext directly.
Orchestrators: tools like CCCC can read/write the same
context/files for multi-agent runtime UX.No MCP? You can still read/write the YAML files manually (you just won’t get MCP ergonomics like batch updates and diagnostics).
License
MIT