io.github.markdorof/delphi-code·Dev tools

Delphi Code

Offline semantic code search for coding agents, across local and GitHub/Bitbucket repos

Stars
0
Version
0.3.2
License
Apache-2.0
Review
Passed
Language
Python
Last commit
37m ago
Forks
0
Open issues
1
Registry update
Oct 17, 2026

Connect

pypi
Terminal
$claude mcp add delphi-code \  -- uvx delphi-code==0.3.2

Environment variables

Nothing to configure — it works as is.

Security review

Review passed

Reviewed 35m ago.

metadata
scanned
packages
1 checked

No findings.

Tools

This server runs on your machine, so its tool list is not fetched before install — the README below describes what it offers.

Delphi Code

Let your coding agent find code by what it does, not by what it's called. Ask "where are user passwords checked?" and get the right files back, 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.
  • Across repositories: index local projects or GitHub and Bitbucket repositories and search them all at once.
  • Works with your agents: Claude Code, Claude Desktop, Codex, Cursor, VS Code, Gemini CLI, and OpenCode.

Install

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:

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

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

Use

delphi-code add ~/src/api github.com/octo/tools   # track and index projects
delphi-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

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.

delphi-code disconnect
uv tool uninstall delphi-code
rm -rf ~/Library/Application\ Support/delphi-code
uv 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.

From the server's repository — third-party content, read it before running anything it suggests.

More in Dev tools

Listing from the official MCP Registry · repository facts from GitHub, 35m ago.