lodesman
Lodesman is an MCP server that puts real language-server intelligence behind coding-agent tools, returning code rather than locations.
project_info – identify which repository the server is bound to and which languages it detected, without starting a language server.
find_symbol – locate a symbol by name anywhere in the project using compiler-accurate resolution, not text search.
document_symbols – outline a file: its types, methods, and fields with line numbers.
find_references – find real call/usage sites of a symbol, including dependency-injection registrations and interface implementations.
get_symbol_body – retrieve the full source of a single declaration without opening its file.
check – get compiler diagnostics for a file in milliseconds, useful after editing.
find_definition – jump to where a symbol is defined.
explain_symbol – see a symbol's resolved type, signature, documentation, and declaration line.
blast_radius – estimate what breaks if a symbol changes, following references to a chosen depth.
rename_symbol – rename a symbol everywhere via the compiler; dry-run by default, with optional
apply=true.find_implementations – find concrete implementations of an interface or abstract member.
Provides compiler-grade code intelligence for TypeScript projects, including finding symbols, definitions, references, implementations, renaming, and compiler diagnostics.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lodesman what uses RagQueryService?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lodesman
Compiler-grade code intelligence over MCP. Lodesman puts a real language server behind your coding agent's tools, so "who calls this?" is answered by the compiler rather than by a text search.
A lodesman is the pilot who comes aboard and steers a ship through waters the captain doesn't know. That is the job: an agent dropped into an unfamiliar repository, guided by something with local knowledge.
Status: alpha. The tool surface is still growing and not every tool is finished. If you hit something broken, an issue is genuinely useful — see Status.
Why
An agent's dominant cost is reading files into context, and a tool that returns
coordinates makes that worse, not better — Program.cs — L135 forces the
agent to read the file anyway.
Measured on a real C# repository, answering "what uses RagQueryService":
approach | cost |
read the three files involved | 1745 lines, ~17.7k tokens |
the 3 references, with ±6 lines of code each | ~36 lines, ~370 tokens |
~48× cheaper, and it is a better answer. So Lodesman's tools return code, not locations. A location is a promise of future cost; the code is the answer.
The second reason is correctness. An agent cannot tell a true "no results" from a broken query, so a plausible empty answer is the most dangerous thing a navigation tool can produce. Lodesman gates every answer on the language server actually being ready, and distinguishes "none" from "couldn't tell".
Related MCP server: Cordyceps Search
Install
Requires Python 3.11+.
uvx lodesman-mcp # run without installing
pipx install lodesman-mcp # or install itWire it into Claude Code
claude mcp add lodesman --scope user -- uvx lodesman-mcpOr, for any MCP client, in the config directly:
{
"mcpServers": {
"lodesman": {
"command": "uvx",
"args": ["lodesman-mcp"]
}
}
}With no arguments Lodesman binds to the working directory it is launched in, which is what MCP clients give it. One user-scoped entry therefore works across every project — no per-project configuration.
To point it somewhere explicitly:
lodesman-mcp /path/to/repoFirst run
The language server itself is downloaded on first use into ~/.solidlsp
(override with SOLIDLSP_HOME). For C# this pulls Roslyn from NuGet and can
take several minutes. Later runs reuse it and start in seconds.
The server process starts immediately; the language server behind it starts lazily on the first tool call and is then kept warm for the life of the process. That is the whole design: a cold Roslyn costs minutes, a warm one answers in milliseconds and tracks your edits incrementally.
Verify your install
python scripts/smoke_test.py /path/to/repo --language csharpThis starts a real language server against a real repository and proves it answers the two questions everything else is built on — what symbols are in this file, and who references this symbol — with cross-file results the compiler agrees with.
Tools
tool | what it answers |
| the repository's languages, projects, and where its source files are |
| where a name is declared, in every language; or the outline of a file or folder |
| what actually uses this, with the line of code and the method it is in |
| concrete implementations of an interface or abstract member |
| the full source of one declaration, without reading its file |
| what breaks if this symbol changes |
| rename everywhere, using the compiler's understanding |
| compiler diagnostics for one file, from the warm server |
| what type a variable, field or parameter actually is, as code |
| who calls this, or what it calls, to a chosen depth |
| what a type inherits and implements, and what derives from it |
| the server's quick fixes and refactorings — add a missing import, and so on |
| replace one declaration, without reading its file |
| add code before or after a declaration, e.g. a new method |
| delete a declaration, only if nothing uses it |
Symbol addresses
Every tool that acts on code takes one symbol: an address that must mean
exactly one declaration. Tools print symbols the same way, so an answer can be
copied into the next call.
address | means |
| the declaration named GetUser, in any language |
| GetUser inside Server |
| GetUser in that file |
| GetUser anywhere under backend/ (a folder or glob) |
| the second GetUser overload |
| the overload taking an int, where the server reports parameters |
| the declaration containing line 42 |
| whatever is at line 42, column 17: a local, a parameter, a call |
An address that matches several declarations is refused, and the refusal lists
each of them by an address that picks it. rename_symbol also takes a list,
for renaming, say, the backend and frontend halves of one concept together.
blast_radius and get_file_diagnostics are the two that exist specifically because agents
edit code they haven't read: one tells you the cost of a change before you make
it, the other verifies it afterwards without a full build.
rename_symbol is a dry run by default and lists every file it would touch.
Pass apply=true to write; it reports how many files actually changed on disk.
code_action works the same way: without a title it lists what is available;
with one it shows the diff; apply=true writes it.
Edit files however you like. Before every question the server checks the disk for files that changed since it last looked and tells the language server, so an agent's ordinary file edits are seen by the next query. Nothing has to be routed through this server to keep its answers current.
Roslyn has neither a call hierarchy nor a type hierarchy. For C#,
call_hierarchy answers incoming calls from references (which also include
non-call references) and declines outgoing calls; type_hierarchy finds
subtypes through textDocument/implementation and shows supertypes from the
declaration line. Each answer says which of these it is.
Tools depend on what the language server behind them implements. pyright, for
instance, does not serve textDocument/implementation, so find_implementations
reports that rather than pretending the answer is "none" — a distinction that
matters more to an agent than to a person.
Configuring it
One entry, for everything. One server serves one repository and every language that repository contains. A second repository needs a second entry; a second language does not.
claude mcp add lodesman --scope user -- uvx lodesman-mcpThat is the whole setup, and it works in every project, because with no path argument the server binds to whatever directory the client launches it in.
At startup it counts source files to work out which languages the repository actually contains, and starts a language server for each one individually, on the first question that needs it. A language server costs hundreds of megabytes and tens of seconds, so a repository containing four languages does not pay for four of them to answer one question about one.
Detection covers 51 languages — everything SolidLSP supports, minus the
experimental servers and the ones with no real symbol structure (markdown, JSON,
YAML). That is deliberately wider than the set verified in CI below: trying an
untested language is strictly better than refusing to start, which is what the
old hand-written list did to ordinary React projects written in .jsx.
project_info reports which languages were found and which of their servers are
running. A language listed but not running has simply not been asked about.
React, Vue, Svelte, Angular
React is not a separate thing to configure. .tsx and .jsx are TypeScript and
JavaScript with JSX syntax, and the TypeScript server handles them natively
alongside .ts, .js, .mts, .mjs and the rest — twelve extensions in total.
One server covers a mixed React codebase, and references resolve across the
boundary: a function declared in api.ts and used from both a .tsx and a
.jsx component comes back as one answer with all of them.
lodesman-mcp . # React, plain TS, or both — nothing special neededVue and Svelte are genuinely different, because .vue and .svelte are
single-file-component formats that are not valid TypeScript. They have their own
servers, and those servers are supersets rather than alternatives: the Vue
server handles .vue and .ts/.js, Svelte handles .svelte and .ts.
Detection knows this. SolidLSP ranks Vue and Svelte below TypeScript precisely
because they are supersets, so a .ts file counts towards TypeScript while a
.vue file counts towards Vue — and a project with both gets both servers,
without either stealing the other's files.
Neither is verified in CI yet, so treat them as untested rather than supported.
A repository with more than one language
Nothing to configure. A .NET solution with a React frontend, a Python service with a TypeScript dashboard, a Go backend with a Vue admin panel — one entry covers all of it.
solution/
Solution.sln
Web/ C# ─┐
Core/ C# ├─ one server process, one MCP entry
Infrastructure/ C# │
frontend/ React ─┘Measured on exactly that layout: project_info reports csharp, typescript,
questions about the C# projects are answered by Roslyn, and questions about the
frontend by tsserver — in the same process, each started only once something
asks for it.
Routing is by the question, not by guesswork:
A tool naming a file goes to the server for that file's language. Asking Roslyn about a
.tsfile would produce a confusing error rather than an answer, so it is never asked.A tool naming a symbol is tried against each language in turn, so a symbol is found whichever half of the repository it lives in. Cross-language references do not exist at the language-server level — a C# symbol has no TypeScript references — so the first language that resolves a name owns it.
Warm servers are tried before cold ones, so answering a second question about a language already in use costs nothing extra.
Forcing a single language
--language overrides detection entirely and serves that language alone. Useful
when a repository contains something you specifically do not want a server
started for, or to name a language detection does not recognise:
lodesman-mcp . --language elixirThe one case that still needs a second entry
Several projects in the same language, where that language's server only searches one project at a time.
Roslyn loads sibling projects from a shared parent, so a .NET solution with
however many .csproj needs nothing. tsserver does not, and it is worse than
simply missing them. Measured on a repository holding a web/ and an admin/,
each with its own tsconfig.json:
find_symbol WebWidget → found
open a file in admin/ → (any tool call naming a file there)
find_symbol AdminWidget → found
find_symbol WebWidget → NOT FOUNDIts workspace symbol search follows whichever project it most recently saw a file from, so the answer depends on what you asked previously. Holding a file open in each project does not help — that was tried and measured.
Lodesman cannot fix this from the outside, so it declares it: when a symbol is not found and the repository holds several projects in that language, the answer says so instead of reporting an absence it cannot vouch for.
No symbol matching 'WebWidget'.
Treat this as inconclusive. This repository holds 2 separate typescript
projects (admin, web), and that language server searches one project at a
time, so a symbol in another project reports as missing. …If that describes your repository, give each project its own entry:
{
"mcpServers": {
"lodesman-web": { "command": "uvx",
"args": ["lodesman-mcp", "web"] },
"lodesman-admin": { "command": "uvx",
"args": ["lodesman-mcp", "admin"] }
}
}That is the only remaining reason to run more than one. Several languages in one repository is not one of them.
Agents get a condensed version of all of this automatically: it is sent in the
MCP initialize response, so a coding agent can diagnose a misconfiguration and
propose the fix without being told any of it.
Status
Alpha. The tool surface is still growing, and not every tool is finished.
Lodesman inherits SolidLSP's language coverage, and runs wherever its language servers do. Not every language and platform combination has been exercised yet, so if you try one and it breaks, please open an issue — a report with the language, the OS and the stderr output is the most useful thing you can send. Testing help is very welcome.
Known issues
C / C++: edits on disk are not picked up by symbol search. clangd's workspace search keeps listing a renamed type under its old name. Lodesman reports each changed file to it and reopens the file; that fixes the other languages, but not clangd. Seen in CI only; the cause is not yet established. Tools that read a file directly, such as
get_file_diagnostics, see the edit.Swift: symbol search is intermittently stale. sourcekit-lsp answers project-wide searches from its index store, which sometimes lags edits and sometimes briefly loses a symbol. Lookups by name fall back to the outlines of the files that mention the name when the search comes back empty or stale, so they keep working.
PHP without a licence: intelephense reserves rename, implementations, type definition, type hierarchy and code actions for licensed users. Without
INTELEPHENSE_LICENSE_KEYthese are refused or reported as inconclusive, never answered as empty. References do work: what failed before 0.6.0 was the position the request was made at, not the feature.
Fixed in 0.3.1:
rename_symbol(apply=true)reported success while writing nothing to disk. It now writes, preserves CRLF line endings, handles UTF-16 column offsets, and reports the number of files whose bytes actually changed.Language detection descended into dot-directories, so starting a server in a home directory could bind it to a "project" made of
.cacheand.local.Pointing the server at a directory with no recognized source files produced an unhandled traceback, which an MCP client renders as "failed to connect".
Tools taking a
fileargument did not verify the path stayed inside the repository.The per-project cache key was case-folded on every platform, so on a case-sensitive filesystem two distinct repositories could share one cache.
Development
git clone https://github.com/florpan/lodesman
cd lodesman
pip install -e . # or: uv pip install -e .
python -m unittest discover -t . -s testsInstall before running the tests. Nothing in the suite asserts against a third-party library, but importing the server pulls in the vendored SolidLSP and therefore its dependencies, so on a bare interpreter the modules fail at the loader rather than at an assertion.
That runs the unit tests and the integration tests that need no language server — startup, language detection, the tool surface, and path containment, which is enforced before any language server is contacted. A couple of seconds, no downloads.
The integration tests drive real language servers and are opt-in, because a cold machine has to download them first:
LODESMAN_INTEGRATION=1 python -m unittest discover -t . -s testsThey skip rather than fail if no working language server is available. Note
that "no language server" is narrower than it sounds: SolidLSP launches pyright
through uvx, which brings its own runtime, so the Python tests run on any
machine with uv even without node — only the TypeScript ones need node. Good
for coverage, but the two conditions are not the same claim.
The language contract
tests/integration/languages.py holds one fixture project per language
lodesman auto-detects, all modelling the same thing — a Record type, a Store
interface, two implementations, and a second file that uses them — so the
assertions are identical across languages and only the syntax differs. Each
language then gets the same 17-test contract asserted against it:
Navigation: find a symbol, outline a file, resolve a definition, find cross-file references, return a body, explain a symbol, answer or decline implementations, follow the call and type hierarchies, and resolve a local's type.
Editing: round-trip a body through
get_symbol_bodyandreplace_symbol_body, refuse an ambiguous name, insert next to a symbol, refuse to delete a used one, and justify any deletion it does make.Staying current: rename to disk without disturbing line endings, and see both its own writes and edits made directly on disk.
C# and TypeScript also run code_action end to end (adding a missing import,
then confirming the file compiles), and C# runs get_file_diagnostics against
a never-restored project, a failed restore, and a clean one.
The set is tied to EXTENSION_LANGUAGES rather than to a popularity list, and a
test enforces that: adding a language to the detector without adding a fixture
fails the suite. The suite cannot fall behind what the server claims to do.
What actually passes, measured in CI on every push rather than claimed:
language | contract | needs |
C# | ✅ 17/17 | nothing: Roslyn fetches .NET and itself. |
TypeScript / JavaScript | ✅ 17/17 | node, npm |
Python | ✅ 17/17 | uv |
Go | ✅ 17/17 | go, and |
Rust | ✅ 17/17 | rustup, and |
Java | ✅ 17/17 | a JDK |
Swift | ⚠️ 16/17 | a Swift toolchain; the package is built first. Symbol search after a disk edit is intermittent (see Known issues) |
C / C++ | ⚠️ 15/17 | clangd. Symbol search does not pick up disk edits (see Known issues) |
PHP | ⚠️ 14/17 | node, npm: intelephense analyses PHP from node. Three tests need |
Ruby | ⚠️ 14/17 | ruby, bundler, and |
Kotlin | ⚠️ blocked | a JDK; SolidLSP downloads its own server |
Each ⚠️ counts the tests actually passed. The rest are recorded, with their
reasons, as known failures in tests/integration/languages.py. A known
failure is skipped with its reason; any other failure turns the build red.
Ruby fails three of the seventeen, all from one gap. find_references and
rename_symbol return nothing, and the rename-visibility test needs rename.
It is not a capability gap: ruby-lsp advertises both referencesProvider
and renameProvider. Nor is it timing: raising its internal cross-file wait
from 500 ms to 8 s changed nothing. Unexplained. safe_delete_symbol stays
safe on Ruby because its text search catches the usages the server does not
report.
Kotlin is blocked upstream, not by anything here. SolidLSP downloads
JetBrains intellij-server pinned at 262.9593.0, and that build has
expired: it prints This build of intellij-server has expired to stdout and
exits, which surfaces as the server dying during the LSP handshake. Tracked as
oraios/serena#2008.
Pinning 263.4702.0 made Kotlin pass the whole contract as it then stood
(eight tests), verified on Linux; the current eighteen have not been run
against it. It is not enabled
by default, because doing so moves an expiring EAP pin out of upstream and into
this repository: that build is on the same clock that killed the last one in
under two months, and an overridden version is downloaded without the hash
verification SolidLSP applies to its own defaults. The failure mode is a green
build turning red with no code change. To opt in locally, set it when
constructing SolidLSPSettings:
ls_specific_settings={"kotlin": {"kotlin_lsp_version": "263.4702.0"}}Use the string key, not LanguageServerId.KOTLIN. The vendored tree is imported
as a bare solidlsp, so an enum from a different import path fails an
isinstance check inside SolidLSP and the setting is silently ignored — no
error, no warning, and the old version downloads anyway.
A skip is not a pass, and CI enforces that: a language that runs no tests fails
the build unless languages.py records why it cannot run. A green tick that
might mean "ran the whole contract" or might mean "ran nothing" is worth nothing.
Anything unavailable skips with a reason naming the missing tool. CI runs the full matrix, one job per language, so a per-language regression is caught even though no single machine can run them all.
Not every server implements the whole protocol, and one gates parts of it
commercially. Where a capability is missing the contract does not go soft — it
asserts the opposite property, that lodesman reports the absence rather than
returning an empty result as though it were an answer. On unlicensed PHP,
find_references must say the result is inconclusive and rename_symbol must
refuse and leave the tree untouched. A confident wrong answer is the one
failure mode an agent cannot recover from.
To run them against a published release instead of the working tree:
LODESMAN_PKG=lodesman-mcp@0.3.1 UVX_FLAGS=--refresh \
LODESMAN_INTEGRATION=1 python -m unittest discover -t . -s testsUVX_FLAGS is separate because uv's own flags must precede the package name —
anything after it is forwarded to lodesman-mcp and rejected by its argument
parser.
There is also a standalone check against a repository of your own:
python scripts/smoke_test.py <repo> --language csharpBuilt on SolidLSP
The language-server client layer is SolidLSP,
MIT, vendored unmodified under src/lodesman/_vendor/. It is bundled rather
than depended on because it is not published to PyPI independently of the Serena
application, which is GPL and is not included here.
Everything Lodesman does lives outside that tree — the project anchoring, the readiness gate, the cross-file indexing wait, symbol ranking, and the decision to return code instead of coordinates were all solved by calling SolidLSP differently, never by editing it. That rule is what keeps re-syncing with upstream cheap.
See NOTICE.md for full attribution.
License
MIT — see LICENSE.
Bundled third-party code, its copyright holders and its license texts are listed in NOTICE.md. Everything bundled is MIT-licensed.
Available Tools
11 toolsblast_radiusA
What breaks if this symbol changes: everything that references it, then everything that references those, to the given depth. Run before changing a signature or deleting anything.
Inputs: name (required), depth, max_queries.
checkA
Compiler diagnostics for one file, from the already-running language server — errors and warnings in milliseconds, without a build. Run this after editing to confirm the change compiles.
Inputs: file (required), limit, severity.
document_symbolsA
Outline one file: every type, method, and field it declares, with line numbers. The API surface of the file without reading its body.
Inputs: file (required).
explain_symbolA
What a symbol is: resolved type, signature and documentation, plus its declaration line. Answers 'what does this call do' without opening the file.
Inputs: name (required).
find_definitionA
Jump to where a symbol is defined, resolved by the language server.
Inputs: name (required).
find_implementationsA
Find the concrete implementations of an interface or abstract member, or the overrides of a virtual one. Answers 'what actually runs when this is called', which references alone cannot tell you.
Inputs: name (required), limit.
find_referencesA
Find everything that references a symbol — the real call/usage sites the compiler sees, including dependency-injection registrations and interface implementations that a text search misses. Run this before renaming, changing a signature, or deleting.
Inputs: name (required), file, line, limit, +1 more.
find_symbolA
Find a symbol by name anywhere in the project, resolved by the language server rather than by text search. Returns each match with its file and line.
Inputs: name (required), limit.
get_symbol_bodyA
The full source of one declaration, by name — a method, class or function — without reading the file it lives in. Use this instead of opening a file to look at a single member.
Inputs: name (required).
project_infoA
Which repository this server bound to, and how. Answers cheaply without starting the language server — use it first to confirm the server is pointed at the project you think it is.
Inputs: no named parameters.
rename_symbolA
Rename a symbol everywhere, using the compiler's own understanding rather than text replacement — so it renames the right things and leaves unrelated same-named symbols alone. Defaults to a dry run showing what would change.
Inputs: name (required), new_name (required), apply.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools have distinct purposes, but a few overlap conceptually (e.g., find_symbol vs find_definition, explain_symbol vs get_symbol_body). The descriptions are detailed enough to reduce confusion, but an agent might still hesitate when selecting between similar navigation actions.
The majority follow a consistent verb_noun pattern (find_symbol, find_references, rename_symbol, etc.), but a few deviate: project_info, check, and blast_radius are not verb-first. The naming is still readable and predictable overall, just with minor inconsistencies.
With 11 tools, the server covers a comprehensive set of code navigation and analysis operations without being bloated. Each tool addresses a specific need, and the count fits well within the ideal range for a focused domain.
The tool set covers the full lifecycle of symbol exploration: finding, defining, referencing, implementing, renaming, inspecting, and checking diagnostics. It includes advanced features like blast radius and document outlines, leaving no obvious dead ends for common code navigation workflows.
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI coding agents to query a semantic cross-repository code graph for symbols, references, callers, dependencies, and change impact across registered repositories.1224Apache 2.0
- FlicenseNot gradedqualityBmaintenanceEnables developer agents to perform semantic codebase search, dependency and impact analysis, cross-file refactoring, and full-stack API tracing through a unified query DSL over a high-performance graph engine.-
- AlicenseNot gradedqualityCmaintenanceEnables coding agents to retrieve the code a change touches and the decisions behind it, with separate code and decision search, symbol explanations, and import/reference path finding.1Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to query a codebase as a graph, retrieving definitions, callers, callees, dependencies, and focused context so they fetch only the code they need instead of reading whole repositories.MIT