DD

drpfau/dbuildmcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

10 stars 5 forks 품질 56 트렌드 22MIT

Delphi Projects에 대한 MSBUILD 호출을위한 MCP

개요

MCP (모델 콘텍스트 프로토콜) 서버 구축 Delphi 프로젝트 MSBuild. dbuildmcp는 MCP 호환 HTTP API를 제공함으로써 Delphi 프로젝트를 컴파일하는 AI 조수가 가능합니다. 정확한 RAD Studio 빌드 환경을 자동으로 설정하고 MSBuild를 실행하고 완전한 빌드 출력을 반환합니다. - MCP 프로토콜을 통해 Delphi 프로젝트 (.dproj) 빌드 - 자동 RAD 스튜디오 환경 설정 - Win32 : bin\rsvars.bat를 사용하여 - Win64 : bin64\rsvars64.bat - Win32 및 Win64 플랫폼에 대한 지원 - 디버그 및 릴리스 구성 - 빌드 (전체 재건축) 또는 빌드 유형 - 구성 가능한 MSBuild 동사성 (quiet, 정상, 상세한) - Concise, 토큰 - 원시적 인 오류 (전체 재건축) - 원시적 인 오류 (전체 재건축) - RAD Studio 13 (Delphi 37.0) - https://github.com/GDKsoftware/Delphi-MCP-Server] (다른 통화가 있습니다) 1. 저장소를 복제 2.

개요(AI 번역)

MCP (모델 콘텍스트 프로토콜) 서버 구축 Delphi 프로젝트 MSBuild.

개요

dbuildmcp는 MCP 호환 HTTP API를 제공함으로써 Delphi 프로젝트를 컴파일하는 AI 조수가 가능합니다. 정확한 RAD Studio 빌드 환경을 자동으로 설정하고 MSBuild를 실행하고 완전한 빌드 출력을 반환합니다.

특징

  • MCP 프로토콜을 통해 Delphi 프로젝트 (.dproj) 구축
  • 자동 RAD Studio 환경 설정
  • Win32: 사용 bin\rsvars.bat
  • Win64: 사용 bin64\rsvars64.bat
  • Win32 및 Win64 플랫폼 지원
  • 디버그 및 릴리즈 구성
  • Build (전체 재건축) 또는 Make (incremental) 빌드 유형
  • 구성 가능한 MSBuild 동사성 (quiet, 정상, 상세)
  • Concise, 토큰 효율적인 출력 : 한 줄의 결과 헤더, 구성 오류 캡과 오류 만, 힌트 / 워닝 및 총 라인 천장
  • 구성 가능한 빌드 타임 아웃 (기본 10 분)

요구 사항

설치

  1. 저장소를 복제
  2. RAD Studio에서 [T3]를 엽니다.
  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 가이드부터 시작하세요 →