Skip to content
run-benchmark logo

Run Benchmark

run-benchmark

Run an MCP evaluation using mcpbr on SWE-bench or other datasets.

SKILL.md

Full skill instructions

Instructions

You are an expert at benchmarking AI agents using the mcpbr CLI. Your goal is to run valid, reproducible evaluations.

Critical Constraints (DO NOT IGNORE)

  1. Docker is Mandatory: Before running ANY mcpbr command, you MUST verify Docker is running (docker ps). If not, tell the user to start it.

  2. Config is Required: mcpbr run FAILS without a config file. Never guess flags.

    • IF no config exists: Run mcpbr init first to generate a template.
    • IF config exists: Read it (cat mcpbr.yaml or the specified config path) to verify the mcp_server command is valid for the user's environment (e.g., check if npx or uvx is installed).
  3. Workdir Placeholder: When generating configs, ensure args includes "{workdir}". Do not resolve this path yourself; mcpbr handles it.

  4. API Key Required: The ANTHROPIC_API_KEY environment variable must be set. Check for it before running evaluations.

Common Pitfalls to Avoid

  • DO NOT use the -m flag unless the user explicitly asks to override the model in the YAML.
  • DO NOT hallucinate dataset names. Valid datasets include:
    • SWE-bench/​SWE-bench_Lite (default for SWE-bench)
    • SWE-bench/​SWE-bench_Verified
    • sunblaze-ucb/​cybergym (for CyberGym benchmark)
    • MCPToolBench/​MCPToolBenchPP (for MCPToolBench++)
  • DO NOT hallucinate flags or options. Only use documented CLI flags.
  • DO NOT forget to specify the config file with -c or --config.

Supported Benchmarks

mcpbr supports three benchmarks:

  1. SWE-bench (default): Real GitHub issues requiring bug fixes

    • Dataset: SWE-bench/​SWE-bench_Lite or SWE-bench/​SWE-bench_Verified
    • Use: mcpbr run -c config.yaml or --benchmark swe-bench
  2. CyberGym: Security vulnerabilities requiring PoC exploits

    • Dataset: sunblaze-ucb/​cybergym
    • Use: mcpbr run -c config.yaml --benchmark cybergym --level [0-3]
  3. MCPToolBench++: Large-scale tool use evaluation

    • Dataset: MCPToolBench/​MCPToolBenchPP
    • Use: mcpbr run -c config.yaml --benchmark mcptoolbench

Execution Steps

Follow these steps in order:

  1. Verify Prerequisites:

    # Check Docker is running
    docker ps
    
    # Verify API key is set
    echo $ANTHROPIC_API_KEY
    
  2. Check for Config File:

    • If mcpbr.yaml (or user-specified config) does NOT exist: Run mcpbr init to generate it.
    • If config exists: Read it to understand the configuration.
  3. Validate Config:

    • Ensure mcp_server.command is valid (e.g., npx, uvx, python are installed).
    • Ensure mcp_server.args includes "{workdir}" placeholder.
    • Verify model, dataset, and other parameters are correctly set.
  4. Construct the Command:

    • Base command: mcpbr run --config <path-to-config>
    • Add flags as needed based on user request:
      • -n <number> or --sample <number>: Override sample size
      • -v or -vv: Verbose output
      • -o <path>: Save JSON results
      • -r <path>: Save Markdown report
      • --log-dir <path>: Save per-instance logs
      • -M: MCP-only evaluation (skip baseline)
      • -B: Baseline-only evaluation (skip MCP)
      • --benchmark <name>: Override benchmark
      • --level <0-3>: Set CyberGym difficulty level
  5. Run the Command: Execute the constructed command and monitor the output.

  6. Handle Results:

    • If the run completes successfully, inform the user about the results.
    • If errors occur, diagnose and provide actionable feedback.

Example Commands

# Full evaluation with 5 tasks
mcpbr run -c config.yaml -n 5 -v

# MCP-only evaluation
mcpbr run -c config.yaml -M -n 10

# Save results and report
mcpbr run -c config.yaml -o results.json -r report.md

# Run CyberGym at level 2
mcpbr run -c config.yaml --benchmark cybergym --level 2 -n 5

# Run specific tasks
mcpbr run -c config.yaml -t astropy__astropy-12907 -t django__django-11099

Troubleshooting

If you encounter errors:

  1. Docker not running: Remind user to start Docker Desktop or Docker daemon.
  2. API key missing: Ask user to set export ANTHROPIC_API_KEY="sk-ant-..."
  3. Config file invalid: Re-generate with mcpbr init or fix the YAML syntax.
  4. MCP server fails to start: Test the server command independently.
  5. Timeout issues: Suggest increasing timeout_seconds in config.

Important Reminders

  • Always read the config file before making assumptions about what's configured.
  • Never modify the config file without explicit user permission.
  • Use the mcpbr models command to check available models if needed.
  • Use the mcpbr benchmarks command to list available benchmarks.

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View