liveBook · Manning

Language server

As explained in Vibe Engineering

A language server is a process that provides compiler- or language-aware editing, navigation, and analysis capabilities through the Language Server Protocol.

A language server exposes a compiler’s semantic model through the Language Server Protocol (LSP), a JSON-RPC-based standard between editors or IDEs and language-aware tooling. It enables autocomplete, go-to-definition, type hover, refactorings, semantic tokens, and code actions without tying those capabilities to one IDE. section 3.3.4

Its strongest contribution is build-time truth: resolved types, dependency versions, symbols, sources, and classpaths as the compiler understands them. That authority has a boundary: deployment configuration and runtime behavior belong to a different layer. section 3.3.4

Scala project analysis

Metals understands a Scala project through its build system, indexes symbols and types, tracks the full classpath, and can expose compiler-level access through MCP to an agent. An agent can inspect the inferred type of a field such as avatarUrl and resolve transitive dependency versions, but should not treat that information as production runtime truth. section 3.3.4

Figure 3.4 MCP ↔ LSP (Metals) with Claude Desktop as MCP Client.

Shows an MCP client connected to Metals as an LSP server for compiler-aware project access. section 3.3.4

How Vibe Engineering covers it

How deep it goes
Explains protocol role and build-time analysis, but stops short of runtime behavior and deployment configuration.
Examples
Uses Metals analyzing Scala symbols, inferred types, dependencies, sources, and classpaths for Claude Desktop through MCP.
What it assumes
Assumes familiarity with editors, compilers, project builds, and dependencies while defining LSP and language-server roles.
What you can do after
Apply it via LSP and MCP to inspect compiler-resolved project facts while separating build-time evidence from runtime assumptions.
How it connects
Connects language servers with LSP, JSON-RPC, compilers, IDEs, build systems, classpaths, MCP, and runtime configuration.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Vibe Engineering. The section links point to the parts of the book it draws on.