# daofy [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/chinawsb/daofy  
**GitHub Stars:** 111  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/daofy

## Description
Daofy for Delphi — MCP Server that compiles Delphi projects and queries knowledge base for AI assistants.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "daofy": {
    "command": "uvx",
    "args": ["daofy-for-delphi"]
  }
}
```

## Documentation

## What daofy does

daofy exposes Delphi and Lazarus/Free Pascal development operations through the Model Context Protocol. Delphi support covers whole-project builds for `.dproj` and `.dpr` projects, single-unit compilation, compiler configuration, environment checks, project auditing, AST and runtime inspection, file editing, formatting, backups, DFM conversion, component management, and package operations. Lazarus/FPC support includes `.lpi` and `.lpr` project compilation, project metadata inspection, source search, and file operations.

Its knowledge-base features index Delphi source, Lazarus and FPC source, project code, third-party libraries, examples, and documentation. Searches can cover classes, functions, code, API references, examples, and general documents. Coding-rule queries provide default or project-specific Delphi and Lazarus guidance. Delphi automation can drive GUI or console programs with scripted actions, assertions, screenshots, waits, and RTTI property access.

## How it works

The server is implemented in Python and communicates with MCP-compatible AI clients. On Windows, it looks for installed Delphi compilers through the registry, PATH, and common installation directories. Lazarus/FPC operations use `lazbuild.exe` when Lazarus is installed. Delphi project builds prioritize MSBuild and can process dependencies, build events, search paths, conditional symbols, optimization, debug information, and warning settings.

Knowledge bases are stored under the project’s `data/` directory, with project-specific indexes in `<project>/.delphi-kb/`. Source changes can trigger incremental updates. Vector indexes use ZVec, while the experience store uses SQLite. Background operations such as knowledge-base construction can be submitted asynchronously and monitored with `async_task`.

## Setup and configuration

Install the packaged server with pip:

```bash
pip install daofy-for-delphi
```

A source installation uses a Git checkout, a Python virtual environment, and the dependencies in `requirements.txt`. The runtime requires Python 3.10 through 3.14, Windows, and Git. Delphi compilation requires a Delphi compiler; Lazarus compilation additionally requires Lazarus/FPC. Seven-Zip is optional and is used to extract CHM help files.

Compiler settings can be detected automatically or managed in `config/compilers.json`. Knowledge-base configuration files are generated when indexes are first built. Optional document formats require additional packages: `python-docx` for DOCX, a legacy Word converter for DOC, PyMuPDF or pdfplumber for PDF, and BeautifulSoup for EPUB.

## Tools and capabilities

- `delphi_project` for compilation, project configuration, creation, auditing, AST inspection, and runtime checks.
- `delphi_kb` and `lazarus_kb` for source, documentation, class, function, and example searches, plus index construction.
- `delphi_file`, `lazarus_file`, `manage_component`, and `structured_content` for source and structured-file operations.
- `automate_delphi` for scripted GUI and console testing, including process reuse with `keep_alive`.
- `delphi_rtti` for discovering and calling runtime capabilities exposed by Delphi applications.
- `code_hosting`, `package`, `check_environment`, `tool_help`, `async_task`, `ocr`, `experience`, `daofy_update`, and `generate_copyright` for repository, environment, background-task, image, memory, update, and document workflows.

## Limitations and notes

Delphi and Lazarus compilation depend on locally installed Windows toolchains. CHM knowledge-base construction requires Seven-Zip. Example indexes are intended for full-text search rather than structured class or function analysis. The server stores knowledge-base data locally in project and `data/` directories, so indexing can take several minutes for large documentation or source collections.

_Full upstream README: https://allmcps.com/mcp/daofy/readme_

