Skip to main content

Crate lspkit

Crate lspkit 

Source
Expand description

lspkit — generic Rust infrastructure for building LSP+MCP servers.

The headline contribution is EngineApi — the contract that an LSP backend and an MCP server both consume so live analysis state is computed once and vended two ways. See spec.md at the workspace root for the full behavioral contract.

This is the L0 toolkit crate ([CRATE-LAYOUT-LAYERS]). Its modules have no internal dependencies:

  • config — layered TOML config loader.
  • vfs — concurrent open-document store with position-encoding support.
  • sidecar — framed-IPC transport and lifecycle for out-of-process backends.
  • treesitter — parser trait and parse cache (treesitter feature).
use lspkit::prelude::*;

Re-exports§

pub use crate::engine::Cause;
pub use crate::engine::EngineApi;
pub use crate::engine::Generation;
pub use crate::engine::GenerationEvent;
pub use crate::engine::GenerationEventStream;
pub use crate::engine::Progress;
pub use crate::engine::RescanScope;
pub use crate::engine::RescanTicket;
pub use crate::engine::Snapshot;

Modules§

config
lspkit::config — layered TOML config loader for LSP/MCP servers.
engine
EngineApi — the contract every engine implementation satisfies.
prelude
Re-exports of the most commonly used items.
sidecar
lspkit::sidecar — framed-IPC primitives and lifecycle management for out-of-process backends.
vfs
lspkit::vfs — concurrent open-document store for LSP and analysis tools.