
skybuckflying/delphi-lsp-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
人工知能エージェントがDelphi 11, 12, 13 LSP Server (DelphiLSP.exe <- 有効なDelphi/Embarcaderoライセンスが必要です !) に話せます
概要
チャットサーバープロトコル(LSP)機能をAIアシスタントや他のMCPクライアントに公開するモデルコンテキストプロトコル(MCP)サーバー。 - Embarcadero Delphi (DelphiLSP.exe) - 無料パスカル (pasls.exe) - MCPの指定:- LSPの指定: - JSON-RPC 2.0 を使用した MCP ↔ LSP ブリッジ - stdio ベースのトランスポート - 動的ワークスペースのディスカバリー - AI エージェントの Semantic コード インテリジェンス - Delphi と Free Pascal サポート - Debugger 同期サポート (--wait) - 自動プロジェクトディスカバリー (.dpr / .lpr) - LSP 再試行ロジックと自動ドキュメントオープン - 対応: - Claude デスクトップ - Gemini-CLI - Antigravity - その他の MCP クライアント - 定義に移動 - 参照を見つける - フーバー情報 - コード補完 - ワークスペースシンボル検索 - MCP仕様(2025-11-25) [[T0] - 言語サーバプロトコル仕様 3.17 [https://microsoft.github.io/language-server-protocol/specifications/lsp/3.]
概要(AI 翻訳)
チャットサーバープロトコル(LSP)機能をAIアシスタントや他のMCPクライアントに公開するモデルコンテキストプロトコル(MCP)サーバー。
両方を支えて下さい:
- Embarcadero デルファイ ([[T0]))
- フリーパスカル(
pasls.exe)
お問い合わせ
ターゲット仕様
- MCPの指定:** 2025-11-25**
- LSPの指定:3.17
お問い合わせ
##特徴
- JSON-RPC 2.0 を使用した MCP ↔ LSP ブリッジ
- stdioベースの輸送
- ダイナミックワークスペースの発見
- AIエージェントのSemanticコードインテリジェンス
- デルファイとフリーパスカルサポート
- デバッガー同期サポート(
--wait) - 自動プロジェクト検出(
.dpr)/[.lpr) - LSP再試行ロジックと自動ドキュメントオープン
- と互換性がある:
- クロードデスクトップ
- ジェミニCLI
- 反重力
- その他のMCP対応クライアント
対応業務
- 定義に行く
- 参照を見つける ・ホバー情報
- コードの完了
- ワークスペースシンボル検索
お問い合わせ
プロジェクト情報
| 製品情報 | 詳細情報 | お問い合わせ | 著者 | スカイバックフライング | | お問い合わせ | [email protected] | | バージョン | 0.08 | | リポジトリ | [https://github.com/SkybuckFlying/Delphi-LSP-MCP-Server |
仕様
- MCPの指定(2025-11-25) [https://modelcontextprotocol.]
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Delphi LSP MCP Server
A Model Context Protocol (MCP) server that exposes Language Server Protocol (LSP) capabilities to AI assistants and other MCP clients.
Supports both:
- Embarcadero Delphi (
DelphiLSP.exe) - Free Pascal (
pasls.exe)
Target Specifications
- MCP Specification: 2025-11-25
- LSP Specification: 3.17
Features
- MCP ↔ LSP bridge using JSON-RPC 2.0
- stdio-based transport
- Dynamic workspace discovery
- Semantic code intelligence for AI agents
- Delphi and Free Pascal support
- Debugger synchronization support (
--wait) - Automatic project discovery (
.dpr/.lpr) - LSP retry logic and auto-document-open
- Compatible with:
- Claude Desktop
- Gemini-CLI
- Antigravity
- Other MCP-compatible clients
Supported Operations
- Go to Definition
- Find References
- Hover Information
- Code Completion
- Workspace Symbol Search
Project Information
| Item | Details |
|---|---|
| Author | Skybuck Flying |
| Contact | [email protected] |
| Version | 0.08 |
| Repository | https://github.com/SkybuckFlying/Delphi-LSP-MCP-Server |
Specifications
-
MCP Specification (2025-11-25)
https://modelcontextprotocol.io/specification/2025-11-25 -
Language Server Protocol Specification 3.17
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/
Requirements
- Windows OS
- Delphi 13 (RAD Studio 13.0+) or Free Pascal
DelphiLSP.exeorpasls.exe
Building
Delphi IDE
- Open
DelphiLSPMCPServer.dpr - Select Project → Build
Command Line
dcc64 DelphiLSPMCPServer.dpr
Usage
Command Line Options
DelphiLSPMCPServer [options]
Options:
--lsp-path Path to LSP executable
--workspace Workspace root or file:// URI
--log-level debug, info, warning, error
--debug Enable verbose diagnostics
--wait Wait for debugger before startup
--help Show help
Dynamic Workspace Discovery
Starting with v0.05, the server can automatically determine the active workspace.
Detection Strategy
-
MCP
initializerequest- Reads
rootUriorrootPath
- Reads
-
Current Working Directory fallback
-
Automatic
.dpr/.lprproject detection
This allows AI agents to switch projects dynamically without restarting the server configuration.
AI Optimization
The repository includes:
DelphiLSP.md
This file instructs AI agents to prioritize semantic tools such as:
hovergoto_definition
instead of relying on text-based searches.
Recommended GEMINI.md Setup
# Project Context
Refer to DelphiLSP.md for semantic code analysis instructions.
Use LSP semantic tools instead of grep/text searching whenever possible.
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"delphi-lsp": {
"command": "C:\\Tools\\DelphiLSPMCPServer.exe",
"args": [
"--log-level",
"info",
"--lsp-path",
"G:\\Tools\\PascalLanguageServer\\pasls.exe"
]
}
}
}