PasNavigator MCP
PasNavigator MCP
Delphi/Pascal コードベースのセマンティックナビゲーションのための MCP サーバー。
長期的な設計は次のとおりです。
CodeComparerのアイデアとコードを再利用する Delphi ベースのインデクサー/バックエンドプロジェクトのインデックス作成とシンボルナビゲーションツールを公開する薄い MCP サーバーレイヤー
生の grep 出力ではなく、AI エージェント向けのコンパクトなシンボルレベルの応答
現在のステータス
このリポジトリには以下が含まれています。
Python MCP ツールサーフェスとプロセスアダプター
delphi/vendor/codecomparer/の下にベンダーされた CodeComparer/DelphiAST ソースを含む Delphi コンソールバックエンドライブの CodeComparer リポジトリチェックアウトへの実行時依存はありません
Delphi インデクサーをコンパイルするには、DevExpress VCL がまだ必要です (DXVCL)。
ベンダーされたインポーターには、defines と unit_scopes がパーサーに到達するようにするためのローカルな変更がいくつか含まれています。それらは
delphi/vendor/codecomparer/NOTICE.txt にリストされています。
ドキュメント:
プロトコル:
docs/delphi-backend-protocol.mdDelphi ビルド:
delphi/README.md
Related MCP server: Delphi Compiler MCP
ツール
open_project,open_project_from_configproject_statusfind_symbol— ランク付けされ、上限付き、total_countを報告get_symbolget_hierarchyget_descendantsget_source
設定
プロジェクト設定の例:
{
"project_name": "MyApp",
"roots": [
"E:/Work/MyApp/Source",
"E:/Work/MyApp/Modules"
],
"search_paths": [
"E:/Libs/Common",
"C:/RAD/Studio/22.0/source/vcl"
],
"defines": ["MSWINDOWS", "VER350"],
"unit_scopes": ["System", "Vcl", "Winapi"],
"excludes": ["**/__history/**", "**/backup/**"]
}開発
仮想環境を作成し、パッケージを編集可能モードでインストールします:
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -e .インメモリスタブでサーバーを実行します:
python -m pasnavigator_mcpDelphi コンソールバックエンドと通信します (スタブビルド、DevExpress なし):
$env:PASNAVIGATOR_BACKEND = "delphi"
$env:PASNAVIGATOR_DELPHI_EXE = "E:\Github_dm75\PasNavigator_MCP\delphi\bin\Win32\Debug\PasNavigatorBackend.exe"
python -m pasnavigator_mcpテストを実行します。コンパイルされたバックエンドを必要とするケースは、PasNavigatorBackend.exe が存在しない場合にスキップされます。残りは Python フェイクプロセスに対して実行されます:
python -m unittest discover -s tests次のステップ
MCP レイヤー自体 (server.py, config.py) にはテストカバレッジがありません。これは、mcp 依存関係がこの環境でインストールできなかったためです。
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Ask a codebase what calls what: search, blast radius, paths between symbols, and diffs.
Search indexed code, trace dependencies, assess change impact, and recall repository memory.
Ask who calls a route, what a change breaks or who reads a field, across a system's repos.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across projects using AI embeddings to find code by meaning rather than just text matching. Provides fast intelligent search, symbol analysis, and code similarity detection with multi-language support.MIT
- AlicenseNot gradedqualityDmaintenanceEnables compilation of Delphi (RAD Studio) Object Pascal projects through natural language commands. Supports automatic Debug/Release builds for Win32 and Win64 platforms using the native Delphi compiler toolchain.13MIT
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.MIT
- AlicenseNot gradedqualityCmaintenanceEnables fast semantic code search and analysis across 15+ programming languages. Supports searching for functions and classes, tracing code usage, detecting syntax errors, and analyzing code quality and structure.61 npm33GPL 3.0