Labsco
MCP SERVER

Calva Backseat Driver

by BetterThanTomorrow

Give a VS Code AI agent a live Clojure REPL - evaluate code, edit forms structurally, and look up real symbol docs.

Editors, Terminals & Local Dev Environment
Summary
The REPL is the point - the agent can check its answer instead of asserting it.

Clojure is the language where an agent can verify a claim in one evaluation, and this hands it that ability plus structural editing that will not produce unbalanced parens. The author is clear about the gap: the extension supplies tools, not Clojure taste, so pair it with instructions about how you want the REPL used.

What it is

A VS Code extension that hands Calva's Clojure tooling to an AI agent. Copilot and Cursor get it with no configuration at all; other assistants connect over MCP with a small amount of per-project setup.

What you get
  • Evaluation against any REPL session Calva has connected, including shadow-cljs builds and runtimes
  • Structural editing that keeps brackets balanced, formats and lints: replace or insert a top-level form, append code, or create a Clojure file
  • A bracket balancer, so the model gets the parens right instead of guessing
  • Loading a whole file through the connected REPL
  • Symbol lookup returning real docstrings and argument lists, and clojuredocs.org lookups for core symbols - both as tools and as resources
  • Skills discoverable as resources, teaching the agent how to use the tools
Requirements

VS Code with the Calva extension and this one installed, plus a Clojure or ClojureScript project Calva is connected to. Copilot and Cursor need no configuration; other MCP clients follow the project's MCP configuration document. Evaluation results are trimmed before they reach the model - a collection item limit defaulting to 25 and a nesting depth defaulting to 7, both settable to zero to disable. Note that the editing tools have no review UI: use source control and the editor's timeline to see what changed.