Code Tree
БесплатноНе проверенAn MCP server that indexes source code into a local database and provides tools for querying code symbols, dependencies, and tree structure for JavaScript/TypeS
Описание
An MCP server that indexes source code into a local database and provides tools for querying code symbols, dependencies, and tree structure for JavaScript/TypeScript, Java, and Python.
README
An MCP server in Node.js + TypeScript that indexes source code into a local code-tree database for:
- JavaScript / TypeScript
- Java
- Python
The server stores symbols and dependencies per file and exposes MCP tools to query the indexed tree.
Features
- Incremental indexing based on file modification time
- Local persisted database in
.code-tree/code-tree.db - Symbol extraction for classes, interfaces, types, functions, and methods (language-dependent)
- Dependency extraction for imports/requires/packages
- MCP tools for indexing, listing tree data, symbol search, and dependency queries
Install
npm install
Build
npm run build
Run
npm run start
For development:
npm run dev
MCP Tools
The server exposes these tools:
index_codebase- Inputs:
workspacePath(required, absolute path)forceReindex(optional boolean)
- Inputs:
get_code_tree- Inputs:
workspacePath(required)pathPrefix(optional, workspace-relative prefix)limit(optional)
- Inputs:
get_file_symbols- Inputs:
workspacePath(required)filePath(required, workspace-relative)
- Inputs:
search_symbols- Inputs:
workspacePath(required)query(required)language(optional:javascript,typescript,java,python)nodeType(optional:module,class,interface,type,function,method)limit(optional)
- Inputs:
get_dependencies- Inputs:
workspacePath(required)filePath(optional)dependency(optional)limit(optional)
- Inputs:
Example MCP Server Configuration
Use your MCP client configuration format to register:
{
"mcpServers": {
"code-tree": {
"command": "node",
"args": ["/absolute/path/to/code-tree-mcp/dist/index.js"]
}
}
}
During active development, you can point to TS entry via tsx:
{
"mcpServers": {
"code-tree": {
"command": "npx",
"args": ["tsx", "/absolute/path/to/code-tree-mcp/src/index.ts"]
}
}
}
Notes
- This implementation uses robust regex-based parsing for broad compatibility.
- For deeper AST-level semantic analysis, the parser layer can be upgraded per language.
Установить Code Tree в Claude Desktop, Claude Code, Cursor
unyly install code-tree-mcpСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add code-tree-mcp -- npx -y github:markgregg/code-tree-mcpFAQ
Code Tree MCP бесплатный?
Да, Code Tree MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Code Tree?
Нет, Code Tree работает без API-ключей и переменных окружения.
Code Tree — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Code Tree в Claude Desktop, Claude Code или Cursor?
Открой Code Tree на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Code Tree with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
