DD

drpfau/dbuildmcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

10 stars 5 forks 品質 56 トレンド 22MIT

デルファイプロジェクトのためのMSBUILDを呼び出すためのMCP

概要

MSBuildでDelphiプロジェクトを構築するためのMCP(Model Context Protocol)サーバー。 dbuildmcp は、AI アシスタントが、MCP 互換 HTTP API を提供することで、Delphi プロジェクトをコンパイルできるようにします。 正しい RAD Studio ビルド環境を自動的に設定し、MSBuild を実行し、完全なビルド出力を返します。 - MCP プロトコルを介して Delphi プロジェクト (.dproj) をビルド - 自動 RAD Studio 環境設定 - Win32: bin\rsvars.bat を使用する - Win64: bin64\rsvars64.bat を使用する - Win32 および Win64 プラットフォームのサポート - Debug およびリリース構成 - ビルド (完全な再ビルド) または Make (構成) ビルドタイプ - 設定可能な MSBuild の冗長性 (quiet, 通常, 詳細な) - Concise, トークン効率の出力結果: エラーを 1 つだけにまとめる - エラーを 1 設定 (設定) エラーと合計 10 エラー 設定) - RAD Studio 13 (Delphi 37.0) - [https://github.com/GDKsoftware/Delphi-MCP-Server] (追加の権限を持つ) 1. リポジトリ2をクローンする.

概要(AI 翻訳)

MSBuildでDelphiプロジェクトを構築するためのMCP(Model Context Protocol)サーバー。

概要

dbuildmcp は、AI アシスタントが、MCP 互換 HTTP API を提供することで、Delphi プロジェクトをコンパイルできるようにします。 正しい RAD Studio ビルド環境を自動的に設定し、MSBuild を実行し、完全なビルド出力を返します。

##特徴

  • MCPプロトコルによるDelphiプロジェクト(.dproj)の構築
  • 自動RAD Studio環境設定
  • Win32: [[T0] を使用します。
  • Win64: [bin64\rsvars64.bat を使用します。
  • Win32およびWin64プラットフォームのサポート
  • デバッグとリリースの設定
  • ビルド(完全再ビルド)または Make(増分)ビルドタイプ
  • 構成可能なMSBuildの動詞(quiet、normal、詳細)
  • 簡潔で、トークン効率の高い出力: 1 行の結果ヘッダー、設定可能なエラーキャップと失敗のエラーのみ、ヒント/警告と全線の天井
  • 設定可能なビルドタイムアウト(デフォルト10分)

要件

インストール

  1. リポジトリのクローン化
  2. RAD Studioで[Source/dbuildmcp.dprojを開く
  3. プロジェクトをコンパイルする
  4. 実行可能を実行

サーバはデフォルトでポート3001から始まります.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

dbuildmcp

MCP (Model Context Protocol) server for building Delphi projects with MSBuild.

Overview

dbuildmcp enables AI assistants to compile Delphi projects by providing an MCP-compatible HTTP API. It automatically sets up the correct RAD Studio build environment and executes MSBuild, returning the complete build output.

Features

  • Build Delphi projects (.dproj) via MCP protocol
  • Automatic RAD Studio environment setup
    • Win32: uses bin\rsvars.bat
    • Win64: uses bin64\rsvars64.bat
  • Support for Win32 and Win64 platforms
  • Debug and Release configurations
  • Build (full rebuild) or Make (incremental) build types
  • Configurable MSBuild verbosity (quiet, normal, detailed)
  • Concise, token-efficient output: a one-line result header, errors-only on failure with a configurable error cap, plus hint/warning and total-line ceilings
  • Configurable build timeout (default 10 minutes)

Requirements

Installation

  1. Clone the repository
  2. Open Source/dbuildmcp.dproj in RAD Studio
  3. Compile the project
  4. Run the executable

The server starts on port 3001 by default.

Usage

Starting the Server

Run the compiled executable. The server will start and display:

MCP Server running on port 3001

Press ENTER to stop...

Building a Project

Send a POST request to http://localhost:3001/mcp:

curl -X POST http://localhost:3001/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "msbuild",
      "arguments": {
        "projectFile": "C:/projects/MyApp/MyApp.dproj",
        "platform": "Win64",
        "config": "Release",
        "buildType": "Build",
        "verbosity": "normal"
      }
    }
  }'

Important: Use forward slashes (/) in file paths, not backslashes.

Parameters

Parameter Required Default Description
projectFile Yes - Path to .dproj file (use / not \)
buildType No Make Build (full) or Make (incremental)
platform No Win64 Win32 or Win64
config No Debug Debug or Release
verbosity No quiet quiet, normal, or detailed
showHintsAndWarnings No false Show hints/warnings in output (default: filtered)
graphviz No false Emit a .gv GraphViz unit-dependency file (passes --graphviz to dcc)
graphvizExclude No System.*;Vcl.*;Winapi.*;Data.*;Soap.*;Xml.* ;-separated unit-name wildcards to exclude (only used when graphviz=true)
graphvizOutDir No next to project Directory to collect the .gv file, use / not \ (only used when graphviz=true)
maxErrors No 10 (from settings.ini) Max error lines shown on a failed build. 1 = first error only, 0 = all
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →