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

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

本機 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 會連網。
安裝前請注意
安裝腳本會下載並執行程式碼,可能安裝 uv 並修改各助理的設定;connect 與 disconnect 會改動助理的設定檔。存取遠端儲存庫需使用 GITHUB_TOKEN、GH_TOKEN、BITBUCKET_APP_PASSWORD 等權杖,這些權杖可存取你的儲存庫。索引與模型資料保存在本機,佔用空間可能較大。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Delphi Code,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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.

[Claude Code, opened in one service, is asked whether an endpoint can be removed and finds its only caller in another repository]

  • 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

sh
curl -LsSf https://github.com/markdorof/delphi-code/releases/latest/download/install.sh | sh

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:

sh
uv tool install --managed-python --python 3.14 delphi-codedelphi-code setup

Requires macOS 14+ on Apple silicon (Linux is untested, Windows unsupported). delphi-code doctor checks the installation.

Use

sh
delphi-code add ~/src/api github.com/octo/tools   # track and index projectsdelphi-code search 'where are user passwords checked?'delphi-code ui                                     # or do it all in the browser

Your agent calls the same search through MCP. After installing a new agent, run delphi-code connect. To connect one by hand:

AgentSetup
Claude Codeclaude plugin marketplace add markdorof/delphi-code, then claude plugin install delphi-code@delphi-code
Codexcodex plugin marketplace add markdorof/delphi-code, then codex plugin add delphi-code@delphi-code
CursorAdd {"mcpServers": {"delphi-code": {"type": "stdio", "command": "delphi-code", "args": ["mcp"]}}} to ~/.cursor/mcp.json
VS Code (Copilot)code --add-mcp '{"name": "delphi-code", "command": "delphi-code", "args": ["mcp"]}'
Gemini CLIgemini mcp add delphi-code delphi-code mcp
OpenCodeAdd {"mcp": {"delphi-code": {"type": "local", "command": ["delphi-code", "mcp"]}}} to ~/.config/opencode/opencode.json

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

CommandWhat it does
setupDownloads the model (or imports it with --from DIR on an offline machine) and connects agents.
add [SOURCE ...]Tracks and indexes local paths or remote repositories (--ref picks a branch or tag). Without sources, picks repositories from your GitHub or Bitbucket account.
sync [PROJECT ...]Updates tracked projects, re-embedding only what changed.
index -p PATHIndexes a project once without tracking it.
search QUERYSearches every index, or one with -p. Filter with --language, --path, --limit.
list, status, remove NAMEShow tracked projects, show a project's index, stop tracking a project.
connect, disconnectAdd or remove Delphi Code in your agents' configs.
uiOpens a local web UI for search, projects, and setup checks.
doctorChecks the model and storage.
mcpServes the commands as MCP tools over stdio.

-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

VariablePurpose
GITHUB_TOKEN / GH_TOKENGitHub access for remote repositories (falls back to gh auth token, then git's credentials)
BITBUCKET_APP_PASSWORD with BITBUCKET_EMAIL or BITBUCKET_USERNAMEBitbucket access (an API token works)
DELPHI_CODE_MODELUse another local SentenceTransformers model instead of the default all-MiniLM-L6-v2
DELPHI_CODE_INDEX_ROOT, DELPHI_CODE_REGISTRY, DELPHI_CODE_LOG_FILEMove indexes, the tracked-project list, or the log
DELPHI_CODE_LOG_LEVELDEBUG, INFO, WARNING, ERROR, or OFF

Data lives in ~/Library/Application Support/delphi-code on macOS and ~/.local/share/delphi-code on Linux.

Upgrade and uninstall

sh
uv tool upgrade delphi-code

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.

sh
delphi-code disconnectuv tool uninstall delphi-coderm -rf ~/Library/Application\ Support/delphi-codeuv cache clean   # frees about 900 MB of downloaded packages

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

3
  1. v0.3.4最新Oct 18, 2026
  2. v0.3.3Oct 17, 2026
  3. v0.3.2Oct 17, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分