DD

daniel09fernandes/dmcpserver

效率工作流

本页由 AI 翻译,技术细节请以原文为准。 查看原文

37 stars 5 forks 质量 63 趋势 20MIT

Dinos MCP 服务器,创建你的代码,在 MCP Action 上,由 AI 执行

概览

用DMCPServer把你的Delphi代码转换成MCP服务器。 DMCPServer 是一款在 Delphi 开发的主控协议服务器。 安装通过 boss 安装命令完成: 或工具 > 选项 > 语言 > Delphi 语言 > 库 > 库路径 添加路径 “源代码” 本项目 在开发者中访问配置并编辑配置 在mcpServers节点中,连接你的MCPServer(STDIO) 📖 完整文档请点击这里阅读:DMCPServer-docs 🎬 在YouTube上观看,完整解释MCP DMCPServer - EN-US。

概述(AI 翻译)

Dinos MCPServer - 版本 1.0.1

用DMCPServer把你的Delphi代码转换成MCP服务器。

🎯 关于

DMCPServer 是一款在 Delphi 开发的主控协议服务器。

⚙️ 安装

安装时使用boss install命令:

或 工具>选项 > 语言 > 德尔斐 > 图书馆 > 图书馆路径 添加路径“源”此项目

⚙️ 协议

协议 支持
HTTP ✅
STDIO ✅

测试版德尔菲

版本 支持
> 10.x ✅
> 11.x ✅
> 12.x ✅
> 13.X ✅

🚀 注册你的行动

📋 创建并注册你的服务器信息

为MCP添加更多资源到LLM内存中

连接Claude AI

在开发者中访问配置并编辑配置

在mcpServers节点中,连接你的MCPServer(STDIO)

To HTTP:

流动

文献

📖 完整文档请点击这里阅读:DMCPServer-docs

🎬 在YouTube上观看DMCPServer - PT-BR

🎬 在YouTube上观看,完整解释MCP DMCPServer - EN-US。


本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Dinos MCPServer - Version 1.0.1

Transform your Delphi code into a MCP-server with DMCPServer.

🎯 About

DMCPServer is a master control protocol server developed in Delphi.

⚙️ Installation

Installation is done using the boss install command:

boss install github.com/Daniel09Fernandes/DMCPServer

or Tools > Options > Language > Delphi > Library > Library Path Add path ‘source’ this project

⚙️ Protocol

Protocol Supported
HTTP ✅
STDIO ✅

Tested Delphi version

Version Supported
> 10.x ✅
> 11.x ✅
> 12.x ✅
> 13.X ✅

🚀 Register your Action

var     
  lCallbackGetWeather : TMCPAction;
begin
 lCallbackGetWeather :=
       procedure(var Params: TJSONObject; out Result: TDMCPCallToolsResult; out Error: TDMCPCallToolsContent)
       var
         Location: string;
         EnableLog: Boolean;
         WeatherService: IWeatherService;
         WeatherData: string;
       begin
         try
            try
              // Extract parameters
              Location := Params.GetParam('location');
              EnableLog := Params.GetParam('EnableLog', trBool);

              // Validation of required parameters
              if Location.Trim = '' then
                raise Exception.Create('Location parameter is required');

              WeatherService := TMockWeatherService.Create;
              WeatherData := WeatherService.GetWeatherData(Location);

              if EnableLog then
                TDMCPServer.WriteToLog(Format('Weather data requested for %s', [Location]));

              // Assemble the result - There's no need to release it from memory; it's done automatically.
              Result := TDMCPCallToolsResult.Create;
              Result.Content.AddRange(TDMCPCallToolsContent.Create(ptText, WeatherData));

              Error := nil;
            finally
              Params.Free;
            end;
         except
            on E: Exception do
            begin
              // Handles exceptions. to MCPServers Defaults
              Error := TDMCPCallToolsContent.Create(ptText,
                'Weather service error: ' + E.Message);
              TDMCPServer.WriteToLog('Error in get_weather: ' + E.Message);
              Result := nil;
            end;
         end;
        end;
end;

📋 Create and register your server informations

var     
   lDMCP: IDMCPServerRegister;
begin
   lDMCP := TDMCPServerRegister.New
      .SetLogs(True);  //Set Logs Request

    lDMCP
在 GitHub 查看完整 README

安装

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

Open the repository installation guide 新手?先看 mcpskill.org 教程 →