MCP-based contextual flag system for AI assistants
Project description
Context Engine MCP
17 contextual flags for AI assistants. Control how AI thinks and works.
What it does
Gives AI specialized working modes through flags. Like --strict for zero errors or --auto for automatic flag selection.
Quick Start
# Install (recommended)
pipx install context-engine-mcp
# For Claude Code
context-engine-install
# For Continue
context-engine-install --target cn
Then use in AI:
"Fix this bug --auto"→ AI selects best flags"--save"→ Creates handoff documentation"Analyze --strict"→ Multi-angle analysis with zero errors
Note: Manual MCP server setup required after installation (see details below).
17 Flags
| Flag | Purpose |
|---|---|
--analyze |
Multi-angle systematic analysis |
--auto |
AI selects optimal flag combination |
--concise |
Minimal communication |
--explain |
Progressive disclosure |
--git |
Version control best practices |
--lean |
Essential focus only |
--load |
Load handoff documentation |
--parallel |
Multi-agent processing |
--performance |
Speed and efficiency optimization |
--readonly |
Analysis only mode |
--refactor |
Code quality improvement |
--research |
Technology investigation |
--reset |
Reset session flag state |
--save |
Handoff documentation |
--seq |
Sequential thinking |
--strict |
Zero-error enforcement |
--todo |
Task management |
Installation Details
Claude Code
# Install package
pipx install context-engine-mcp
# Install configuration files
context-engine-install
⚠️ Important: After installation, you must manually add the MCP server:
# Choose ONE of these commands:
# Standard Python installation
claude mcp add -s user -- context-engine context-engine-mcp
# UV installation
claude mcp add -s user -- context-engine uv run context-engine-mcp
# Custom command
claude mcp add -s user -- context-engine <your-command>
This creates MCP server configuration and installs to ~/.claude/.
Continue Extension
# Install package
pipx install context-engine-mcp
# Install configuration files
context-engine-install --target cn
⚠️ Configuration Required: Edit ~/.continue/mcpServers/context-engine.yaml and uncomment ONE option:
# Option 1: Standard Python (most common)
name: Context Engine MCP
command: context-engine-mcp
# Option 2: UV installation
# name: Context Engine MCP
# command: uv
# args: ["run", "context-engine-mcp"]
# Option 3: Custom installation
# name: Context Engine MCP
# command: <your-custom-command>
Then restart VS Code and type @ in Continue chat to access MCP tools.
How to Use
In AI Chat
# Auto mode - AI selects flags
"Refactor this code --auto"
# Direct flags
"--save" # Creates handoff doc
"--analyze --strict" # Multi-angle analysis with zero errors
"--reset --analyze" # Reset session and reapply
# Combined flags
"Review this --analyze --strict --seq"
MCP Tools (Called by AI)
list_available_flags()- Shows all 16 flagsget_directives(['--flag1', '--flag2'])- Activates flags
Development: For local development, use pip install -e . instead of pipx.
Configuration Updates: Edit ~/.context/flags.yaml and restart MCP server to apply changes.
Session Management
- Duplicate flags show REMINDER only (saves tokens)
- Use
--resetwhen changing context - AI tracks which flags are active
Special: --auto Workflow
--auto is NOT a flag. It's an instruction for AI to:
- Analyze your task
- Select appropriate flags
- Apply them automatically
Example: "Fix this bug --auto" → AI might choose --analyze, --strict, --seq
Files Created
~/.claude/
├── CLAUDE.md # References @CONTEXT-ENGINE.md
└── CONTEXT-ENGINE.md # Flag instructions (auto-updated)
~/.continue/
├── config.yaml # Contains Context Engine rules
└── mcpServers/
├── context-engine.yaml
├── sequential-thinking.yaml
└── context7.yaml
~/.context/
└── flags.yaml # Flag definitions
Uninstallation
# Uninstall (recommended)
context-engine-install --uninstall
# Remove Python package
pip uninstall context-engine-mcp -y
Note: During uninstallation, ~/.context/flags.yaml is backed up to ~/flags.yaml.backup_YYYYMMDD_HHMMSS before removal. During installation, existing flags.yaml is automatically backed up and updated to the latest version.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file context_engine_mcp-1.0.0.tar.gz.
File metadata
- Download URL: context_engine_mcp-1.0.0.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d73c5a394a9deb1d7e379dccb7b53d0b368094c6eee0236a790c2e2cd201f83a
|
|
| MD5 |
d0b325b4b8e221d3b9e3a7c04def329d
|
|
| BLAKE2b-256 |
25e6cb81652a7d18cf1d9d745ae7384f56fec405f16a3e87315cf965eb4ba6ca
|
File details
Details for the file context_engine_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: context_engine_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
761bdda183b03a2dd337ef2dcb57dd355fc9caa36bc2650075d71dcd2586db7c
|
|
| MD5 |
bdef600d2f40076f4e64b4784a37ae2c
|
|
| BLAKE2b-256 |
71df8b4b777f6117268e76c70075377d8f27ff43314e2f66998b307128e0e969
|