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": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Daofy for Delphi — MCP Server that compiles Delphi projects and queries knowledge base for AI assistants.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe 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
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
An open-source AI agent that brings the power of Gemini directly into your terminal.
Just a Better Chatbot. Powered by Agent & MCP & Workflows.
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 或命令行。
主要优势:
beautifulsoup4, html2text, lxml, requests (已在 requirements.txt)python-docx (Word .docx 支持), antiword/catdoc (旧版 Word .doc 支持), PyMuPDF (PDF 支持,推荐) 或 pdfplumber (PDF 支持,备选)用户首次使用或需要重建 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/ 目录下免安装)| 工具名称 | 功能描述 |
|---|---|
compile_project | 编译 Delphi 项目或检查 .pas 文件语法 |
check_environment | 诊断编译环境、检测编译器、安装 pasfmt |
install_package | 编译并安装 Delphi 组件包到 IDE |
list_installed_packages | 列出已安装到 IDE 的 Delphi 组件包 |
get_coding_rules | 获取 Delphi 编码规范,支持按章节分段获取 |
delphi_kb | 搜索代码/类/函数/文档,查看统计或构建知识库 |
file_tool | 统一文件操作:读/写/格式化/备份管理 |
manage_component | DFM 组件增/删/改/生成 + PAS 自动同步 |
code_hosting | 统一操作 Gitea/GitHub/GitLab/Gitee/GitCode 平台 + Git 本地操作 |
async_task | 管理后台任务(构建知识库等) |
所有知识库数据存储在项目根目录的 data/ 文件夹下:
| 知识库类型 | 存储路径 | 说明 |
|---|---|---|
| Delphi 源码知识库 | data/delphi-knowledge-base/ | Delphi 官方源码 (RTL/VCL/FMX 等) |
| 第三方库知识库 | data/thirdparty-knowledge-base/ | 第三方组件库源码 |
| 通用文档知识库 | data/document-knowledge-base/ | Delphi CHM 帮助文档 + 通用文档 |
| 项目知识库 | <项目目录>/.delphi-kb/ | 项目级知识库,存放在项目目录下 |
每个知识库目录包含:
documents.sqlite / knowledge_base.sqlite / knowledge.sqlite - SQLite 数据库文件config.json - 知识库配置文件每个知识库通过 config.json 文件进行配置,支持自定义数据库、源码路径、构建参数等。
| 知识库类型 | 配置位置 |
|---|---|
| Delphi 源码 | data/delphi-knowledge-base/config.json |
| 第三方库 | data/thirdparty-knowledge-base/config.json |
| 通用文档 | data/document-knowledge-base/config.json |
| 项目级 | <项目目录>/.delphi-kb/config.json |
配置文件在首次构建时自动生成,通常无需手动修改。
... [View full README on GitHub](https://github.com/chinawsb/daofy#readme)