# LeanWarp (pypi · leanwarp)

Check and verify Lean 4 proofs on hosted, warm Lean and Mathlib workers.

- Trust score: 91/100 (high trust)
- Change this week: +4
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-11-30

## Components

- pypi · `leanwarp`: 91/100 (this document), [markdown](https://verifymcp.io/servers/isagoge-labs-leanwarp/leanwarp.md), [page](https://verifymcp.io/servers/isagoge-labs-leanwarp/leanwarp)

## Channel facts

- Registry: `pypi`
- Package: `leanwarp`
- Version: `0.2.11`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-11-30.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - Runs hatchling.build at install time, a recognised build step with no custom scripting around it.
  - 0 of 30 dependencies flagged as unhealthy.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to Isagoge-Labs/LeanWarp-SDK).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 1 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 79/100
  - 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).
  - AI-judged instruction clarity (good).
  - Context-footprint check failed: tool/resource definitions use about 3828 tokens (~106/item across 36 items; 34 tools + 2 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 80/100
  - Stability observed for 24 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 73/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 4% of tool parameters carry a description.
  - Structured output schemas are declared (100% of tools); any adoption earns full credit.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - All 2 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation.
  - An AI judge read all 36 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### How do I install the LeanWarp MCP server?

LeanWarp runs locally as a PyPI package, launched with uvx leanwarp mcp, plus the required --project, which you supply. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add isagoge-labs-leanwarp -- uvx leanwarp mcp
```

Incomplete: the registry marks --project as required and gives no value we can show, so it is not in this command. Add it before you run it.

### Cursor

```json
{
  "mcpServers": {
    "isagoge-labs-leanwarp": {
      "command": "uvx",
      "args": [
        "leanwarp",
        "mcp"
      ]
    }
  }
}
```

Incomplete: the registry marks --project as required and gives no value we can show, so it is not in this command. Add it before you run it.

### VS Code

```json
{
  "servers": {
    "isagoge-labs-leanwarp": {
      "command": "uvx",
      "args": [
        "leanwarp",
        "mcp"
      ]
    }
  }
}
```

Incomplete: the registry marks --project as required and gives no value we can show, so it is not in this command. Add it before you run it.

### Codex

```bash
codex mcp add isagoge-labs-leanwarp -- uvx leanwarp mcp
```

Incomplete: the registry marks --project as required and gives no value we can show, so it is not in this command. Add it before you run it.

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "isagoge-labs-leanwarp": {
      "type": "local",
      "command": [
        "uvx",
        "leanwarp",
        "mcp"
      ],
      "enabled": true
    }
  }
}
```

Incomplete: the registry marks --project as required and gives no value we can show, so it is not in this command. Add it before you run it.

### OpenClaw

```bash
openclaw mcp add isagoge-labs-leanwarp --command uvx --arg leanwarp --arg mcp
```

Incomplete: the registry marks --project as required and gives no value we can show, so it is not in this command. Add it before you run it.

### Hermes

```yaml
mcp_servers:
  isagoge-labs-leanwarp:
    command: "uvx"
    args: ["leanwarp", "mcp"]
```

Incomplete: the registry marks --project as required and gives no value we can show, so it is not in this command. Add it before you run it.

### Netclaw

```json
{
  "McpServers": {
    "isagoge-labs-leanwarp": {
      "Transport": "stdio",
      "Command": "uvx",
      "Arguments": [
        "leanwarp",
        "mcp"
      ]
    }
  }
}
```

Incomplete: the registry marks --project as required and gives no value we can show, so it is not in this command. Add it before you run it.

### Vellum

```bash
assistant mcp add isagoge-labs-leanwarp -t stdio -c uvx -a leanwarp mcp
```

Incomplete: the registry marks --project as required and gives no value we can show, so it is not in this command. Add it before you run it.

### Other

```json
{
  "mcpServers": {
    "isagoge-labs-leanwarp": {
      "command": "uvx",
      "args": [
        "leanwarp",
        "mcp"
      ]
    }
  }
}
```

Incomplete: the registry marks --project as required and gives no value we can show, so it is not in this command. Add it before you run it.

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-11-30 (score 91, +16)

- [security improvement] Malware scan: unverified → pass

### 2026-11-28 (score 75, +1)

- [functional regression] Schema quality: pass → fail
- [functional] Package version: 0.2.9 → 0.2.10

### 2026-11-26 (score 74, +1)

No change was recorded against any check on this day. Stability & Change Management went from 63 to 67. That category is still filling its 30-day observation window: 19 days of observed history at the previous scan, 20 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-11-24 (score 73, −14)

- [security regression] Malware scan: pass → unverified

### 2026-11-23 (score 87, 0)

- [functional regression] Security disclosure: unverified → fail

### 2026-11-22 (score 87, +16)

- [security improvement] Malware scan: unverified → pass
- [functional regression] Schema quality: 91 → 101
- [functional regression] Security disclosure: fail → unverified
- [functional] Package version: 0.2.8 → 0.2.9

### 2026-11-20 (score 71, −14)

- [security regression] Malware scan: pass → unverified

### 2026-11-19 (score 85, +15)

- [security improvement] Malware scan: unverified → pass

## MCP tools (34)

### `doctor` (~31 tokens)

Show the project's toolchain and environment and whether it runs, and any
connect in progress. Does not start compute.

### `files` (~66 tokens)

List the Lean files that would upload, their sizes and any problems.

.gitignore and .leanwarpignore in the project exclude files. With dependencies,
also each path dependency connect sends: its dir and its files with sizes.
Needs no key and uploads nothing.

Input parameters:

- `dependencies` (boolean)

### `versions` (~16 tokens)

List the Lean toolchains LeanWarp supports.

### `environments` (~20 tokens)

List this account's environments: each project's build status and dependencies.

### `account` (~29 tokens)

Show credit: balance, reserved and available, as microdollar strings ($1 = 1000000).

### `resources` (~21 tokens)

Show the published worker's resources and pricing. Does not start compute.

### `connect` (~277 tokens)

Connect this project. A new environment build uses prepaid credit.

The project's toolchain, lakefile, lockfile and path dependencies define its
environment; LeanWarp builds it once and this waits up to 40 seconds. Pass
retry after fixing what made a build fail. Each dependency's default
libraries are built; pass libraries (each package/Target, such as
mathlib/Archive) to build others too, as a check refusing an import names.
Plain files run with Mathlib; pass mathlib false for core Lean alone, which
starts faster and builds nothing. Changing it later means stop, disconnect
and connect again.
Optionally cap workspace spending in microdollars ($1 = 1000000), excluding the build.
Omit the cap to keep an existing connection's cap. A different supplied
cap is rejected; change an existing cap in the account dashboard.
Pass workspace_id only when the user chose an existing workspace from
workspaces; the result lists the files the next sync uploads over it.
While the environment builds this returns state building; call connect again
to keep waiting. The build goes on, answered by this server, between calls.

Input parameters:

- `libraries`
- `mathlib`
- `max_spend_microusd`
- `retry`
- `workspace_id`

### `workspaces` (~24 tokens)

List the account's workspaces; this_project marks the one this project uses.

### `history` (~64 tokens)

One page of stored operations and results, newest first; default this project's.

Pass the previous page's next_cursor as cursor to read older ones. Finished
history is kept for a window only.

Input parameters:

- `cursor`
- `detail` (string)
- `workspace_id`

### `status` (~44 tokens)

Show the workspace and an operation's state: the latest, or operation_id.

It never includes a result; call wait with the operation_id for that.

Input parameters:

- `operation_id`

### `check` (~202 tokens)

Compile a file and report Lean errors and warnings. Uploads changed files first.

draft defaults to false: a strict check that fails on errors, sorry and extra
axioms. draft=true is faster while editing: Lean reuses its work on the
unchanged part of the file, and `sorry` is only a warning, so finish with a
strict check or verify_target. status is ok, error or rejected (failure.kind
says why), or, with no verdict, timeout, infrastructure_failure or
not_checked: then retry, when failure.retryable, rather than change the
proof. retention="short" lets LeanWarp remove the finished result about a
minute later, so a search loop need not delete each one. May start a worker,
which uses credit.

Input parameters:

- `detail` (string)
- `draft` (boolean)
- `file` (string, required)
- `retention` (string)
- `wait_seconds` (number)

### `inspect` (~124 tokens)

Show goals at a tactic or proof hole. Lines and character columns start at 1.

no_goals means a known empty tactic state. omitted counts hidden goals.
Use detail="full" for a selection too large for the compact answer.
retention="short" lets LeanWarp remove the finished result after about a minute.
May start a worker, which uses credit.

Input parameters:

- `column` (integer, required)
- `detail` (string)
- `file` (string, required)
- `line` (integer, required)
- `retention` (string)
- `wait_seconds` (number)

### `try_tactics` (~137 tokens)

Try tactics at a position without editing the file. Read each result's outcome.

The default limit covers the sum of the tactic budgets plus overhead, up to
the operation maximum. A shorter explicit limit scales tactic budgets down.
Read each outcome to see whether the tactic closed its goal.
retention="short" lets LeanWarp remove the finished result after about a minute.
May use credit.

Input parameters:

- `column` (integer, required)
- `detail` (string)
- `file` (string, required)
- `line` (integer, required)
- `retention` (string)
- `tactics` (array, required)
- `wait_seconds` (number)

### `verify_target` (~169 tokens)

Check that a declaration proves exactly the user's statement. May use credit.

target_context holds the imports and definitions the statement needs, such as
\`import Mathlib`; it may import only the environment's packages, never this
project's modules. Never weaken the statement or context to make a proof pass.
fresh runs on a separate worker that stops afterwards. success needs status
ok and a receipt; rejected is a verdict (failure.kind: target_mismatch,
axioms, ...), while timeout and infrastructure_failure decide nothing: retry.

Input parameters:

- `candidate_declaration` (string, required)
- `detail` (string)
- `file` (string, required)
- `fresh` (boolean)
- `target_context` (string)
- `target_statement` (string, required)
- `wait_seconds` (number)

### `suggest` (~267 tokens)

Find a tactic that closes the hole at a position; call apply straight after.

Without tactics, LeanWarp ranks its own portfolio for the goal; timeout_ms
bounds each tactic. success means a tactic closed the hole, changing nothing
else. verification says how far the recheck reached: strict, the whole file,
by the independent checker; declaration, this declaration (others still have
holes), an editing aid and not a verdict: run check on the finished file. A hole in a
declaration that keeps other holes is not closed
(declaration_has_other_holes). Solve the remaining holes together or manually
separate them into lemmas before retrying. The file is not changed until
apply, which writes only the latest result: call it before any other tool,
then call holes again, since line numbers change. wait and status start no
operation, so they are safe in between. If not_closed, rejections gives each
refused tactic's reason (recheck_incomplete may still be a correct tactic).
May use credit.

Input parameters:

- `column` (integer, required)
- `detail` (string)
- `file` (string, required)
- `line` (integer, required)
- `tactics`
- `timeout_ms`
- `wait_seconds` (number)

### `holes` (~153 tokens)

List sorry and ?_ positions with their observed state from one elaboration.

Lines and columns are 1-based. States are resolved, sorry, unresolved, or
unknown. unfinished_count counts only sorry/unresolved placeholders;
unknown_count is separate and must not be treated as proof completion.
The legacy unfinished flag stays true for unknowns; only resolved is false.
hole_count includes resolved syntax placeholders. Goals are bounded to
the first 16 unfinished/unknown entries; omitted contexts are explicit.
success means the listing ran; status error means the file does not compile.
May use credit.

Input parameters:

- `detail` (string)
- `file` (string, required)
- `goals` (boolean)
- `wait_seconds` (number)

### `proof_states` (~205 tokens)

Every tactic Lean ran in the file, with its goals before and after, one page at a time.

One call replaces an inspect per tactic. Rows are in command order, a tactic
before those nested in it; each has source_range (1-based lines and columns),
occurrence (a tactic run once per goal repeats its range) and before/after
with status available (state: an id in the page's states), no_goals,
omitted (too large) or unavailable. Call again with next_cursor as cursor
until it is null. max_bytes bounds the page (4096 to 524288). status
unsupported means the environment cannot list tactic states yet; use
inspect. A file with errors is listed as far as Lean elaborated it.
May use credit.

Input parameters:

- `cursor` (integer)
- `detail` (string)
- `file` (string, required)
- `max_bytes` (integer)
- `wait_seconds` (number)

### `extract_decls` (~47 tokens)

List the declarations a file adds, with types and dependencies. May use credit.

Input parameters:

- `detail` (string)
- `file` (string, required)
- `wait_seconds` (number)

### `sorry2lemma` (~136 tokens)

Move each unfinished theorem's proof into a named lemma; call apply to write it.

The original theorem then calls the new lemma, which keeps its sorry: prove
each one next, for example with suggest. name_prefix names them. Section
variables are preserved in the generated lemma application. A failed
transformation leaves the source unchanged. The file is not changed until
apply. May use credit.

Input parameters:

- `detail` (string)
- `file` (string, required)
- `max_extractions` (integer)
- `name_prefix`
- `strict_final_check` (boolean)
- `wait_seconds` (number)

### `have2lemma` (~132 tokens)

Move each named `have` in a theorem's proof into its own lemma; call apply to write it.

The `have` then calls the new lemma, which takes the theorem's parameters.
LeanWarp returns the new file only after checking that every statement is
unchanged and nothing else was added; status rejected, with reason, means
that audit refused it. The file is not changed until apply. May use credit.

Input parameters:

- `detail` (string)
- `file` (string, required)
- `max_extractions` (integer)
- `name_prefix`
- `wait_seconds` (number)

### `simplify_proofs` (~182 tokens)

Replace theorem proofs with shorter tactic proofs; call apply to write the file.

Each candidate is kept only if the whole file still checks with it and it is
at least min_reduction_bytes shorter; timeout_ms bounds each attempt (each
tactic's own budget without it). Each
theorem it edits must end complete with Lean's standard axioms only, and no
statement may change; status rejected, with reason, means LeanWarp's audit
refused the rewritten file. Tactics may not use sorry or admit. The file is
not changed until apply. May use credit.

Input parameters:

- `detail` (string)
- `file` (string, required)
- `max_simplifications` (integer)
- `min_reduction_bytes` (integer)
- `tactics`
- `timeout_ms`
- `wait_seconds` (number)

### `repair_proofs` (~185 tokens)

Try to repair sorry holes. Call apply only when source_changed is true.

Every attempt checks the whole patched file; timeout_ms bounds each one (each
tactic's own budget without it), and
sorrys that do not fit the operation's time come back skipped. Each theorem
it edits must end complete with Lean's standard axioms only: a theorem that
keeps another sorry is refused (declaration_has_other_holes). Solve its
remaining holes together or manually separate them into lemmas. Tactics
may not use sorry or admit. A rejected response gives the audit's reason.
The file is not changed until apply. May use credit.

Input parameters:

- `detail` (string)
- `file` (string, required)
- `max_repairs` (integer)
- `tactics`
- `timeout_ms`
- `wait_seconds` (number)

### `check_files` (~166 tokens)

Check up to 64 files in one operation; success is true only if every file passed.

Strict by default: sorry, errors and non-standard axioms fail a file. draft
accepts files that compile; timeout bounds each file in seconds (default 60, at
most 300, which needs the default operation deadline). Each file's
status is ok, error or rejected (a verdict), or timeout,
infrastructure_failure or not_checked (no verdict: retry those, do not change
the proof). The batch is ok, failed (a file was refused) or incomplete.
May use credit.

Input parameters:

- `detail` (string)
- `draft` (boolean)
- `files` (array, required)
- `timeout`
- `wait_seconds` (number)

### `verify_batch` (~257 tokens)

Check up to 64 inline proofs in one operation; success is true only if all passed.

Each code is {"custom_id": ..., "proof": ...} with a unique custom_id; no
file is uploaded. Proofs may import the environment's packages, such as
Mathlib, but not this project's modules (use check_files for those).
Without a target, ok means the source compiles, its declarations pass the
kernel and it uses no extra axioms, not that it proves what you meant: add
"target": {"context": imports, "statement": the Prop, "declaration": the
theorem's name} to bind it, and an accepted entry carries a receipt.
Strict by default; draft accepts proofs that compile and takes no target.
timeout bounds each proof in seconds (default 60, at most 300). Each entry's
status is ok, error or rejected (a verdict), or timeout,
infrastructure_failure or not_checked (no verdict: retry those, do not
change the proof). May use credit.

Input parameters:

- `codes` (array, required)
- `detail` (string)
- `draft` (boolean)
- `timeout`
- `wait_seconds` (number)

### `apply` (~85 tokens)

Write the latest successful suggest or file-rewrite result into its file, then upload it.

Refuses if the file changed since the result was computed. If the upload
response was lost, retry apply. For revision_conflict, inspect the local file,
run reconcile, review the changes, then run any operation (it uploads first).
Run check or verify_target afterwards to confirm the proof.

### `wait` (~111 tokens)

Wait up to timeout seconds (at most 40) for an operation: the latest, or operation_id.

If it is still running, success is null: call wait again with its operation_id.
With operation_id, wait only reads that operation. Without it, wait first
resends a saved request whose response was lost, which can upload source
changes, including deletions, and start the operation it carried.

Input parameters:

- `detail` (string)
- `operation_id`
- `timeout` (number)

### `recover` (~86 tokens)

Resend the saved create, sync or submit request after a lost response.

Any other tool that writes resends it first, so this is needed only to see
the outcome on its own. An operation_id means the submission was recovered:
wait instead of resubmitting. A workspace and revision only confirm create or
sync: then run the intended operation.

Input parameters:

- `detail` (string)

### `cancel` (~35 tokens)

Cancel an operation, the latest or operation_id; wait until it finishes.

Input parameters:

- `detail` (string)
- `operation_id`

### `stop` (~26 tokens)

Stop the worker so it stops using credit. Saved files are kept.

Input parameters:

- `generation`

### `feedback` (~198 tokens)

Report a confirmed problem with LeanWarp itself to the LeanWarp team.

For a bug you reproduced, a result that contradicts the guide, a confusing
error, a capability you needed and lacked, or slowness that held up the work;
never for Lean errors in the user's proof. One report per issue, at a pause
between steps, then continue the task. Free; starts no compute. If recorded
is false, carry on without retrying.

Input parameters:

- `details` (string): What you did, expected and got, up to 4000 characters. Never the user's source, proofs or secrets.
- `kind` (string): Required. An unlisted kind is recorded as other.
- `operation_id` (string): The operation it is about; defaults to the latest one.
- `severity` (string)
- `summary` (string): Required. One line, 8 to 200 characters: what is wrong or missing.

### `reconcile` (~64 tokens)

Adopt the workspace's revision after another client changed its files.

Use only after a revision_conflict you have resolved. The result lists the
paths the next sync uploads or deletes, overwriting the other client's files,
and under remote_only the files only the workspace has, which stay.

### `prune` (~70 tokens)

Delete files that only the workspace has, such as beyond a partial checkout.

Without confirm, lists them and deletes nothing. Show the user that list and
ask. Pass the returned confirm token only after they agree: this cannot be
undone and the files may be a teammate's.

Input parameters:

- `confirm`

### `disconnect` (~20 tokens)

Forget this project's stopped workspace so it can connect to another environment.

### `delete` (~44 tokens)

Permanently delete a workspace with its files and results; credit is kept.

Only when the user asked to delete that workspace. Cannot be undone.

Input parameters:

- `workspace_id` (string, required)

## Diagnostics

Captured diagnostic sections: Provenance, Install scripts, Dependencies. The full working is on the page: https://verifymcp.io/servers/isagoge-labs-leanwarp/leanwarp#diagnostics

## Score history

- 2026-11-30: 91
- 2026-11-29: 75
- 2026-11-28: 75
- 2026-11-27: 74
- 2026-11-26: 74
- 2026-11-25: 73
- 2026-11-24: 73
- 2026-11-23: 87
- 2026-11-22: 87
- 2026-11-21: 71
- 2026-11-20: 71
- 2026-11-19: 85
- 2026-11-18: 70
- 2026-11-17: 70
- 2026-11-16: 69
- 2026-11-15: 69
- 2026-11-14: 68
- 2026-11-13: 83
- 2026-11-12: 67
- 2026-11-11: 67
- 2026-11-10: 66
- 2026-11-09: 81
- 2026-11-08: 79
- 2026-11-07: 64
- 2026-11-06: 64

## Common questions

### What is the LeanWarp MCP server?

LeanWarp is an MCP server listed in the public MCP registry as io.github.Isagoge-Labs/leanwarp. Check and verify Lean 4 proofs on hosted, warm Lean and Mathlib workers. This page covers its PyPI package (leanwarp).

### Is the LeanWarp MCP server safe to use?

LeanWarp scores 91 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 30 November 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the LeanWarp MCP server expose?

LeanWarp exposes 34 tools: doctor, files, versions, environments, account, and 29 more. Their descriptions and schemas cost roughly 3,693 tokens of context every time the server is loaded.

### Is the LeanWarp MCP server still maintained?

LeanWarp is still listed as active in the MCP registry. We last reached this channel on 30 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the LeanWarp MCP server under?

LeanWarp declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

### What did VerifyMCP test on the LeanWarp MCP server?

VerifyMCP ran 16 checks on LeanWarp, covering Malware scan, Known CVEs, Install scripts, Dependency health and 12 more. Endpoint Security and Transport & Reachability do not apply to a PyPI package, so they were not tested. The score does not measure everything, and the scoring documentation lists what it leaves out.

## Links

- PyPI project: https://pypi.org/project/leanwarp/
- Socket report: https://socket.dev/pypi/package/leanwarp
- Repository: https://github.com/Isagoge-Labs/LeanWarp-SDK
- Website: https://isagoge.in/leanwarp
- Changelog RSS feed: https://verifymcp.io/servers/isagoge-labs-leanwarp/leanwarp.xml
- Changelog JSON feed: https://verifymcp.io/servers/isagoge-labs-leanwarp/leanwarp/changelog.json
- Trust report (JSON): https://verifymcp.io/servers/isagoge-labs-leanwarp/leanwarp.json
- HTML version of this page: https://verifymcp.io/servers/isagoge-labs-leanwarp/leanwarp
