Server Driftguard
A Firewall for Intelligence - MCP server that enforces strict state machine for agentic coding
Ask AI about Server Driftguard
Powered by Claude Β· Grounded in docs
I know everything about Server Driftguard. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
π‘οΈ DriftGuard
A Firewall for Intelligence
Strict State Machine β’ Zero-Loss Continuity β’ L3 Integrity
π§ What is DriftGuard?
DriftGuard is an implementing server for the Model Context Protocol (MCP) that acts as a "Traffic Controller" for AI Agents.
Most agents suffer from "Code Drift": they edit random files, lose context, and hallucinate checkpoints. DriftGuard solves this by enforcing a Strict Recursive State Machine. An agent cannot touch code until it has:
- Proposed a task.
- Claimed a scope (locking files).
- Declared intent.
It is not just a tool; it is an Agreement Architecture.
π Getting Started
You can run DriftGuard instantly using npx. No configuration required.
One-Command Install
npx @modelcontextprotocol/inspector npx @soufienne/mcp-server-driftguard
Manual Installation (For Development)
# 1. Clone the repository
git clone https://github.com/ramailo1/mcp-server-driftguard.git
cd mcp-server-driftguard
# 2. Install dependencies & Build
npm install
npm run build
# 3. Launch the Inspector
npm run inspect
π The Manifesto (Workflow)
DriftGuard enforces a linear, verifiable cycle.
graph LR
A[Start] --> B(dg_propose_task)
B --> C{dg_claim_scope}
C -->|Locked| D(dg_report_intent)
D -->|Exec| E[Edit Files]
E --> F(dg_verify)
F -->|Pass| G(dg_checkpoint)
G --> A
1. π Propose & Plan
Define your objective. DriftGuard creates a structured ACTIVE_PLAN.md and tracks progress.
dg_propose_task: Start a new mission.
2. π Scope Claiming
Prevent agents from stepping on each other's toes.
dg_claim_scope: Lock file paths (e.g.,src/**/*.ts).- Integrity: Automatically snapshots file hashes (MD5) to detect "Time-Travel" hacks.
3. β‘ Intent & Action
Never act without declaring why.
dg_report_intent: "I am identifying the bug in user.ts"dg_verify: Run your test command. Proves the code works.
4. πΎ Checkpoint & Continuity
Save your game.
dg_checkpoint: Commits L3 Git Notes.dg_generate_handoff: Resume Packet. Serializes the entire session state for the next agent.
π οΈ The Toolkit
| Tool | Purpose | Phase |
|---|---|---|
dg_init | Initialize DriftGuard in a repo | Core |
dg_status | Get current tasks & state | Core |
dg_claim_scope | Lock files for exclusive editing | Traffic |
dg_report_intent | Declare next move (Required before checkpt) | Action |
dg_verify | Run verification command | Action |
dg_health_check | Detect manual file tampering | Integrity |
dg_generate_handoff | Create resume packet for next session | Continuity |
dg_reset | Hard Reset (Safety Valve) | Safety |
π€ Contributing
We welcome contributions "at the speed of thought."
- Fork the repo (
ramailo1/mcp-server-driftguard). - Create your feature branch.
- Commit your changes.
- Push to the branch.
- Open a Pull Request.
π License
This project is licensed under the MIT License - see the LICENSE file for details.
Built with β€οΈ for the Age of Agents. @soufienne
