PasNavigator MCP
Provides semantic navigation and symbol lookup for Delphi/Pascal codebases, offering tools to search for symbols, retrieve their definitions, explore hierarchies, and obtain source code.
PasNavigator MCP
MCP server for semantic navigation in Delphi/Pascal codebases.
The long-term design is:
Delphi-based indexer/backend that reuses ideas and code from
CodeComparerthin MCP server layer that exposes project indexing and symbol navigation tools
compact symbol-level responses for AI agents instead of raw grep output
Current status
This repository contains:
Python MCP tool surface and process adapter
Delphi console backend with vendored CodeComparer/DelphiAST sources under
delphi/vendor/codecomparer/no runtime dependency on a live CodeComparer repository checkout
DevExpress VCL is still required to compile the Delphi indexer (DXVCL).
The vendored importer carries a few local changes so that defines and
unit_scopes reach the parser; they are listed in
delphi/vendor/codecomparer/NOTICE.txt.
Docs:
protocol:
docs/delphi-backend-protocol.mdDelphi build:
delphi/README.md
Related MCP server: Delphi Compiler MCP
Tools
open_project,open_project_from_configproject_statusfind_symbol— ranked, capped, reportstotal_countget_symbolget_hierarchyget_descendantsget_source
Configuration
Example project configuration:
{
"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/**"]
}Development
Create a virtual environment and install the package in editable mode:
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -e .Run the server with the in-memory stub:
python -m pasnavigator_mcpTalk to the Delphi console backend (stub build, no DevExpress):
$env:PASNAVIGATOR_BACKEND = "delphi"
$env:PASNAVIGATOR_DELPHI_EXE = "E:\Github_dm75\PasNavigator_MCP\delphi\bin\Win32\Debug\PasNavigatorBackend.exe"
python -m pasnavigator_mcpRun the tests. Cases that need the compiled backend skip themselves when
PasNavigatorBackend.exe is missing; the rest run against a Python fake
process:
python -m unittest discover -s testsNext step
The MCP layer itself (server.py, config.py) has no test coverage, because
the mcp dependency has not been installable in this environment.
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.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
Change-impact intelligence for tracing dependencies, stale references and required updates.
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.14MIT
- 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.12 npm34GPL 3.0