NinjaEval MCP server
Lets your coding agent (Claude Code, Cursor, Copilot, any MCP client) test an AI change with NinjaEval before it calls the change done.
The agent edits your bot's system prompt, model or tools, then calls test_change. NinjaEval replays your test cases
on production and on the change and grades every answer. It returns ready or blocked, with the cause of each
regression and a fix that was re-run to check it. The agent applies the fix and tests again. Shipping stays with you:
the server can't promote a version to production.
Set up
-
In NinjaEval, open ⚙ Workspace & API keys and create a key for the agent (e.g.
coding-agent). -
Add the server to your MCP client. For Claude Code:
claude mcp add ninjaeval --env NINJAEVAL_API_KEY=efk_... -- uvx ninjaeval-mcp
Any other client (
mcpServersin its JSON config):{ "mcpServers": { "ninjaeval": { "command": "uvx", "args": ["ninjaeval-mcp"], "env": { "NINJAEVAL_API_KEY": "efk_..." } } } }
Or
pip install ninjaeval-mcpand runninjaeval-mcp.
It runs over stdio on your machine and opens no network port. It talks only to api.ninjaeval.com.
Tools
| Tool | What it does |
|---|---|
whoami |
The workspace, the key's role, today's limits |
list_projects |
Your projects (AI apps under test) |
get_project |
Production's provider, model, system prompt and tools; the gate; suites; recent change tests |
test_change |
Tests a change against production: only the fields you pass change (system_prompt, model, provider, params, tools, code_sha, note, stage, trials). Waits for the verdict and the diagnoses |
get_change_test |
A test's verdict, rules, regressions with cause / explanation / fix (prompt_edits) / whether the fix was verified, cases still failing, and the next step |
diagnose_cases |
Diagnoses failing cases that weren't diagnosed automatically |
get_report |
The full report as Markdown, e.g. for a PR description |
Each response has a next field telling the agent what to do. When the cause is TEST, the test itself is wrong, so
the agent should tell you rather than bend the product to fit it.
Settings
| Variable | Default | |
|---|---|---|
NINJAEVAL_API_KEY |
Workspace key (efk_…) |
|
NINJAEVAL_API_KEY_FILE |
Read the key from a file instead | |
NINJAEVAL_API_URL |
https://api.ninjaeval.com/api/v1/eng |
|
NINJAEVAL_APP_URL |
https://ninjaeval.com |
Used for the links in responses |
NINJAEVAL_MCP_MAX_TESTS |
10 |
Change tests one session may start, so an agent can't loop on fixes indefinitely |
Each change test runs your real app and an AI judge, which takes minutes and counts toward the workspace's daily
limits. Endpoint projects call your service with the system prompt NinjaEval sends. If your service ignores it, test
code changes by deploying them where the endpoint runs and passing code_sha.
Metadata
Release files for ninjaeval-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ninjaeval_mcp-0.1.1.tar.gz | 12.3 kB | With provenance | Details for ninjaeval_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ninjaeval_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ninjaeval_mcp-0.1.1-py3-none-any.whl |
Total release size: 22.7 kB
Release files / ninjaeval_mcp-0.1.1.tar.gz
| Download URL | ninjaeval_mcp-0.1.1.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9fffc9fa5ebf04960536a36cd592c3d22150e27ce1127ae758abaca6e461152
|
|
BLAKE2b-256 checksum How to use checksums |
ee1356da600e01d921d205f33bd56e6d1feda6bef8e9891bc052b818e8e2cddc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / ninjaeval_mcp-0.1.1-py3-none-any.whl
| Download URL | ninjaeval_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
894cb4149c24ce7e2149edee163af006f99e7185c9b360ed37c25432c8b686ab
|
|
BLAKE2b-256 checksum How to use checksums |
415999d6a1f6f953b6e6dd514fcd7f66187fd77a953d3af2f47b64c79d61ae76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logSecurity for ninjaeval-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for ninjaeval_mcp-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.