Orchestrates version control workflows including branch creation, pre-commit checks, and merging as part of a 19-step enforced development cycle.
Click on "Install 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., "@Code Intelligence MCP ServerFix the bug where empty passwords in the login form don't return an error."
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.
Code Intelligence MCP Server
Current Version: v1.16
An MCP server that enforces LLMs like Claude and Codex to implement code exactly as specified.
Overview
Problems Solved
LLM-driven code implementation has three key problems:
Problem | Symptom |
Insufficient Exploration | Only looks at the modification target, ignores related code |
Rule Ignorance | Doesn't read design documents or coding standards |
Incomplete Implementation | Skips tasks, uses mocks, returns empty implementations |
Our Solution
Problem | Solution | Implementation |
Insufficient Exploration | Forced Exploration | code-intel tool usage required in EXPLORATION phase |
Rule Ignorance | Forced Documentation | Design document reading required in DOCUMENT_RESEARCH phase |
Incomplete Implementation | Forced Verification | checklist + evidence required, empty implementation detection (pass/TODO/NotImplementedError) |
Positioning
This tool functions as a lower layer of the spec-driven development workflow, solving the problem of "specs are correct but LLM doesn't implement correctly."
Design Philosophy
Principle | Description |
Phase Enforcement | Cannot proceed to implementation without exploration. Server controls transitions |
Server Evaluation | Confidence scores calculated by server. LLM self-reporting eliminated |
Write Restriction | Only explored files can be modified. Writes to unexplored files are blocked |
Safety Valve | Server-side counter prevents infinite loops. Intervention triggers after 3 verification failures |
Improvement Cycle | DecisionLog + OutcomeLog for learning from failure patterns |
See DESIGN.md for details.
Architecture
Semantic Search (Forest/Map)
Purpose: Find code from natural language queries (e.g., "authentication logic" → AuthService.login())
Layer | Search Target | Effect |
Map | Term→Symbol mappings | Instantly identify symbols for learned terms |
Forest | Entire source code | Find relevant code even for new terms |
Behavior: High Map score (≥0.7) → Skip Forest for faster results
Processing Flow (19 Steps)
Each phase is gate-managed, with the orchestrator controlling transitions so LLMs cannot skip phases.
See DESIGN.md for details.
Requirements
Python 3.10+
Supported OS: Linux (Ubuntu/Debian, Fedora/RHEL, Arch), macOS, Windows (WSL)
Tools Installed by setup.sh
Environment Setup:
venv — Creates Python virtual environment
pip — Upgraded to latest version
System Tools:
ripgrep (rg) — Text search
universal-ctags — Symbol definition search
Python Packages:
Package | Version | Purpose |
mcp | ≥1.0.0 | MCP server framework |
chromadb | ≥1.0.0 | Vector search (Forest/Map) |
tree-sitter | ≥0.21.0, <0.22.0 | AST parsing |
tree-sitter-languages | ≥1.10.0 | Language parsers |
sentence-transformers | ≥2.2.0 | Embedding model |
scikit-learn | ≥1.0.0 | Similarity calculation |
PyYAML | ≥6.0.0 | context.yml parsing |
asyncio | — | Async processing |
pytest | ≥7.0.0 | Testing |
pytest-asyncio | ≥0.21.0 | Async testing |
Setup
Step 1: MCP Server Setup (One-time)
Step 2: Project Initialization (Per-project)
This creates the following (◎ = must modify, ★ = can add/modify, 〇 = can modify):
Step 3: Configure .mcp.json
Add the configuration output by init-project.sh to .mcp.json:
Step 4: Restart Claude Code
Restart to load the MCP server.
Step 5: Verify Skills
Check that skills are available:
Codex Users (Install Skills)
Codex loads skills from $CODEX_HOME/skills. Copy the templates:
Step 6: Customize context.yml
The .code-intel/context.yml file controls various behaviors. Customize as needed:
Section | Description |
| Project rules source file (auto-detected) |
| Document search patterns for impact analysis |
| Document research settings (v1.3) |
| Intervention system settings (v1.4) |
| Verifier behavior settings |
Usage
Using /code Skill
Default Behavior: Full mode (exploration + implementation + verification + cleanup + quality)
Command Options
Long | Short | Description |
|
| Gate level: f(ull), a(uto) [default: auto] (v1.10) |
| - | Skip verification (also skips intervention) |
| - | Skip quality review (v1.5) |
|
| Run verification only (skip implementation) |
|
| Run exploration only (skip implementation) |
|
| Fast mode: skip exploration, with branch |
|
| Minimal mode: skip exploration, no branch |
| - | Skip document research (v1.3) |
|
| Skip intervention system (v1.4) |
|
| Resume session from checkpoint |
|
| Delete stale branches + all checkpoints |
| - | Force rebuild all indexes |
gate_level Options (v1.10):
--gate=fullor-g=f: Execute all phases ignoring Q1/Q2/Q3 checks--gate=autoor-g=a: LLM judges necessity before each phase (default)
Phase Matrix
Option | Doc Research | Explore | Impl | Verify | Intervene | Cleanup | Quality | Branch |
(default) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| ❌ | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |
| ✅ | ✅ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
| ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ |
| ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
| ✅ | ❌ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
Examples
Project Structure
MCP Server (llm-helper/)
For target project structure, see "Setup > Step 2"
Tool List
Category | Tools |
Session |
|
Exploration |
|
Implementation Control |
|
Branch |
|
Index |
|
See DESIGN.md for details.
Documentation
Document | Content |
Overall design (English) | |
Overall design (Japanese) | |
Documentation management rules |
CHANGELOG
Version history and detailed changes:
Version | Description | Link |
v1.11 | submit_phase unification & task orchestration (17 tools→1, compaction resilience, server-enforced task management) | |
v1.10 | Individual Phase Checks (per-phase checks, VERIFICATION/IMPACT separation, gate_level reorganization - 20-60s reduction) | |
v1.9 | sync_index batch processing, VERIFICATION+IMPACT_ANALYSIS integration (15-20s reduction) | |
v1.8 | Exploration-Only Mode (Intent auto-detection + --only-explore, no branch creation) | |
v1.7 | Parallel Execution (27-35s reduction) | |
v1.6 | Branch Lifecycle (stale warning, begin_phase_gate) | |
v1.5 | Quality Review | |
v1.4 | Intervention System | |
v1.3 | Document Research, Markup Cross-Reference | |
v1.2 | Git Branch Isolation | |
v1.1 | Impact Analysis, Context Provider |
License
MIT