beethovkjfe/contextforge-cli
ContextForge scans your codebase, detects conventions, and generates a .md file that AI-powered IDEs (Claude Code, Cursor, Windsurf, VS Code Copilot, Antigravity) read automatically. It also runs as an MCP server, giving those IDEs live access to your project's conventions, prior decisions, and relevant context through four purpose-built tools.
Platform-specific configuration:
{
"mcpServers": {
"contextforge-cli": {
"command": "npx",
"args": [
"-y",
"contextforge-cli"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
ContextForge scans your codebase, detects conventions, and generates a .context.md file that AI-powered IDEs (Claude Code, Cursor, Windsurf, VS Code Copilot) read automatically. It also runs as an MCP server, giving those IDEs live access to your project's conventions, prior decisions, and relevant context through four purpose-built tools.
---
# Install globally
npm install -g contextforge
# In your project root
contextforge initinit does three things in one shot:
.contextforge/ (config, decisions log, MCP server registration).context.md + the IDE-specific file for your detected editorWhen run interactively, init walks you through three prompts:
--ide is not passed.contextforge/, .mcp.json, IDE files) to .gitignoreTo skip prompts in CI or scripts, use flags directly:
contextforge init --ide claude-code --templates --gitignore---
| Command | Description | |---|---| | contextforge init | Full bootstrap + scan + generate. Prompts interactively to apply templates and add to .gitignore. Flags: --force (re-scan even if fresh), --ide <target> (override IDE detection), --templates (skip prompts, apply templates), --gitignore (skip prompts, add to .gitignore). | | contextforge serve | Start the MCP stdio server (used by IDE MCP integrations). | | contextforge status | Show context freshness, last updated, detected IDE, and section list. | | contextforge switch <ide> | Re-write the IDE-specific file from the existing .context.md without re-scanning. | | contextforge audit | Health check: context freshness, IDE file, s
Loading reviews...