
delphi-blocks/mcpconnect
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
DelphiでMCPサーバーの構築
概要
MCP仕様バージョンのサポートは現在、機能/mcp-2026-07-28 ブランチで開発中です。 mcpconnect.delphiblocks.devでドキュメントに従ってください! モデルコンテキストプロトコル(MCP)は、大きな言語モデル(LLM)を外部ツールやデータに接続するためのオープンスタンダードです。 AIモデルは、新しい情報にアクセスし、アクションを実行し、ツールやデータベースと相互作用することにより、トレーニングデータを超えて行くことを可能にします。 MCP サーバーでは、ツール(コードを実行したり、副作用を生成したりするために使用される)を介して機能を提供できます。 * リソース(LM のコンテキストに情報を読み込むために使用される)を介してデータを露光する * プロンプト(LM 相互作用の再利用可能なテンプレート)による相互作用を定義します 軽量で堅牢なフレームワークで、Embarcadero Delphiの使用を劇的に簡素化します.
概要(AI 翻訳)
DelphiのModel Context Protocol (MCP) Server を構築するための強力で属性主導のフレームワーク
[!NOTE] MCP 仕様バージョンのサポート 2026-07-28* は現在 [
feature/mcp-2026-07-28] ブランチの開発中です。
はじめる
mcpconnect.delphiblocks.devでドキュメントに従ってください!
お問い合わせ
✨ MCPとは?
モデルコンテキストプロトコル(MCP)は、大きな言語モデル(LLM)を外部ツールやデータに接続するためのオープンスタンダードです。
AIモデルは、新しい情報にアクセスし、アクションを実行し、ツールやデータベースと相互作用することにより、トレーニングデータを超えて行くことを可能にします。
MCP サーバーで:
※Toolsで機能を提供(コードの実行や副作用の生成に使用)
※[Resourcesでデータを露光(LLMのコンテキストに情報を読み込むために使用)
- [
Promptsによるインタラクションを定義します。(LLMインタラクションの再利用可能なテンプレート)
⚡ ハイライト
Delphi MCP Connect (MCPConnect) は、Embarcadero Delphi を使用して、Model Context Protocol (MCP) Servers の作成を大幅に簡素化する軽量で堅牢なフレームワークです.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
🔌 MCPConnect: A Delphi MCP Server Library
A powerful, attribute-driven framework for building Model Context Protocol (MCP) Servers in Delphi.
[!NOTE] Support for the MCP specification version 2026-07-28 is currently under development in the
feature/mcp-2026-07-28branch.
Getting Started
Please follow the documentation at mcpconnect.delphiblocks.dev!
✨ What is MCP?
The Model Context Protocol (MCP) is an open standard for connecting large language models (LLMs) to external tools and data.
It enables AI models to go beyond their training data by accessing new information, performing actions, and interacting with tools and databases.
With MCP servers you can:
- Provide functionality through
Tools(used to execute code or otherwise produce a side effect) - Expose data through
Resources(used to load information into the LLM’s context) - Define interaction through
Prompts(reusable templates for LLM interactions)
⚡ Highlights
Delphi MCP Connect (MCPConnect) is a lightweight yet robust framework designed to drastically simplify the creation of Model Context Protocol (MCP) Servers using Embarcadero Delphi. By leveraging the power of Attributes, the framework allows developers to re-use existing business logic and standard Delphi classes, turning them into protocol-aware server components with minimal boilerplate code. MCPConnect handles the serialization, routing, and context management required for the server-side implementation of the MCP protocol.
- 🛡️Type safety - Define your tool arguments as native delphi class or records, have mcp-connect handle the rest.
- 🚛 Transports - Built-in HTTP (WebBroker, Indy) and STDIO transports for both stateless and persistent connections.
- 🗂️ Session Management - Built-in stateful session support across requests with automatic cleanup and custom session data.
- 🔐 OAuth 2.1 — Built-in support for OAuth 2.1 bearer-token authentication following the MCP Authorization specification, with pluggable token validators, JWKS key management, and a metadata proxy for providers that don’t fully advertise PKCE support.
- ⚡ Low boilerplate - mcp-connect generates all the MCP endpoints for you apart from your tools, prompts and resources.
💡 Usage Example
Creating an MCP-enabled service is as simple as adding the required attributes to a standard Delphi class and methods.
Register the class (the Model) and use the [McpTool] attribute for the methods (the Tools or actions).
unit Demo.HelpDeskService;
interface
uses
System.SysUtils,
MCPConnect.MCP.Attributes;
type
THelpDeskService = class
public
// This method is published as an MCP tool
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →