varar mcp
varar mcp is a Model Context Protocol
server for coding agents. It runs over stdio, from the project root, and gives an
agent the same engine as the language server: it
reads step definitions statically, in every language, and runs no tests.
npx -y @varar/cli mcpConfigure your agent to start that command in the project directory. It needs Node.js, but the project can be in any language.
Every tool re-reads the workspace first, so it sees edits made since the previous call. Paths are relative to the project root; lines and columns are 1-based.
| Tool | Arguments | Returns |
|---|---|---|
list_steps |
— | Every step definition: expression, kind (stimulus or sensor), file, line, and uses, the number of sentences it matches. |
diagnostics |
path (optional) |
What the editor would underline: drift, ambiguous-match, broken references, near-miss. Each has path, line, col, severity, code and message. |
plan_rename |
from, to |
The edits a rename would make: the expression, and every sentence it matches. Writes nothing. |
rename_step |
from, to |
Makes those edits, and lists the files written. |
accept_drift |
path |
Records the oath’s paragraphs that stopped being examples as prose in varar.lock. For deliberate drift only. |
plan_rename and rename_step refuse the same renames as
varar rename, and change nothing. A
refusal comes back as a tool result with isError: true and the reason, so
the agent can act on it.