Complete reference for MCP-Eval command-line interface, including commands and flags
Complete reference for MCP-Eval command-line interface, including commands and flags.
Command | Description | Example |
---|---|---|
mcp-eval init | Initialize a new MCP-Eval project | mcp-eval init |
mcp-eval generate | Generate test scenarios for MCP servers | mcp-eval generate --style pytest |
mcp-eval run | Execute test files and datasets | mcp-eval run tests/ |
mcp-eval dataset | Run dataset evaluation | mcp-eval dataset datasets/basic.yaml |
mcp-eval validate | Validate configuration | mcp-eval validate --quick |
mcp-eval doctor | Diagnose setup issues | mcp-eval doctor --full |
mcp-eval issue | Create GitHub issue with diagnostics | mcp-eval issue --title "Bug report" |
mcp-eval server add | Add MCP server to config | mcp-eval server add |
mcp-eval server list | List configured servers | mcp-eval server list -v |
mcp-eval agent add | Add test agent to config | mcp-eval agent add |
mcp-eval agent list | List configured agents | mcp-eval agent list --name default |
mcp-eval version | Show version information | mcp-eval version |
Flag | Description | Default | Example |
---|---|---|---|
--out-dir | Project directory for configs | . | --out-dir ./my-project |
--template | Bootstrap template: empty , basic , sample | basic | --template sample |
mcpeval.yaml
and mcpeval.secrets.yaml
.cursor/mcp.json
or .vscode/mcp.json
Flag | Description | Default | Example |
---|---|---|---|
--out-dir | Project directory | . | --out-dir ./project |
--from-mcp-json | Import from mcp.json file | - | --from-mcp-json .cursor/mcp.json |
--from-dxt | Import from DXT file | - | --from-dxt manifest.dxt |
Flag | Description | Default | Example |
---|---|---|---|
--out-dir | Project directory | . | --out-dir ./project |
Flag | Description | Default | Example |
---|---|---|---|
--out-dir | Project directory | . | --out-dir ./tests |
--style | Test format: pytest , decorators , dataset | - | --style pytest |
--n-examples | Number of scenarios to generate | 6 | --n-examples 10 |
--provider | LLM provider: anthropic , openai | - | --provider anthropic |
--model | Specific model to use | - | --model claude-3-opus-20240229 |
--verbose | Show detailed error messages | False | --verbose |
--output | Explicit output file path | - | --output tests/custom.py |
--update | Append tests to existing file instead of creating new | - | --update tests/test.py |
--update
, the command appends new tests to an existing file rather than creating a new one. The file path provided to --update
becomes the target file.
Example:
Flag | Description | Default | Example |
---|---|---|---|
-v, --verbose | Detailed output | False | -v |
--json | Output JSON report | - | --json results.json |
--markdown | Output Markdown report | - | --markdown results.md |
--html | Output HTML report | - | --html results.html |
--max-concurrency | Parallel execution limit | - | --max-concurrency 4 |
run
command.
Source: runner.py
Flag | Description | Default | Example |
---|---|---|---|
--project-dir | Project directory | . | --project-dir ./project |
-v, --verbose | Show full details | False | -v |
Flag | Description | Default | Example |
---|---|---|---|
--project-dir | Project directory | . | --project-dir ./project |
-v, --verbose | Show full instructions | False | -v |
--name | Show specific agent | - | --name default |
Flag | Description | Default | Example |
---|---|---|---|
--project-dir | Project directory | . | --project-dir ./project |
--servers/--no-servers | Validate servers | True | --no-servers |
--agents/--no-agents | Validate agents | True | --no-agents |
--quick | Skip connection tests | False | --quick |
Flag | Description | Default | Example |
---|---|---|---|
--project-dir | Project directory | . | --project-dir ./project |
--full | Include connection tests | False | --full |
Flag | Description | Default | Example |
---|---|---|---|
--project-dir | Project directory | . | --project-dir ./project |
--title | Issue title | - | --title "Connection timeout" |
--no-include-outputs | Skip test outputs | False | --no-include-outputs |
--no-open-browser | Don’t open browser | False | --no-open-browser |
mcp-eval init
and can be edited manually.
Variable | Description | Example |
---|---|---|
ANTHROPIC_API_KEY | Anthropic Claude API key | sk-ant-... |
OPENAI_API_KEY | OpenAI API key | sk-... |
GOOGLE_API_KEY | Google API key | ... |
COHERE_API_KEY | Cohere API key | ... |
AZURE_API_KEY | Azure OpenAI API key | ... |
MCPEVAL_CONFIG | Path to config file | ./config/mcpeval.yaml |
MCPEVAL_SECRETS | Path to secrets file | ./config/secrets.yaml |
@task
and @setup
.
Provides rich async support and session management.