Daofy for Delphi — MCP Server that compiles Delphi projects and queries knowledge base for AI assistants.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"daofy": {
"env": {
"PYTHONUTF8": "1",
"PYTHONIOENCODING": "utf-8",
"PYTHONUNBUFFERED": "1"
},
"command": "daofy"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
一个为 AI 助手(如 Claude Desktop、CodeArts Agent 等)提供 Delphi 工程编译能力和知识库查询功能的 MCP Server。如果您觉得有用,请不要吝啬您的 Star! ⭐
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'daofy-for-delphi' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked daofy-for-delphi against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml / education
Dynamic problem-solving through sequential thought chains
Workspace template + MCP server for Claude Code, Codex CLI, Cursor & Windsurf. Multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable AI assistant.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
MCP Security Weekly
Get CVE alerts and security updates for Daofy and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
一个为 AI 助手(如 Claude Desktop、CodeArts Agent 等)提供 Delphi 工程编译能力和知识库查询功能的 MCP Server。如果您觉得有用,请不要吝啬您的 Star! ⭐
Daofy(道飞)——为创意插上翅膀。
Daofy for Delphi 是一个基于 Model Context Protocol (MCP) 的 MCP Server,它允许 AI 助手直接编译 Delphi 项目并查询 Delphi 知识库。通过这个工具,您可以在与 AI 助手的对话中直接编译 Delphi 工程、查询 API 文档、搜索代码示例,无需手动切换到 IDE 或命令行。
主要优势:
html2text, requests (已在 requirements.txt)python-docx (Word .docx 支持), antiword/catdoc (旧版 Word .doc 支持), PyMuPDF (PDF 支持,推荐) 或 pdfplumber (PDF 支持,备选), beautifulsoup4 (EPUB 支持)用户首次使用或需要重建 Delphi API 文档时,调用 delphi_kb 工具构建文档知识库:
delphi_kb(
action="build",
kb_type="document",
async_mode=true
)
说明:
directory="C:\Program Files (x86)\Embarcadero\Studio\<版本>\Help\Doc"
extensions=[".chm"]:只扫描 CHM 文件,工具会自动解压并导入 HTML 文档async_mode=true:异步执行(耗时数分钟),提交后返回 task_id,通过 async_task(action=status, task_id=...) 轮询进度tools/7z/ 目录下免安装)构建 Delphi 官方 Demos/Samples + 三方库 Demos/Tests 的全文搜索知识库:
delphi_kb(
action="build",
kb_type="example"
)
搜索示例代码:
delphi_kb(
query="TThread.Queue",
kb_type="example"
)
示例知识库仅全文搜索,不解析结构化符号(类/函数),适合快速查找示例用法。
使用 kb_type="all" 时默认不搜索示例知识库,需显式指定 kb_type="example"。
| 工具名称 | 功能描述 |
|---|---|
delphi_project | Delphi 项目全生命周期管理:编译(compile)/配置(info/set/create)/审计(audit/ast/runtime) |
check_environment | 诊断编译环境、检测编译器、安装 pasfmt |
package | 组件包管理:安装(action=install) / 列出已安装(action=list) |
get_coding_rules | 获取 Delphi 编码规范,支持按章节分段获取 |
delphi_kb | 搜索代码/类/函数/文档/示例代码,查看统计或构建知识库 |
delphi_file | Delphi 文件专用操作:读/写(edits批量修改)/格式化/备份管理(编码检测+自动备份+DFM转换) |
manage_component | DFM 组件增/删/改/生成 + PAS 自动同步 |
code_hosting | 统一操作 Gitea/GitHub/GitLab/Gitee/GitCode 平台 + Git 本地操作 |
async_task | 管理后台任务(构建知识库等) |
tool_help | 获取任意工具的完整帮助文档(按需,含参数说明/示例/触发词) |
delphi_rtti | Delphi RTTI 桥接 — 通过 RTTI 发现和调用 Delphi 应用的运行时能力(三步法:discover/call/guide) |
experience | 经验记忆管理:保存/搜索/更新/合并/删除 AI 成功解决问题的做法;定期清理低价值条目(prune);模型加载后重建缺失向量(rebuild_embedding) |
所有知识库数据存储在项目根目录的 data/ 文件夹下:
| 知识库类型 | 存储路径 | 说明 |
|---|---|---|
| Delphi 源码知识库 | data/delphi-knowledge-base/ | Delphi 官方源码 (RTL |