apogee-mcp¶
MCP server for AI coding assistants, automated review agents, and CI pipelines. Exposes 27 tools, 8 resources, and 2 prompts over stdio.
pip install apogee (included with the Apogee server install)apogee-mcp
Synopsis¶
apogee-mcp [--transport stdio]
Start the server. Communicates via stdio transport with any MCP-compatible host (Claude Code, Cursor, OpenCode).
Description¶
The MCP server is the integration surface for three use cases:
AI-assisted development — coding assistants (Claude Code, Cursor) use skills and chains for structured workflows with human-in-the-loop approval.
Automated code review — review agents call CPG tools (
cpg_full_audit,cpg_backport_check,cpg_security_scan) to produce structured findings on PRs with zero human prompting.Continuous audit — CI pipelines index commits incrementally and run security scans against baselines, flagging regressions automatically.
It provides 27 tools, 8 resources, and 2 prompts.
Constraint system: the route tool classifies each user message as
read or write intent. In read mode, only discovery and inspection tools
are advised. In write mode, the full skill catalog is available. Constraint
transitions are automatic (auto mode) or explicit (force-write).
Configuration¶
The server reads APOGEE_ROOT from the environment to locate the
project root. When not set, it uses the current working directory.
MCP client configuration example:
{
"mcpServers": {
"apogee": {
"command": "apogee-mcp",
"args": [],
"env": { "APOGEE_ROOT": "/path/to/project" }
}
}
}
Reference¶
Workflow tools
Tool |
Description |
Key parameters |
|---|---|---|
|
Classify user intent and update session constraint |
|
|
Search skills by natural language query |
|
|
Primary execution entrypoint — prepare and run a skill |
|
|
Recommend next skill based on project state |
(none) |
|
Set session constraint explicitly |
|
Chain tools
Tool |
Description |
Key parameters |
|---|---|---|
|
Derive lifecycle chain from plans |
|
|
Manage live chain session |
|
|
Persist chain session for later resumption |
|
|
Restore saved chain checkpoint |
|
Manifest tools
Tool |
Description |
Key parameters |
|---|---|---|
|
Create repo structural analysis manifest |
|
|
Recompute manifest scores without regenerating |
|
|
Return score summary from manifest |
|
|
Load budget-aware manifest fragments |
|
CPG tools
Tool |
Description |
Key parameters |
|---|---|---|
|
Find functions calling a given function |
|
|
Find functions called by a given function |
|
|
Analyze change blast radius |
|
|
Show file layout: modules, classes, functions |
|
|
Trace variable flow within and across functions (follows arg_passes_to edges) |
|
|
Compare CPG state between commits |
|
|
Find structurally similar functions |
|
|
Reconstruct file/function body at a historical commit |
|
|
Execute read-only SQL against CPG database |
|
|
Run compound security scan using scope_summary flags |
|
|
Cross-branch structural divergence report |
|
|
Assess backport safety for a function |
|
|
Combined security + divergence + backport audit |
|
|
Rank functions by structural complexity |
|
Resources
URI |
Description |
|---|---|
|
Compiled workflow catalog by collection |
|
Metadata and prompt text for one workflow |
|
Lifecycle dashboard: features, manifests, chains, gates |
|
Server health, registry size, source layers |
|
Acceptance gate evaluation results |
|
Session constraint state |
|
Session constraint state and active persona |
|
IDE config hygiene scan |
Prompts
Prompt |
Description |
|---|---|
|
Prepare workflow for execution — returns rendered prompt |
|
Prepare and render workflow prompt text |
Examples¶
# Discover a skill by intent
find_skill("commit feature")
# Returns: workflow_id="task.git.commit_feature", score=1.0
# Execute a skill
run_skill("task.git.commit_feature")
# Returns: prompt_text, resolved_inputs, expected_artifacts
# Route a message (call on every user message)
route("refactor the parser module")
# Returns: intent="write", constraint="write", matched_skill=...
Note
This page is also available as a man page: man apogee-mcp
See Also¶
Chain Engine — lifecycle chain execution
Skill Runtime — skill compilation and registry
apogee-manifest — manifest generation tools
CPG Engine — CPG query tools