
helixml/kodit 是从 https://github.com/helixml/kodit. 导入的 MCP 服务器候选
概览
helixml/kodit 是从 https://github.com/helixml/kodit. 导入的 MCP 服务器候选
概述(AI 翻译)
Kodit
一个代码和文档智能服务器,用于索引 Git 仓库,并通过 MCP 和 REST API 提供搜索。
AI编码助手在能访问你代码库中的真实示例时表现更好。Kodit会索引你的代码库,将源文件拆分成可搜索的片段,并提供给任何兼容MCP的助手。当助手需要写新代码时,它会先查询Kodit,并从你自己的项目中获取相关且最新的示例。
Kodit 也处理文档。PDF、Word 文件、PowerPoint 演示文稿和电子表格都被点阵化并索引,方便你在一个地方搜索代码和文档。
你会得到什么:
- 多种搜索策略,包括BM25关键词搜索、语义向量搜索、正规表达式grep和可视化文档搜索,每个都作为独立的MCP工具展示,帮助你的助理为每个查询选择合适的方法
- MCP 服务器,可与 Claude Code、Cursor、Cline、Kilo Code 及其他兼容 MCP 的助手配合使用
- REST API 用于程序访问搜索、仓库、丰富和索引状态
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Kodit
A code and document intelligence server that indexes Git repositories and provides search through MCP and REST APIs.
AI coding assistants work better when they have access to real examples from your codebase. Kodit indexes your repositories, splits source files into searchable snippets, and serves them to any MCP-compatible assistant. When your assistant needs to write new code, it queries Kodit first and gets back relevant, up-to-date examples drawn from your own projects.
Kodit also handles documents. PDFs, Word files, PowerPoint decks, and spreadsheets are rasterized and indexed so you can search across both code and documentation in one place.
What you get:
- Multiple search strategies including BM25 keyword search, semantic vector search, regex grep, and visual document search, each exposed as a separate MCP tool so your assistant picks the right approach for each query
- MCP server that works with Claude Code, Cursor, Cline, Kilo Code, and any other MCP-compatible assistant
- REST API for programmatic access to search, repositories, enrichments, and indexing status
- AI enrichments (optional) including architecture docs, API docs, database schema detection, cookbook examples, and commit summaries, all generated by an LLM
- Document intelligence with visual search across PDF pages, Office documents, and images using multimodal embeddings
- No external dependencies required for basic operation, with a built-in embedding model and SQLite storage
Quickstart
Docker (recommended)
docker run -p 8080:8080 registry.helix.ml/helix/kodit:latest
This starts Kodit with SQLite storage and a built-in embedding model. No API keys needed.
Pre-built binaries
Download a binary from the releases page, then:
chmod +x kodit
./kodit serve
Verify it works
Open the interactive API docs at http://localhost:8080/docs.
Or index a small repository and run a search:
# Index a repository
curl http://localhost:8080/api/v1/repositories \
-X POST -H "Content-Type: application/json" \
-d '{
"data": {
"type": "repository",
"attributes": {
"remote_uri": "https://gist.github.com/philwinder/7aa38185e20433c04c533f2b28f4e217.git"
}
}
}'
# Check indexing progress
curl http://localhost:8080/api/v1/repositories/1/status
# Search (once indexing is complete)
curl http://localhost:8080/api/v1/search \
安装
docker run -p 8080:8080 registry.helix.ml/helix/kodit:latest配置
{
"mcpServers": {
"kodit": {
"url": "http://localhost:8080/mcp"
}
}
}