Project Scope Binding
You run `codemcp` in any project root. CodeMCP anchors itself to this working directory, verifies Git status, and establishes path containment rules so operations cannot escape the repo root.
Context & Security Ingestion
CodeMCP reads `.mcpignore` to shield sensitive files (.env, credentials, secrets) and loads `CONTEXT.md` to equip AI models with coding conventions, design tokens, and project architecture.
Secure MCP Protocol Server
A local Model Context Protocol server starts on localhost (or over stdio). If remote AI web clients (like ChatGPT or Google AI Studio) need access, an encrypted ngrok tunnel is orchestrated with ephemeral vault authentication.
Human-in-the-Loop Mediation
When an AI client issues a file edit, AST search, or terminal command, CodeMCP inspects the request against permission rules, presents diffs for human confirmation if enabled, and applies writes atomically.
See CodeMCP in action
From running codemcp to approving your first diff.
Standard AI Tools vs. CodeMCP
Traditional Unbounded Tools
- ✕ Access to entire user home directory (`/home/user` or `C:\Users`)
- ✕ Can read `.env` secrets, AWS keys, and private SSH keys
- ✕ Silent file writes with zero diff preview or approval
- ✕ Ephemeral context lost between sessions
CodeMCP Controlled Architecture
- Strictly bounded to chosen project repository root
- Deterministic file shielding via `.mcpignore` rules
- Interactive terminal diff reviews and auto-apply toggles
- Persistent repository guidelines with `CONTEXT.md`