Skip to main content
Glama
Mettle Review MCP

Mettle Review MCP

Official
README.md
# Mettle Review MCP

Ask your coding agent what blocked a pull request and which evidence supports that decision. Mettle Review MCP reads an exported MettleSecurity report on your machine and serves it to an MCP client over stdio. Supply a baseline to see which findings appeared, persisted, or dropped out of the review.

## Try a review

Use macOS or Linux with Python 3.10 or later. The checkout includes three reports from a synthetic Python client, their evidence captures, and the source revisions they describe.

```sh
git clone https://github.com/MettleSecurity-code/mettle-review-mcp.git
cd mettle-review-mcp
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python -m unittest discover -s tests -v
```

From the same directory, register the sample with your client. For **Claude Code**, run

```sh
claude mcp add --scope local --transport stdio mettle-review -- \
  "$PWD/.venv/bin/python" "$PWD/mcp_server.py" \
  --report "$PWD/examples/reports/proposed/report.json" \
  --baseline "$PWD/examples/reports/baseline/report.json"
```

For **Codex CLI**, run

```sh
codex mcp add mettle-review -- \
  "$PWD/.venv/bin/python" "$PWD/mcp_server.py" \
  --report "$PWD/examples/reports/proposed/report.json" \
  --baseline "$PWD/examples/reports/baseline/report.json"
```

Open the client and ask:

> Why did the proposed revision fail? Use mettle-review to identify the blockers, cite the capture for the new finding, and tell me which check was skipped.

The proposed revision has two open findings about missing HTTP timeouts. `MS-001` also appeared in the baseline. `MS-002` is new and its capture points to `client.py` line 11. The syntax check was skipped. In the fixed report, both checks passed and neither finding was observed.

## What the agent can read

| MCP interface | Result |
| --- | --- |
| `list_findings` | A page of finding IDs, titles, fingerprints, severities, confidence levels and statuses |
| `finding_evidence` | A page of redacted capture text and the SHA-256 of the original capture |
| `review_status` | The active thresholds, decision, blocking IDs and coverage gaps |
| `compare_audits` | Changes between the baseline and current report, including scope and check coverage differences |
| `mettle://review/summary` | A JSON resource combining the decision and comparison |

The server reads the reports selected at startup. It has no tool to scan a target, change a pull request, or access a wallet. A client can send returned text to its model provider, so choose reports suitable for that client.

## Documentation

- [Installation guide for macOS and Linux](docs/installation.md)
- [Use the server with an agent](docs/using-an-agent.md)
- [Tool arguments, report format and review policy](docs/reference.md)
- [Browse the interactive walkthrough on the Mettle website](https://mettlesecurity.xyz/docs/)

Released under the [MIT License](LICENSE).