PasNavigator MCP
PasNavigator MCP
MCP-Server für die semantische Navigation in Delphi/Pascal-Codebasen.
Das langfristige Design ist:
Delphi-basierter Indexer/Backend, der Ideen und Code aus
CodeComparerwiederverwendetdünne MCP-Server-Schicht, die Projekt-Indexierung und Symbol-Navigationswerkzeuge bereitstellt
kompakte Symbol-Antworten für KI-Agenten anstelle von rohem grep-Ausgabe
Aktueller Status
Dieses Repository enthält:
Python-MCP-Werkzeugoberfläche und Prozessadapter
Delphi-Konsolen-Backend mit eingebetteten CodeComparer/DelphiAST-Quellen unter
delphi/vendor/codecomparer/keine Laufzeitabhängigkeit von einem Live-CodeComparer-Repository-Checkout
DevExpress VCL ist weiterhin erforderlich, um den Delphi-Indexer zu kompilieren (DXVCL).
Der eingebettete Importer enthält einige lokale Änderungen, damit defines und
unit_scopes den Parser erreichen; sie sind in
delphi/vendor/codecomparer/NOTICE.txt aufgelistet.
Dokumentation:
Protokoll:
docs/delphi-backend-protocol.mdDelphi-Build:
delphi/README.md
Related MCP server: Delphi Compiler MCP
Werkzeuge
open_project,open_project_from_configproject_statusfind_symbol— sortiert, begrenzt, meldettotal_countget_symbolget_hierarchyget_descendantsget_source
Konfiguration
Beispiel-Projektkonfiguration:
{
"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/**"]
}Entwicklung
Erstellen Sie eine virtuelle Umgebung und installieren Sie das Paket im bearbeitbaren Modus:
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -e .Führen Sie den Server mit dem In-Memory-Stub aus:
python -m pasnavigator_mcpSprechen Sie mit dem Delphi-Konsolen-Backend (Stub-Build, ohne DevExpress):
$env:PASNAVIGATOR_BACKEND = "delphi"
$env:PASNAVIGATOR_DELPHI_EXE = "E:\Github_dm75\PasNavigator_MCP\delphi\bin\Win32\Debug\PasNavigatorBackend.exe"
python -m pasnavigator_mcpFühren Sie die Tests aus. Fälle, die das kompilierte Backend benötigen, überspringen sich selbst, wenn
PasNavigatorBackend.exe fehlt; der Rest läuft gegen einen Python-Fake-Prozess:
python -m unittest discover -s testsNächster Schritt
Die MCP-Schicht selbst (server.py, config.py) hat keine Testabdeckung, weil
die mcp-Abhängigkeit in dieser Umgebung nicht installierbar war.
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