code-intel
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-intelreview this diff and give a risk score"
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-intel
code-intel gives coding agents two focused workflows: understand code before
changing it, then review the resulting diff. It keeps one CodeGraph MCP
connection alive for the lifetime of the outer MCP server and exposes a
deliberately small interface:
explore: find relevant source, trace callers and callees, follow data flow, and understand blast radius without reading the repository broadly.review: diff parsing, changed-symbol mapping, impact collection, explainable risk scoring, and a structured report.
The npm package is @team-harness/code-intel. It installs CodeGraph as an exact dependency; end users do not need a separate global CodeGraph installation.
code-intel and its bundled CodeGraph dependency have independent versions.
CODE_INTEL_VERSION identifies this wrapper release; CODEGRAPH_VERSION
identifies the exact @colbymchenry/codegraph version it runs. This allows the
bridge and reviewer to ship fixes without waiting for a new upstream release.
Install
npm install -g @team-harness/code-intel
code-intel install --target codex,claude
cd /path/to/project
code-intel initinstall registers the code-intel MCP server globally for the selected agents.
It also adds a marker-delimited guidance block to Codex ~/.codex/AGENTS.md
and Claude ~/.claude/CLAUDE.md, directing both agents to use explore for
code discovery and review before finalizing changes. Claude receives the
mcp__code-intel__* permission in ~/.claude/settings.json.
The installer preserves unrelated configuration, backs up each changed existing
file as <file>.code-intel.bak, and is idempotent. It does not initialize any
repository. Run code-intel init inside each project to create its local index;
run the same command again to incrementally refresh an existing index. The MCP
process keeps the connection warm and CodeGraph watches indexed source changes
after startup.
Related MCP server: graphward
MCP configuration
{
"mcpServers": {
"code-intel": {
"command": "npx",
"args": [
"-y",
"@team-harness/code-intel",
"mcp",
"--path",
"/absolute/path/to/project"
]
}
}
}The agent sees only explore and review. Internally, the review module also uses CodeGraph's node and impact tools; they are not exposed on the outer MCP surface.
Explore code
Ask a task-oriented question before reading or editing broadly:
code-intel explore \
"Trace how AuthService login creates and validates sessions, including callers and blast radius" \
--path /path/to/projectexplore returns a focused set of relevant source, symbol relationships, call
paths, and downstream impact. A useful query names the task, the symbols or
files already known, and the relationship to trace, such as callers, callees,
data flow, or blast radius.
Use --max-files <count> to control the amount of source returned. The MCP
explore tool accepts the same query, project path, and file limit, so agents
can refine an investigation with targeted follow-up questions while reusing the
same persistent CodeGraph connection.
Review modes
Review the current working tree, including staged, unstaged, and untracked files:
code-intel review /path/to/projectReview a branch or pull-request range:
code-intel review /path/to/project --base origin/main --head HEADGet the structured report:
code-intel review /path/to/project --jsonThe MCP review tool accepts the same base and head, or a caller-supplied
unified diff. These modes are mutually exclusive, and head always requires
base. With no diff or range it reviews the target project's current working tree.
Process diagnostics
Inspect the local code-intel wrappers, CodeGraph proxies, shared project daemons, and watchdogs without changing any process or file:
code-intel ps
code-intel ps --jsonThe JSON report has schemaVersion: 1 and records each process's role, status,
project, parent PID, uptime, supporting evidence, and whether strong evidence
makes it a future cleanup candidate. A long-running process is never classified
as an orphan based on age alone. This release does not terminate processes or
remove stale metadata.
Architecture
Agent / MCP host
|
| stdio MCP: explore, review
v
code-intel (long-lived process)
|
+-- CodeGraphBridge ---- persistent MCP client ---- CodeGraph MCP
| +-- explore ---- focused source / call paths / blast radius
|
+-- ReviewAnalyzer
+-- structured unified-diff parser
+-- hunk -> current symbol mapping
+-- node / impact / explore queries
+-- deterministic risk scorer
+-- Markdown + structured JSON reportThe bridge lazily starts CodeGraph on the first tool call, reuses that connection for later calls, and reconnects once if the child exits during a read-only request. CodeGraph may additionally share its own per-project daemon across MCP clients.
Review semantics
Risk scores are deterministic and explainable. Signals currently cover sensitive paths, missing test-file changes, graph impact width, diff size, file count, deleted files, and incomplete graph analysis. Global risk always uses metadata from the complete diff; maxFiles and maxSymbols limit only deep graph and patch analysis. Scores prioritize review effort; they are not claims that a bug exists.
Every report has schemaVersion: 1 and a risk-ordered reviewItems array. Each
item represents one changed symbol and includes normalized impact symbols,
related test files, mapping and impact confidence, parser warnings, and the exact
reasons contributing to its per-symbol risk score. Existing report fields remain
available for compatibility.
const report = await codeIntel.review();
for (const item of report.reviewItems) {
console.log(item.risk.level, item.symbol.name, item.tests.status);
}The internal graph adapter keeps CodeGraph's original text in each impact result
for diagnostics, but downstream consumers no longer need to parse that display
format themselves. Unknown or changed backend formats produce explicit
low-confidence warnings instead of silently appearing as an empty graph result.
The default Markdown report includes these warnings and raises an
graph-analysis-incomplete signal so a failed lookup cannot appear as a clean,
low-risk review.
Changed hunks are mapped to the nearest preceding symbol in the current CodeGraph index. Deleted files and symbols can be absent from that index, so deletion findings are explicitly treated as uncertain. A future base-revision index can remove that limitation.
Library use
import { CodeIntelClient } from '@team-harness/code-intel';
const codeIntel = new CodeIntelClient({ projectPath: process.cwd() });
try {
const context = await codeIntel.explore('AuthService login');
const report = await codeIntel.review();
} finally {
await codeIntel.close();
}CodeIntelClient is the public library boundary. Its explore() and review()
methods share one persistent CodeGraph connection; the bridge and analyzer are
internal implementation details.
Development
npm install
npm run typecheck
npm test
npm run buildUpstream
This project is powered by @colbymchenry/codegraph, licensed under MIT. code-intel is an independent Team Harness integration and is not an official CodeGraph package.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceMCP server that builds a deterministic, source-traceable knowledge index of any codebase, enabling glossary lookup, code graphs, and exact-token search with every fact linked to its source file and line.241MIT
- Alicense-qualityBmaintenancePrivate, local-first code intelligence MCP server that builds a static graph of repositories and exposes search, architecture, impact analysis, and review tools via MCP.MIT
- Alicense-qualityCmaintenanceA persistent code-intelligence MCP server that builds a queryable knowledge graph of your codebase, enabling AI assistants to perform cross-file structural reasoning, dependency analysis, and blast radius detection.6MIT
- Flicense-qualityBmaintenanceRemote MCP server for code graph analysis, offering tools for repo queries, symbol impact paths, branch context packing, and dependency hotspot reporting.
Related MCP Connectors
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/team-harness/code-intel'
If you have feedback or need assistance with the MCP directory API, please join our Discord server