CC

consiliency/code-index-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

59 stars 11 forks 质量 83 趋势 33MIT

代码索引MCP服务器,为编码代理提供上下文。

概览

Code-Index-MCP 是一个快速的代码搜索索引。它通过模型上下文协议(“MCP”)接入 Claude Code 和其他 AI 助手,几乎可以即时查找代码库中的任何符号或文本——代码从未离开你的机器。 从入门指南开始。v1.4.0 稳定表面准备 — MCP 工具(search_code、symbol_lookup)是主要接口;提供 FastAPI 管理网关用于诊断。 : 本指南针对仓库拥有的1.4.0硬化发布候选版本。MCP STDIO仍然是主要的LLM表面,FastAPI仍是次要管理表面。2026年7月10日的碰撞检查未发现任何live index-it-mcp==1.4.0,因此本指南使用源代码和本地轮验证,而非声明已准备好的1.4.0表面已发布。 :1.4.0(回购自有的预备表面;截至2026年7月10日未发布):index-it-mcp:ghcr。

概述(AI 翻译)

让你的AI编码助手能够即时、精准地搜索整个代码库——让它在毫秒内找到所需的精确代码,而不是浪费时间和代币读取整个文件。

Code-Index-MCP 是一个快速、本地优先的代码搜索索引。它通过模型上下文协议(“MCP”)接入 Claude Code 和其他 AI 助手,几乎可以即时查找代码库中的任何符号或文本——你的代码从未离开你的机器。

新手 Code-Index-MCP 吗? 先从入门指南开始。

状态: v1.4.1 稳定表面准备 — MCP 工具(search_code、symbol_lookup)是主要接口;提供 FastAPI 管理网关用于诊断。

表面制备稳定状态:本指南针对1.4.1的选矿。 发布的1.4.0(2026-07-19)不包含这些v13修复。 MCP STDIO是主级;FastAPI仅为次级管理员。 参见发布准备和接受。 出版和车队推广仍是分开的接受门槛。

项目状态

版本:1.4.1(预备候选;发表时间单独跟踪) Python 发行版: index-it-mcp

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Code-Index-MCP

Give your AI coding assistant instant, precise search across your whole codebase — so it finds the exact code it needs in milliseconds instead of burning time and tokens reading whole files.

Code-Index-MCP is a fast, local-first search index for your code. It plugs into Claude Code and other AI assistants (through the Model Context Protocol, “MCP”) and lets them look up any symbol or search any text in your repository almost instantly — without your code ever leaving your machine.

New to Code-Index-MCP? Start with the Getting Started Guide.

Status: v1.4.1 stable surface prepared — MCP tools (search_code, symbol_lookup) are the primary interface; a FastAPI admin gateway is available for diagnostics.

Stable-surface prep status: This guide targets the 1.4.1 prepared candidate. Published 1.4.0 (2026-07-19) does not include these v13 repairs. MCP STDIO is primary; FastAPI is secondary admin only. See release preparation and acceptance. Publication and fleet rollout remain separate acceptance gates.

Project Status

Version: 1.4.1 (prepared candidate; publication tracked separately) Python distribution: index-it-mcp Container image: ghcr.io/consiliency/code-index-mcp Primary surface: MCP tools (search_code, symbol_lookup) via the STDIO runner when repository readiness is ready Secondary surface: FastAPI admin REST gateway for diagnostics and scripting — see “Admin REST Interface (secondary)” below Core features: local indexing, symbol/text search, registry-based language coverage; see docs/SUPPORT_MATRIX.md Optional features: semantic search (requires Voyage AI or a local vLLM endpoint), GitHub Artifacts index sync Performance: sub-100ms symbol lookup and sub-500ms search on indexed repos (benchmarked on this codebase; results vary by repo size and language mix) GA decision: see docs/validation/ga-final-decision.md; the current product decision is ship GA, while install-surface claims remain bounded by docs/status/public-package-identity.md. GA readiness contract: see docs/validation/ga-readiness-checklist.md for the frozen release boundary, support-tier labels, evidence ownership, and rollback expectations that apply before dispatch. Release dispatch: the historical governance record names this boundary GADISP; the current workflow implements it as a separate publish mode restricted to protected main.

在 GitHub 查看完整 README

安装

docker run -i --rm -v ${workspace}:/workspace ghcr.io/consiliency/code-index-mcp@sha256:<published-digest> index-it-mcp stdio
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "code-index-native": { "command": "python", "args": ["-m", "mcp_server.cli.stdio_runner"], "cwd": "${workspace}" } } }