Listed from the MCP registry; nobody on Odel publishes it.
Headless LSP bridge MCP server: pinned language-server sessions as bounded read tools.
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Distributed as an MCP bundle (`https://github.com/qompassai/theodolite/releases/download/v1.0.1/theodolite-mcp-1.0.1-linux-x64.mcpb`) — download it and import the bundle in your MCP client.
A headless, deterministic LSP bridge MCP server (IDEA-0092,
ai.qompass/theodolite): pinned language-server sessions exposed
as bounded read tools for editor-free contexts — primo workers,
gates, sandbox agents.
Theodolite is the complement of periscope (IDEA-0013): periscope answers through the human's live Neovim; theodolite owns its own pinned server sessions and never touches an editor.
Design authority: ~/workspace/lsp-mcp-study-20261025/SPEC.md.
Build record: BUILD-REPORT.md in this directory.
Consumer charter (routing vs periscope / SCIP / phlow checks,
client setup, mutation posture): docs/CHARTER.md.
Tools: session_status, diagnostics (push accumulation merged
with pull where the server advertises it, per-diagnostic channel
provenance), hover, definition, declaration,
type_definition, implementation, references,
document_symbols, workspace_symbols, code_actions (listing
only — payloads never returned, never executed),
rename_preview, session_restart. There is no generic
any-LSP-method tool, no edit_file, no formatting tool, and no
workspace/executeCommand passthrough — the surface stays a
closed list by construction.
Servers (config data, not code): bacon-ls (diagnostics owner), rust-analyzer (semantics), lua-language-server (second proof server), serve-d (D; config entry and unit coverage landed, live-session parity passed 2026-10-26 — see Capability notes).
--require
accepts feature names (d, workspaces) only; a component
name there makes the server intentionally refuse to start, so
the registry entry carries no args.first-response readiness and a PATH carrying dub/dcd-server.
serve-d activates its project seconds after the handshake on
its own schedule, and its workspace indexing never presents a
quiescent window inside the readiness timeout — so readiness
is the handshake plus the first real answered request against
a workspace file (SPEC §3/§7), not drained progress.served/* requests and coded/* notifications stay
outside the bridge's closed read surface by construction; the
standard read methods are what the tools exercise. Configuration
serve-d asks for via workspace/configuration (the d.*
section) is answerable through the entry's settings field.libphobos2-ldc-shared.so.111
and libdruntime-ldc-shared.so.111, while the system LDC 1.43
ships only the .113 pair. A source-built serve-d (dub + LDC
1.43) now exists on primo at ~/.local/bin/serve-d; machine
copies of this config point binary there, while the shipped
example keeps /usr/bin/serve-d. serve-d prints its version
on stderr only; the version probe accepts the trimmed stderr
when stdout is empty (SPEC §4.1). dcd-server/dcd-client
0.16.3 and dfmt 0.15.2 on the same machine run fine. A live
parity run for this entry PASSED on primo on 2026-10-26
against the source-built binary: the bridge session reached
ready under first-response, and its document_symbols and
hover results for the probe file match a direct LSP probe
of the same binary exactly (symbols add/main with
identical ranges; hover text identical). Calls made before
serve-d's delayed project activation completes return the
server's own empty answers — a direct client at the same
moment gets the same emptiness; that is serve-d's timing,
faithfully passed through, not a bridge loss.Two further tools exist, registered only under the mutation
gate: code_action_apply and rename_apply. rename_preview
belongs to the read class — it computes and renders a rename's
edit set and writes nothing; the gate does not govern it.
mutation = "off" (default) or
mutation = "gated" together with a non-empty
mutation_allowlist of client names. Any other combination —
unknown value, gated without an allowlist, an allowlist while
off — refuses to start with a typed ConfigInvalid; an
ambiguous posture never drifts on silently.clientInfo.name — a routing label inside the
host's trust boundary (SPEC §8), not an authentication layer.
Only when the posture is gated AND the connected client is
allowlisted do the two apply tools appear in tools/list;
under every other combination they are absent, and calling
one answers UnsupportedMethod. A gated config with no
handshake identity fails closed.gate::decide) over posture, identity, allowlist, handle
state, and version state. Every decision — allow or deny, with
its reason — is recorded in the session transcript
(session_status → gate_decisions, metadata only, bounded).code_actions mints an opaque single-use handle
for each edit-carrying action, only while the apply class is
registered for the client. The edit body and a listing-time
SHA-256 snapshot of every target stay server-side; listings
still never carry payloads. code_action_apply takes a handle
only — a caller-supplied edit is a typed refusal. At apply
time a forged, spent, cross-session, or version-drifted handle
is a typed GateDenied, logged. An allowed apply consumes the
handle before writing, so a spent handle never retries.rename_apply takes the preview's arguments, not a
handle: it recomputes fresh, re-validates every tracked
document's hash between compute and write (drift refuses the
whole rename, nothing written), and answers applied: true
where the preview answers applied: false.workspace/applyEdit pushed by a server is never honored.cargo build --release
./target/release/theodolite --config bridge.toml
MCP over stdio, NDJSON JSON-RPC. The bridge refuses to start on an
invalid config. See bridge.toml.example for the config shape;
pin real binary paths and exact --version output on the target
machine.
setpriv --pdeathsig SIGKILL in scrubbed environments, one
supervisor per session (next section); SIGKILLing the bridge
takes every session tree down with it (orphan gates in the test
suite).(workspace, server); at most 4; a dead session
is never silently respawned — session_restart is the only
respawn path.ResultTooLarge with the true item count, never a silent
truncation. Errors are typed with stable codes (SPEC §4.6).Each session runs under a supervisor: the bridge re-executes
itself with --supervise as the session's direct child and
process-group leader, and the supervisor spawns the server inside
that group (the setpriv --pdeathsig SIGKILL wrapper now binds
the server to the supervisor). A server and every daemon it leaks
share the supervisor's process group, and the supervisor reaps
the whole tree — enumerating /proc by group, killing by
explicit pid, never by negative pgid — on every path:
shutdown + exit and waits shutdown_grace_ms; a
surviving tree is escalated by closing the supervisor's stdin,
whose EOF starts the supervisor's own grace-then-tree-kill.
Child::kill on the supervisor alone is the last resort./proc presence plus its recorded start
time every 50 ms — a recycled pid does not count as alive — and
kills its tree the moment the bridge is gone.Proving gates: tree_gate_* in tests/mcp_stdio.rs run a fake
server that leaks a real daemon grandchild and assert server,
daemon, and supervisor are all gone within 5 s after session
restart, transport EOF, SIGKILL, and SIGTERM respectively; the
pre-P4 orphan gate (server only) still runs.
Measured limits, stated as limits: after a bridge SIGKILL, tree
reaping is bounded by the supervisor's 50 ms poll plus its
/proc sweep, not instantaneous; and if a supervisor itself
wedges so hard that even its EOF path cannot run, the bridge's
last-resort kill takes the supervisor alone — a daemon could in
principle outlive that one path. No other residue class is known:
in the P4 primo smoke (a real bacon-ls session whose headless
backend daemon parks in the session tree), the daemon is gone
within the same 5 s bound on EOF, SIGKILL, and SIGTERM alike.
cargo test # unit + stdio suites + parity harness
cargo clippy --all-targets -- -D warnings
cargo fmt --check
The parity gate (tests/parity.rs) compares bridge diagnostics
against standalone bacon-ls byte-for-byte; it skips loudly where no
bacon-ls binary exists and runs for real on primo.