code-dev-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-dev-intelshow me the file outline for src/utils.ts"
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-dev-intel
code-dev-intel is an npm package that exposes a self-hosted MCP and HTTP server for TypeScript code intelligence.
It gives AI agents and IDE assistants fast access to symbol definitions, references, implementations, file outlines, dependency graphs, structural search, text search, and duplicate detection without forcing the model to scan your whole repository every time.
What The Package Brings To A Project
Faster code navigation for AI agents in medium and large TypeScript repositories.
A local-first MCP server you can plug into IDEs, coding agents, and CLI assistants.
A stable automation entrypoint with
ensure, so scripts and agents can start the server only when needed.An HTTP API for tools and health checks, plus MCP JSON-RPC for clients that speak MCP directly.
A self-hosted alternative to remote code indexing for teams that want data to stay local.
Benchmark: does it actually change agent behavior?
On a large production TypeScript repository, with fresh-context agents free to choose any tool:
100% spontaneous adoption (11/11). Every agent reached for
code-intelover Grep/Read when it was available — with no prompt forcing.Token savings that scale with task difficulty: near-parity on simple grep-friendly lookups, +13% to +34% (mean +27%) on debugging traces, large-file comprehension, and ambiguous-name searches — the tasks that dominate real work.
Type-checked precision: semantic results carry no grep false positives (the grep-only baseline had to manually enumerate and exclude ambiguous-name matches).
Full methodology and per-task numbers: docs/benchmarks/2026-06-07-agent-token-economy.md.
Good Use Cases
Refactoring a symbol safely across many files.
Reviewing a PR and tracing impact before commenting.
Understanding a codebase entrypoint without opening dozens of files.
Replacing repeated grep chains with semantic navigation.
Running local automation in CI, hooks, or agent workflows.
What The Package Exposes
Tools
Semantic (type-aware — no native grep/read equivalent):
findDefinitions— go-to-definition for a symbolfindReferences— every real usage, resolved by the type-checker (no comment/string/same-name false positives)findImplementations— implementations of an interface, abstract class, or portfindSymbol— find a symbol by name alone (no file path needed)findCallers/findCallees— incoming / outgoing call hierarchygetSymbolContent— the source of one symbol, not the whole filegetFileOutline— a file's structure without reading itdependencyGraph— a file's import graphimpactedFiles— blast radius of a set of changed files
Search & analysis:
searchStruct— AST-shaped structural search (ast-grep)searchText— plain text / regex search (ripgrep)findDuplicates— copy-paste / clone detection
Protocols
MCP over stdio
MCP over JSON-RPC via
POST /mcpPlain HTTP tool endpoints under
/tools/*Health and discovery endpoints via
/healthand/tools/describe
Installation
pnpm add -D code-dev-intel.tsRequirements:
Node.js
>=18pnpm
>=10A TypeScript or JavaScript repository where semantic navigation is useful
Quick Start
Recommended bootstrap command
pnpm exec code-dev-intel ensure --workspaceRoot=. --port=4545This is the recommended command for agents, scripts, hooks, and CI because it:
starts the service only if needed
waits until the server is healthy
exits successfully when the server is already running
Other CLI commands
pnpm exec code-dev-intel start --workspaceRoot=. --port=4545
pnpm exec code-dev-intel status --port=4545
pnpm exec code-dev-intel ensure --workspaceRoot=. --port=4545 --timeout=15000 --verboseHow To Use It In A Project
HTTP example
curl -X POST http://127.0.0.1:4545/tools/findReferences \
-H "Content-Type: application/json" \
-d '{
"workspaceRoot": "/absolute/path/to/project",
"filePath": "src/feature/use-case.ts",
"symbol": "runFeature"
}'MCP JSON-RPC example
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "getFileOutline",
"arguments": {
"workspaceRoot": "/absolute/path/to/project",
"filePath": "src/feature/use-case.ts",
"options": {
"symbolKinds": ["function", "class"]
}
}
}
}Typical agent workflow
Call
getFileOutlineto understand file structure.Call
getSymbolContentfor the exact function, class, or type you need.Call
findReferencesorfindDefinitionsto trace impact.Use
dependencyGraphwhen imports and module flow matter.Use
searchStructfor AST-shaped code patterns.Fall back to
searchTextfor literal strings, comments, or error messages.
Tool Guide
findDefinitions
Use when you know the symbol name and want the canonical declaration site.
findReferences
Use when you want call sites, usages, and cross-file impact.
findImplementations
Use for interfaces, abstract contracts, and implementation discovery.
getFileOutline
Use before reading a large file. This is the fastest way to understand the file structure.
Options:
symbolKinds: string[]— keep only the listed kinds (e.g.["function", "class"]).summaryOnly: boolean(defaultfalse) — omit thesignaturefield for each symbol. Use this on large schema files to keep the response under MCP token limits.
getSymbolContent
Use when you want the full declaration body of one symbol instead of the entire file.
Options:
maxLines: number(default unlimited) — truncate the returnedcontentafter N lines. The result includestruncated: booleanand (when truncated)truncatedAtLine: number.
dependencyGraph
Use when you need import relationships and transitive module dependencies.
searchStruct
Use when you need structural matching with ast-grep patterns instead of plain text.
Example:
{
"workspaceRoot": "/absolute/path/to/project",
"query": "export interface $NAME { $$$BODY }",
"options": {
"language": "ts"
}
}searchText
Use for literal strings, comments, log messages, config keys, or partial identifiers.
The ripgrep binary is bundled via @vscode/ripgrep, so the tool works out of the box on Windows, macOS, and Linux without rg on the PATH. Override with CODE_INTEL_RIPGREP_PATH if needed.
The result includes engine: 'ripgrep' | 'node-fallback' and (when falling back) engineFallbackReason: string so clients can debug why ripgrep was not used.
findDefinitions / findReferences / findImplementations filtering
By default the resolver hides matches inside node_modules/** and *.d.ts ambient files. Opt back in with options:
includeNodeModules: boolean(defaultfalse)includeDeclarationFiles: boolean(defaultfalse)
findDuplicates
Use when you want code duplication clusters and optional markdown reporting.
Prompting Recommendations For AI Agents
As of v0.3.0 the server describes itself: every tool ships a "use this instead of grep/read, and why" description, and the MCP initialize response returns an instructions block that routes symbol-level intents to the right tool. Clients that surface instructions (e.g. recent Claude Code) inject it into the model's context automatically — so you usually need no prompt forcing at all. The benchmark above measured 100% spontaneous adoption with zero consumer-side instructions.
For clients that do not surface server instructions, a short system-prompt snippet still helps. Keep it minimal — long MCP instructions are easy for clients to truncate, and the per-tool descriptions already carry the detail.
Minimal system prompt snippet
Use code-dev-intel for non-trivial TypeScript exploration before falling back to grep or full-file reads.
Prefer:
- getFileOutline for large files
- getSymbolContent for targeted reads
- findDefinitions/findReferences for symbol tracing
- dependencyGraph for module flow
- searchStruct for AST-shaped patterns
- searchText only for literal text queriesReview-focused prompt snippet
Before reviewing TypeScript changes, use code-dev-intel to trace definitions, references, implementations, and dependency impact.
Do not rely only on text search when checking refactors or behavioral regressions.Refactor-focused prompt snippet
When planning a refactor, first inspect file outlines and symbol content, then trace references and dependency impact.
Use structural search only for syntax-shaped patterns and plain text search only for literals.Practical guidance for prompt authors
Tell the model that this server is for TypeScript semantic navigation.
State when it should be preferred over grep.
Mention the high-value tools by name so the model knows what to search for.
Keep the instructions short and concrete. Long MCP instructions are easier for clients to truncate.
IDE And Agent Configuration
The package can be exposed either as:
a local stdio MCP server
a local HTTP server with
/mcpand/tools/*
Configuration notes (all clients)
--workspaceRoot=.is passed once at startup. Do not passworkspaceRootin individual tool calls — the startup value is applied automatically. (For VS Code, use${workspaceFolder}.)Deferred tools: some clients load MCP tool schemas on demand. If the
mcp__code-intel__*tools aren't visible yet, have the agent load them first (in Claude Code, viaToolSearch); the server'sinitialize.instructionsalso prompt their use.First call is slow, the rest are fast: the first semantic call builds the TypeScript program (a few seconds on a large repo), then it's cached for the session.
Reconnect after upgrading: when you change the version or config, reconnect/restart the MCP server so the client reloads the tools and instructions.
VS Code / GitHub Copilot
Create .vscode/mcp.json:
{
"servers": {
"codeIntel": {
"type": "stdio",
"command": "pnpm",
"args": [
"exec",
"code-dev-intel",
"--stdio",
"--workspaceRoot=${workspaceFolder}"
]
}
}
}Useful VS Code commands:
MCP: List ServersMCP: Reset Cached ToolsMCP: Reset TrustMCP: Open Workspace Folder MCP Configuration
Notes:
VS Code expects
.vscode/mcp.jsonwith top-levelservers.If tools do not appear after an update, reset cached tools and reload the window.
Claude Code
Project-shared config in .mcp.json:
{
"mcpServers": {
"code-intel": {
"command": "pnpm",
"args": [
"exec",
"code-dev-intel",
"--stdio",
"--workspaceRoot=."
]
}
}
}CLI setup example:
claude mcp add --transport stdio --scope project code-intel -- \
pnpm exec code-dev-intel --stdio --workspaceRoot=.On native Windows, Claude Code may require cmd /c for npx. With pnpm, the direct command usually remains cleaner.
Useful commands:
claude mcp listclaude mcp get code-intel/mcp
Windsurf
Add the server in ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"code-intel": {
"command": "pnpm",
"args": [
"exec",
"code-dev-intel",
"--stdio",
"--workspaceRoot=."
]
}
}
}Windsurf also supports remote HTTP MCP configuration if you prefer starting the server separately and pointing the client to /mcp.
Generic MCP clients
Many clients and IDE agents can consume the same server even if their exact UI differs.
Use this stdio shape when the client expects a command-based MCP server:
{
"mcpServers": {
"code-intel": {
"command": "pnpm",
"args": [
"exec",
"code-dev-intel",
"--stdio",
"--workspaceRoot=."
]
}
}
}Use this HTTP shape when the client expects a remote MCP endpoint:
{
"mcpServers": {
"code-intel": {
"type": "http",
"url": "http://127.0.0.1:4545/mcp"
}
}
}This generic approach usually applies to MCP-capable assistants and IDEs such as Cursor-like, Cline-like, Roo-like, or custom internal agent shells that can launch stdio or HTTP MCP servers.
Non-MCP automation
If your tool does not support MCP yet, start the server with ensure and call the HTTP endpoints directly.
Examples:
internal scripts
CI jobs
review bots
custom agent frameworks
editor plugins that can call HTTP but not MCP
Recommended Operating Modes
For local development
pnpm exec code-dev-intel ensure --workspaceRoot=. --port=4545For CI or hooks
pnpm exec code-dev-intel ensure --workspaceRoot=. --port=4545 --timeout=15000For containerized local isolation
pnpm docker:core:up
curl http://127.0.0.1:4545/healthSecurity Notes
The default host is
127.0.0.1.If you bind to a non-local host, configure
CODE_INTEL_API_KEY.All user-supplied paths are normalized and validated against workspace boundaries.
The server is designed for local-first use. If you expose it remotely, put it behind your normal network controls.
Package Validation
Before publishing a new version, these commands are the main confidence checks:
pnpm build
pnpm test:all
pnpm mcp:self-test
pnpm release:smokerelease:smoke is the most useful final check for the npm package because it validates the published package shape from a temporary consumer project.
Contributor Docs
If you are working on the package itself rather than consuming it, start here:
docs/ai/00-context.mdservices/code-intel-mcp/README.mdservices/indexer/README.mddocker/README.md
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.
Latest Blog Posts
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/jordanvalnet/code-dev-intel.ts'
If you have feedback or need assistance with the MCP directory API, please join our Discord server