Available Subagents
mcp-eval ships with several specialized subagents insrc/mcp_eval/data/subagents/
. You can view and copy the complete definitions below. Save these as .md
files in your .claude/agents
directory:
- Core Subagents
- Test Generation Pipeline
Test Writer
View the complete MCP-Eval Test Writer subagent definition.Expert at writing comprehensive mcp-eval tests in all styles (decorator, pytest, dataset).Test Generator
View the complete MCP-Eval Test Generator subagent definition.Generates complete test suites with diverse scenarios and comprehensive coverage.Debugger
View the complete MCP-Eval Debugger subagent definition.Expert at debugging test failures, analyzing OTEL traces, and troubleshooting configuration issues.Config Expert
View the complete MCP-Eval Config Expert subagent definition.Expert at configuring mcp-eval and managing mcpeval.yaml files for optimal performance.Setup
- Option 1: Copy to Project
- Option 2: Reference from Package
- Option 3: Development Mode
For Claude Code:
Using Subagents in Claude Code
Once configured, Claude Code will automatically discover and use these subagents when appropriate. You can also explicitly request them:Writing Tests
Debugging Failures
Configuration Help
Using Subagents for Test Generation
The test generation subagents work together to create high-quality tests:- test-scenario-designer - Designs comprehensive test scenarios
- test-assertion-refiner - Enhances assertions for better coverage
- test-code-emitter - Generates syntactically correct Python code
mcp-eval generate
workflow.
Subagent Examples
Test Writer Example
Themcp-eval-test-writer
subagent can help create tests in any style:
Debugger Example
Themcp-eval-debugger
helps diagnose issues:
- Analyzes OTEL traces to find performance bottlenecks
- Identifies assertion failures and suggests fixes
- Troubleshoots configuration problems
- Explains error messages and stack traces
Config Expert Example
Themcp-eval-config-expert
helps with configuration:
Best Practices
- Use the right subagent for the task - Each subagent is specialized for specific aspects of mcp-eval
- Combine subagents - Use multiple subagents together for complex tasks
- Provide context - Give subagents information about your server’s capabilities
- Review generated code - Subagents provide excellent starting points, but review and customize as needed
- Keep subagents updated - Pull the latest mcp-eval version for improved subagents
Integration with mcp-agent
If you’re using mcp-agent, these subagents are compatible with its agent loading system. Configure yourmcp-agent.config.yaml
to include the mcp-eval subagents search path.
Contributing Subagents
To contribute new subagents:- Create a markdown file following the format in
src/mcp_eval/data/subagents/
- Include the frontmatter with name, description, and tools
- Write clear instructions for the subagent’s expertise
- Test the subagent with real mcp-eval tasks
- Submit a pull request
Related Resources
- Generating Tests with LLMs - Automated test generation
- Agent Configuration - Configure agents for testing
- Best Practices - General mcp-eval best practices
- GitHub: Subagents Source - View all subagent definitions on GitHub