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
- Install Node.js 20 or newer — the MCP server runs on Node.
- Have the project you want analysed on this machine, and know its absolute path.
- Optional: install the SolveLang CLI (
solvec) if you want.solvevalidation — that one tool runs your localsolvec.
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.solvePut 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-mcpAdd 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-mcpFor 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.
- Restart your MCP client so it loads the new server.
- Call
solvelang_capabilitiesand confirm the tool list answers. - 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. .solvevalidation is the one tool that needs more than Node: it runs your localsolvec, found onPATHor viaSOLVELANG_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.