Skip to content

Documentation

How do I install SolveLang and set up the MCP server locally?

Install the SolveLang CLI, run the published MCP server with npx, and point Claude Code or Codex at your workspace — read-only, local-first, and bounded to the project you name.

The SolveLang MCP server gives a coding agent — Claude Code, Codex, or another MCP client — read-only analysis of your workflows, your repository graph, and Solve Context packs, running entirely on your own machine over stdio.

This guide takes the shortest path: the published npm package. The MCP setup page carries the full plugin and manual-configuration reference; this page gets you running and then links you there.

What you get

The published server, @solvelang/mcp-server@0.3.0, exposes 29 read-only tools: workflow and n8n analysis, Solve Graph queries over a repository graph, and the Solve Context tools for planning and building context packs.

Every tool is read-only and bounded to the workspace you name: no file writes, no network requests, and no execution of your repository's code.

Before you start

  1. Install Node.js 20 or newer — the MCP server runs on Node.
  2. Have the project you want analysed on this machine, and know its absolute path.
  3. Optional: install the SolveLang CLI (solvec) if you want .solve validation — that one tool runs your local solvec.

The CLI lives in the repository's solvec folder and builds with Cargo (Git and Rust/Cargo are the only requirements):

git clone https://github.com/saiidz/solvelang.git
cd solvelang/solvec
cargo build --release
./target/release/solvec run ../examples/hello.solve

Put solvec on your PATH, or tell the server where it is with SOLVELANG_SOLVEC (shown in the Codex configuration below).

Run the published server

One environment variable names the workspace the server may read. Everything it serves is bounded to that root:

SOLVELANG_WORKSPACE_ROOT=/absolute/path/to/project \
  npx -y --package @solvelang/mcp-server@0.3.0 solvelang-mcp

Add it to your MCP client

Register the same command with your client, then restart the client so it picks the server up.

For Claude Code:

claude mcp add --transport stdio \
  --env SOLVELANG_WORKSPACE_ROOT=/absolute/path/to/workspace \
  solvelang -- npx -y --package @solvelang/mcp-server@0.3.0 solvelang-mcp

For Codex, the manual configuration in ~/.codex/config.toml:

[mcp_servers.solvelang]
command = "npx"
args = ["-y", "--package", "@solvelang/mcp-server@0.3.0", "solvelang-mcp"]

[mcp_servers.solvelang.env]
SOLVELANG_WORKSPACE_ROOT = "/absolute/path/to/workspace"
# Optional, needed only for solvelang_validate_solve:
# SOLVELANG_SOLVEC = "/absolute/path/to/solvec"

Check it worked

Call solvelang_capabilities, or use your client's list-tools view, to inspect the exact tools exposed by the installed version. Do not infer the tools of the published package from the repository's current source tree — the package distributes the tagged release, and the two can differ.

  1. Restart your MCP client so it loads the new server.
  2. Call solvelang_capabilities and confirm the tool list answers.
  3. Try a read-only call: ask for a Solve Graph summary, or a context plan for a file you know.

Honest limits

  • Read-only means read-only: the analysis and context tools never write files, make network requests, execute repository code, or inspect credential values.
  • All file discovery and reading stays inside SOLVELANG_WORKSPACE_ROOT, and likely sensitive paths are denied by the context runtime policy.
  • .solve validation is the one tool that needs more than Node: it runs your local solvec, found on PATH or via SOLVELANG_SOLVEC.
  • The published 0.3.0 package distributes the tagged release source. Later changes on the repository's main branch are not in the npm package until a separate distribution ships them.
  • Managed-workspace marketplace installation and a public Plugin Directory listing remain unverified — the pinned package command above is the supported route today.

Keep going