Skip to main content

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

  1. In NinjaEval, open ⚙ Workspace & API keys and create a key for the agent (e.g. coding-agent).

  2. 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 (mcpServers in its JSON config):

    { "mcpServers": { "ninjaeval": { "command": "uvx", "args": ["ninjaeval-mcp"],
                                     "env": { "NINJAEVAL_API_KEY": "efk_..." } } } }
    

    Or pip install ninjaeval-mcp and run ninjaeval-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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ninjaeval-mcp 0.1.0
File Size Uploaded Provenance Actions
ninjaeval_mcp-0.1.0.tar.gz 12.1 kB With provenance Details for ninjaeval_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ninjaeval-mcp 0.1.0
File Interpreter ABI Platform Actions
ninjaeval_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for ninjaeval_mcp-0.1.0-py3-none-any.whl

Total release size: 22.5 kB

Release files / ninjaeval_mcp-0.1.0.tar.gz

Download URL ninjaeval_mcp-0.1.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9a708ea09c900d99a1dad8239ce6ec415b44143679c6b8c31da726e45ca96a77
BLAKE2b-256 checksum
How to use checksums
4a21d99bd387fcb8e299057f4f9a4c062507f507793ac1abf4a634adac0f6b12
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 log

Release files / ninjaeval_mcp-0.1.0-py3-none-any.whl

Download URL ninjaeval_mcp-0.1.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5dfb035147c52e26f3f7fba6a6da41fcdf530faea1ccad75749cf7c773832538
BLAKE2b-256 checksum
How to use checksums
6ca31ea69940187f4ce38e368d5e9b8755059f5b64ff94bdc0e1366b8a1048b0
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 log

Security for ninjaeval-mcp 0.1.0

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.

Select from 2 files

Attestation for ninjaeval_mcp-0.1.0.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 log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page