Back to MCP directory
publicPublicdnsLocal runtime

delphi-compiler-mcp

Delphi编译器MCP服务器,通过Model Context Protocol提供Object Pascal项目的自动Win32/Win64调试/发布构建功能

article

README

🚀 Delphi编译器MCP

Delphi编译器MCP是一个轻量级的模型上下文协议(MCP)服务器,它封装了原生Delphi(RAD Studio)编译器。它支持用Object Pascal编写的Win32和Win64项目进行自动调试/发布构建。

🚀 快速开始

Delphi编译器MCP能轻松助力您完成Delphi项目的构建,以下为您介绍其安装和使用方法。

📦 安装指南

从PyPI安装

pip install delphi-compiler-mcp

从本地源码安装

git clone https://github.com/yourusername/delphi-compiler-mcp.git
pip install .

📚 详细文档

MCP配置示例

创建(或更新)您的MCP客户端配置,例如 .cursor/mcp.json

{
  "mcpServers": {
    "delphi-compiler": {
      "command": "delphi-compiler-mcp",
      "env": {
        "DELPHI_PATH": "C:\\Program Files (x86)\\Embarcadero\\Studio\\23.0"
      }
    }
  }
}

💻 使用示例

命令行界面(CLI)

# 默认编译(调试 / Win32)
mcp call delphi-compiler compile

# Win64的发布构建
mcp call delphi-compiler build --platform Win64

通过AI MCP客户端

如果您的MCP客户端支持自然语言命令(例如通过AI助手),只需说出以下内容即可:

  • «构建项目» — 运行发布构建
  • «编译项目» — 运行调试编译

客户端会将这些短语转换为上述相应的MCP调用。

📄 许可证

本项目采用MIT许可证。 Donate

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client