code-index-mcp
A SQLite code index with MCP tools for search, call graphs and metadata, including 1C dumps from Designer and EDT
Install
irm https://raw.githubusercontent.com/Regsorm/code-index-mcp/main/install.ps1 | iexWindows PowerShell. Installs the 1C-enabled build into C:\tools\code-index and prints a .mcp.json block.
This is third-party code. Review the repository files before installing.
What it does
The server parses sources into syntax trees with tree-sitter ahead of time and stores functions, classes, calls and file text in SQLite. Instead of scanning files, the agent asks the index where a procedure body lives, who calls it, or which call chain links two functions. The bsl-indexer build adds tools for 1C configurations: object structure and profile, form handlers, event subscriptions, register writers, role rights, a data link graph and read-only queries over metadata tables. One process can serve several repositories, and file edits are picked up incrementally.
Who it is for. For 1C developers and teams with large codebases where brute-force code search is too expensive for an agent.
Good fit when
- The agent works with a large 1C configuration dump and burns tokens on search
- You need to see who writes to a register or what rights a role has on an object
- You want one code index shared across projects and sessions
Not a fit when
- The project is small and plain file search is enough
- You need the 1C tools but want the npm install: the npm package ships only the build without 1C
Example request
Use code-index to find everything that writes to the stock register and show the posting handlersLimitations
The 1C tools exist only in the bsl-indexer build from GitHub releases or a source build; the npm wrapper installs the version without 1C. The first index of a large configuration takes minutes plus disk space for the SQLite database. The server reads file dumps and does not connect to a live infobase.
How to disable. Remove the code-index block from .mcp.json or client settings, stop the background process and delete the install folder or run npm uninstall -g @regsorm/code-index-mcp.
MCP
- Transport
- stdio, http
- Authentication
- not required
| Environment variables | |
|---|---|
| CODE_INDEX_HOME | Install folder, set by the Windows install script |
Security check
- Runs a local binary and a background HTTP server
- Reads and indexes every file in the configured repositories
README in short
The README lists several install paths: a PowerShell script for Windows, Linux and macOS archives from releases, an npm package and a cargo build. The server connects to a client over HTTP as a shared background process or over stdio per session. It documents search, call graph and file tools plus a separate set for 1C configurations, with indexing benchmarks on standard configurations. MIT licensed.
FAQ
How does bsl-indexer differ from code-index?
bsl-indexer adds tools for 1C metadata, forms, rights and the data graph on top of the general search tools. The code-index build is for regular languages.
Does it handle EDT exports?
Yes, it parses both Designer XML and 1C:EDT .mdo files, plus Russian and English BSL syntax.
Related
A skills library that gives coding agents a development process: brainstorming, planning, TDD, subagents and code review
Skills for real engineers by Matt Pocock
Skills For Real Engineers
Small composable skills for engineering with agents: plan grilling, TDD, bug diagnosis, code review and architecture
GitHub toolkit for spec-driven development: the specify CLI adds agent commands and skills to a project, from principles to implementation
Reference MCP servers
Model Context Protocol servers
Official reference MCP servers: Filesystem, Fetch, Git, Memory, Sequential Thinking, Time and Everything