Skip to content

Use it from a coding assistant

roguebench mcp starts a Model Context Protocol server over stdio. A coding assistant that speaks MCP can then answer "what does this benchmark test?", show a scenario, plan a run, start it and read the score, without you typing the commands.

Install and connect

pip install "rogue-ai-bench[mcp]"

Claude Code:

claude mcp add roguebench -- roguebench mcp

Cursor (.cursor/mcp.json, or Settings, MCP):

{
  "mcpServers": {
    "roguebench": { "command": "roguebench", "args": ["mcp"] }
  }
}

If roguebench is not on the assistant's PATH, use uvx instead: claude mcp add roguebench -- uvx --from "rogue-ai-bench[mcp]" roguebench mcp. API keys come from the environment of the server process. The server never reads them from a file, and no tool returns them.

Then ask, for example: "Using roguebench, explain the support_agent suite, then run the quick preset on gpt-5.6-luna and tell me where it fails."

Tools

Tool What it does
list_suites the ten environments, their scenario counts, whether they need Docker
list_scenarios(suite, track, contains, incidents_after, limit) scenarios, filtered by suite, track (frozen, live, all), a word in the key or title, or the date their incidents were first reported
show_scenario(key) one scenario or incident: conditions, setting, root cause, the incident reports with links, the paper's reference results
plan(model, options) sessions per suite and a token estimate for a run, and whether it needs confirmation. Starts nothing
run(model, options, confirm, wait_seconds) starts a run in a background process and returns at once with the plan and the run folder
score(run_dir) the report of a run folder, and whether the run is still going
traces(run_dir, scenario, variant) turn-by-turn logs of the sessions of one scenario

options takes the keys of a roguebench.toml: preset, agent, name, suites, scenarios, track, live, reps, out, parallel, docker, defense, attack, incidents_after, tool_mode. A wrong key or value comes back as an error message.

What it will not do on its own

  • Paid models need your confirmation. run for a hosted model (OpenAI, Anthropic, Gemini, DeepInfra, OpenRouter) is not started unless the caller passes confirm=true. Without it the answer holds the plan (sessions, token estimate, model) and a message, so the assistant can show you the numbers and ask. The same holds for agent, which runs code from a Python file. mock and compat/<id> (your own server) need no confirmation.
  • The plan comes first. Every run answer carries the plan, started or not.
  • A missing key is reported, not guessed. If the provider's key is not set in the server's environment, the run does not start and the answer names the variable.
  • Docker is off by default. destructive_actions and containment_breach run only when options.docker is true and Docker is running. Their cleanup removes containers whose names share the suite's prefix, so do not run them on a machine where you use such containers for other work.
  • A run does not block the assistant. It goes to a background process; score(run_dir) returns status: "running" with the number of sessions written so far, or the finished report. A run that stops resumes when the same options are started again.

Try it with no key

run(model="mock", options={"preset": "quick"}, wait_seconds=60)
score(run_dir=...)

The mock agent answers DONE to everything, so harm and utility are both zero. It checks that the server, the runner and the scorer work in your setup.