
Delphi Code
io.github.markdorof由 GitHub 账号 markdorof 发布v0.3.4更新于 Nov 1, 2026
Let coding agents browse code across all your local, GitHub and Bitbucket repos, offline
概览
本地 MCP 服务器,为本地、GitHub 与 Bitbucket 仓库建立索引,让编码助手离线按语义搜索代码。
- 可以做什么
- 用自然语言查询一次搜索所有已索引仓库,可按语言、路径或结果数量过滤。
- 跟踪并索引本地路径或远程 GitHub、Bitbucket 仓库,可指定分支或标签,并只对变更内容重新同步。
- 列出已跟踪项目、查看某个项目的索引、停止跟踪某个项目。
- 打开本地网页界面进行搜索、管理项目和检查安装,并对模型与存储做诊断。
- 适用场景
- 适合编码助手需要跨多个仓库定位相关文件、且文件中并不包含问题原词的情况,也适合要求代码不离开本机、不依赖云服务的场景。
- 运行要求
- 以本地 stdio 进程运行,通过 uvx 或 uv 工具安装;需 macOS 14 及以上、Apple 芯片(Linux 未测试,不支持 Windows)。初始化时需联网下载一次本地嵌入模型。访问私有远程仓库可选提供 GITHUB_TOKEN 或 GH_TOKEN,以及 BITBUCKET_APP_PASSWORD 配合 BITBUCKET_EMAIL 或 BITBUCKET_USERNAME。仅 setup、add 和 sync 会联网。
安装
在 SourceWeft 中
- 打开 控制台中的 Delphi Code,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Delphi Code
Let your coding agent browse code across all your repositories. Index local projects and GitHub or Bitbucket repositories, then ask "where does the backend handle the refund the web app requests?" and get the right files from every repository at once, even when no file contains those words.
- Private: your code never leaves your machine. Indexing and search run offline with a local model; no account, cloud provider, or background daemon.
- Fast: the MCP server keeps the model loaded, so repeated searches are near-instant. No GPU needed.
- Works with your agents: Claude Code, Claude Desktop, Codex, Cursor, VS Code, Gemini CLI, and OpenCode.
Install
The script installs uv if needed, then runs setup, which downloads the embedding model once and connects every agent it finds. Options go after sh -s --: --no-setup, --no-connect, --version VERSION. With uv already installed:
Requires macOS 14+ on Apple silicon (Linux is untested, Windows unsupported). delphi-code doctor checks the installation.
Use
Your agent calls the same search through MCP. After installing a new agent, run delphi-code connect. To connect one by hand:
For agents other than Claude Code and Codex, also copy the skill into the agent's skills folder so it knows when to search by meaning instead of grep.
Commands
-p takes a path or an indexed project's name. index and add skip .gitignored files and accept --ignore, --path, and --language. Every command takes --help, and most take --json for scripts. Only setup, add, and sync use the network.
Settings
Data lives in ~/Library/Application Support/delphi-code on macOS and ~/.local/share/delphi-code on Linux.
Upgrade and uninstall
Your model and indexes are kept. If a command fails with index_incompatible, delete the index directory it names and run sync again. See releases for changes.
If the install script installed uv and you don't need it, uninstall uv and its Python too.
License
Apache-2.0. See THIRD_PARTY_NOTICES.md. To contribute, see CONTRIBUTING.md.
来源:README.md,提交 fa3ce26
工具
0版本历史
3- v0.3.4最新Oct 18, 2026
- v0.3.3Oct 17, 2026
- v0.3.2Oct 17, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分