Steward MCP
OfficialClick 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., "@Steward MCP restore my project context and show the current focus"
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.
Steward MCP
Git tracks your code. Steward tracks your commitments.
steward-mcp is a local-first, zero-dependency state engine and Model Context Protocol (MCP) server for AI coding environments (Antigravity, Claude Code, Cursor, Windsurf, Codex, Hermes).
Why this exists
Every AI coding session hits the same three walls:
Context compaction wipes your decisions. Two hours in, the chat compacts and the agent forgets why you rejected Redis or why a migration has to stay backwards-compatible.
Switching models rewrites reality. You swap from Claude to Gemini to DeepSeek (or a local model) to manage token costs or quotas—and the new model quietly contradicts what the last one agreed to.
Agents mark unverified work "done." Memory files let any prompt quietly overwrite project truth with zero proof.
Reasoning is rented. State is the only thing you own.
Steward keeps your project's Decisions, Open Debt, Verified Components, and Current Focus in a local, hash-chained ledger (./.steward/)—and puts a fail-closed gate in front of marking anything "verified."
Zero external dependencies (pure Python 3.10+ standard library)
100% local & offline (no cloud account, no API keys, no telemetry)
Works across every ADE over standard MCP
stdio
Related MCP server: horizon-ledger
Quick Start (60 seconds)
1. Install
pip install -e .
# or run directly from source without installing:
PYTHONPATH=src python3 -m steward_mcp --help2. Connect to your ADE
Add one MCP block to your IDE / agent config:
Antigravity / Cursor / Windsurf (mcp_config.json or .cursor/mcp.json)
{
"mcpServers": {
"steward": {
"command": "steward-mcp",
"args": ["serve", "--state-dir", ".steward", "--project", "default"]
}
}
}Claude Code
claude mcp add steward -- steward-mcp serve --state-dir .steward --project defaultZero-install fallback (straight from a cloned repo)
{
"mcpServers": {
"steward": {
"command": "python3",
"args": ["-m", "steward_mcp", "serve", "--state-dir", ".steward", "--project", "default"],
"env": {
"PYTHONPATH": "/path/to/steward-mcp/src"
}
}
}
}3. Add the 15-line agent rule
Copy the matching file from ade-rules/ into your repo (AGENTS.md, CLAUDE.md, .cursor/rules/steward.mdc, or SKILL.md) so your agent knows when to restore, decide, log debt, and freeze.
What Your Agent Gets (12 Tools · 3 Resources · 2 Prompts)
Category | Tool | What it does |
Read / Fold |
| ~100-token snapshot of focus, counts, open debt, and recent decisions |
| Sliced reads ( | |
| Restore context at session start, after compaction, or after a model swap | |
| Fold live state into human-readable | |
Commitments |
| Record a binding decision ( |
| Log an open bug, debt, or constraint ( | |
| Mark a debt resolved inline with proof (never deletes history) | |
| Set the single active challenge, hypothesis, and next action | |
Fail-Closed Gate |
| Tier 1: write a cheap, unvalidated draft ( |
| Run gate checks (identity, concrete evidence, file SHA-256 snapshot) → mint single-use v2 token | |
| Tier 2: spend the v2 token to promote a verified component ( | |
Forensics |
| Verify the entire genesis-to-tip hash chain and every spent gate token |
MCP Resources: steward://status · steward://anchor · steward://debt/open
MCP Prompts: onboard · handoff
How the Fail-Closed Gate Works (Drafts vs. Merged Truth)
Think of it like a Git PR before merge:
Anyone (or any model) can call
steward_proposeto write a draft. Drafts are clearly marked NOT BINDING.To mark a component verified/canonical, the agent calls
steward_adjudicatewith concrete proof (and optionallyartifact_path, which Steward hashes and freezes as a byte-exact snapshot).If all checks pass, the gate mints a single-use, TTL-bounded, payload-bound v2 token.
steward_promoteverifies the token, checks that neither the text nor the frozen file bytes were tampered with, commits atomically (with OSflock+fsync), and consumes the token.
If an agent tries to skip the gate, reuse a token, edit the evidence after approval, or tamper with the snapshot, the write is refused at the boundary.
CLI Quick Reference
steward-mcp init --state-dir .steward --project myapp
steward-mcp status --state-dir .steward --project myapp
steward-mcp anchor --state-dir .steward --project myapp
steward-mcp verify --state-dir .steward --project myappResearch Companion
steward-mcp is both a practical open-source tool and the reproducible companion implementation for the design-science chapter:
State Is Not Memory: Why an LLM Agent Needs a Steward (includes a Plain-English Summary & Dev-to-Paper Glossary)
Built by DataMind Labs Africa · MIT Licensed.
Available Tools
12 toolssteward_adjudicateA
Run the fail-closed Capability Gate on a proposal or candidate. Checks identity, concrete evidence, optional file artifact SHA-256 snapshot pinning, and promotion basis. If all checks pass and mint=true, issues a single-use, payload-bound v2 token for steward_promote.
Inputs: mint, name, project, attestor, +8 more.
steward_debt_openB
Log an open technical debt, bug, or known constraint in §7 so it cannot quietly disappear across sessions or model swaps.
Inputs: debt_id (required), description (required), blocker, project, +1 more.
steward_debt_resolveB
Resolve an OPEN debt item in §7 inline with verification evidence (never silently deletes history).
Inputs: debt_id (required), resolution_note (required), project.
steward_decideB
Record a binding architectural or product decision (DEC-NNNN) in the decision log (§8) and chain it into the append-only audit log.
Inputs: title (required), rationale (required), tags, cycle, +1 more.
steward_focusC
Set the single-slot Active Focus (§3): what problem is currently being worked on, the active hypothesis, success condition, and next immediate action.
Inputs: presenting_challenge (required), status, project, hypothesis, +3 more.
steward_freezeA
Fold live ledger state into a concise, human-readable ANCHOR.md handoff file and log a FREEZE event. Call before compaction, switching AI models, or ending a work session.
Inputs: project.
steward_promoteA
Tier-2 canonical write: promote a verified component to §2 (assigns permanent M-number) by spending a valid, unspent v2 gate token from steward_adjudicate. Fails closed on any mismatch.
Inputs: gate_token (required), name, project, evidence, +4 more.
steward_proposeA
Tier-1 write: record an unvalidated draft proposal (PROP-NNNN). Cheap and undoable; never modifies canonical verified components (§2) until adjudicated and promoted.
Inputs: name (required), description (required), project, evidence, +1 more.
steward_queryB
Query a slice of the ledger without loading the full state file. Supports plain-English sections ('decisions', 'debt', 'mechanisms', 'focus', 'proposals', 'retired', 'risks', 'conventions') or register codes ('§1'..'§10').
Inputs: mode, limit, query, project, +2 more.
steward_restoreB
Restore project context at session start, after context compaction, or after switching AI models. Returns the folded ANCHOR.md handoff (binding decisions, open debt, verified components, current focus).
Inputs: project.
steward_statusA
Get a lightweight (~100-token) snapshot of the project ledger: current focus, decision/debt/component counts, open debt IDs, and recent decisions. Use instead of reading active_state.json directly.
Inputs: project.
steward_verifyB
Forensic check: verify the entire append-only audit hash chain from genesis to tip, register integrity, and every spent gate token referenced by canonical §2 entries.
Inputs: project.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools map to a clearly distinct action on a distinct region of the ledger (status/query/restore/verify for reads; decide/propose/promote for tiered writes; debt_open/debt_resolve for debt). The main soft spots are the three read tools (steward_status, steward_query, steward_restore) and the adjudicate/promote pair, which depend on descriptions to be told apart, but the descriptions do make the boundaries explicit.
All 12 tools share a steward_ namespace prefix and snake_case, with mostly verb-style names (decide, query, promote, freeze, verify). Minor deviations exist: debt_open/debt_resolve insert a resource noun mid-name, and status/focus are noun forms rather than verbs, but the pattern remains readable and predictable.
12 tools is well within the ideal 3-15 range and each one maps to a real step in the ledger lifecycle: read, tiered writes, gated promotion, and session freeze/restore/verify. Nothing appears redundant or padded.
The surface covers the core lifecycle: lightweight and sliced reads, decision/debt/focus/proposal writes, fail-closed adjudication, promotion, handoff freeze/restore, and chain verification. Gaps are minor but real—no tool to write risks/conventions/mechanisms or retire components (only query them), and no explicit proposal listing/rejection beyond the gate, though append-only design and steward_query make these workable.
Maintenance
Related MCP Connectors
Tamper-evident audit ledger for AI actions: read plans and verification facts.
51Project memory, documentation and controlled secret access for AI coding agents.
Durable commitment lifecycle, verification, governance and recovery layer for agentic commerce.
Project memory for coding agents: requirements, decisions, code graph and delivery telemetry.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceLocal-first deterministic project memory for AI coding agents, with context packs, decisions, gates, risks, scoped claims and explicit checkpoints in project-owned files.-
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to read and manage a Git-native decision ledger, providing tools for querying decisions, evidence, cross-repository workspaces, validation, and commit tracing, all operating locally and without a cloud service.MIT
- 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
- AlicenseBqualityBmaintenanceEnables AI coding agents to assemble tamper-evident, locally stored evidence bundles that capture Git state, command results, and file hashes, then verify freshness and export shareable reports.241MIT