lspi 0.2.0

Giving AI the sight of LSP: bridge LSP capabilities to AI coding CLIs via an MCP server over stdio.
lspi-0.2.0 is not a library.

lspi

Giving AI the sight of LSP.

lspi bridges Language Server Protocol (LSP) capabilities to AI coding CLIs (starting with Codex) via an MCP server over stdio.

What it does

  • Symbol navigation (definition/references/hover)
  • Safe rename with preview-first edits (dry_run=true by default)
  • Multi-server routing by file extension + root directory
  • Server lifecycle controls (restart/stop)

Install

From source:

cargo install --path crates/lspi --locked

Quickstart (Codex)

  1. Generate a project config (recommended):
cd /path/to/project
lspi setup --wizard --non-interactive --write
  1. Configure Codex MCP (~/.codex/config.toml):
[mcp_servers.lspi]
command = "lspi"
args = ["mcp", "--workspace-root", "."]

Docs