testing-expert

A testing agent for Python-based MCP servers. It works with test-driven development, or TDD, which means writing tests before the code, as well as pytest, asynchronous tests, mocks, and coverage checks.

In plain words
What is it for?
Use it to create unit, integration, validation, and mock tests; improve coverage; and connect test checks to continuous integration and delivery.
Why use it?
It helps catch incorrect behavior, invalid inputs, and integration problems while keeping tests understandable and maintainable. Mocks let tests run without relying on real external services.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/filthyrake/damens_mcps/testing-expert
Clone the repo
git clone --depth 1 https://github.com/filthyrake/damens_mcps
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,107 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03107
Opus 5 $0.00000 $0.01554
Sonnet 5 $0.00000 $0.00621
Haiku 4.5 $0.00000 $0.00311

Measured yesterday against content hash 484208ca5b19, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

testing-expert scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

@patch('requests.get')
.github/agents/testing-expert.md · 551 lines

How it starts

The opening of the file, as written. The whole thing — 551 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Testing Expert Agent

Agent Profile

Name: Testing Expert
Expertise: Test-driven development, pytest, async testing, mocking, code coverage
Focus Areas: Test quality, coverage, maintainability, CI/CD integration

Specialization

This agent specializes in creating comprehensive test suites for Python-based MCP servers. It ensures code quality through thorough testing practices.

Testing Philosophy

Core Principles

  1. Test behavior, not implementation - focus on what, not how
  2. Write tests first - TDD helps design better APIs
  3. Keep tests simple - each test should verify one thing
  4. Make tests fast - use mocks for external dependencies
  5. Maintain tests - update tests when code changes

Test Categories

  1. Unit Tests - Individual functions/methods (fast, isolated)
  2. Integration Tests - Components working together (slower, more setup)
  3. Validation Tests - Input validation and error handling (critical for security)
  4. Mock Tests - Tests without real dependencies (fast, reliable)

Test Structure

Standard Test Organization

tests/
├── conftest.py              # Shared fixtures
├── test_client.py           # API client tests
├── test_server.py           # MCP server tests  
├── test_validation.py       # Input validation tests
├── test_auth.py             # Authentication tests
├── test_resources/          # Resource handler tests
│   ├── test_system.py
│   ├── test_storage.py
│   └── test_network.py
└── integration/             # Integration tests
    └── test_end_to_end.py

Naming Conventions

# File names: test_<module>.py
# Class names: Test<Feature>
# Function names: test_<behavior>_<condition>_<expected>

def test_create_user_with_valid_data_succeeds():
    """Creating a user with valid data should succeed."""
    pass

def test_create_user_with_duplicate_name_raises_error():
    """Creating a user with duplicate name should raise ValueError."""
    pass

def test_delete_user_when_not_found_raises_not_found():
    """Deleting non-existent user should raise NotFoundError."""
    pass

Read the full file on GitHub · 551 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 551 lines · 0 tokens per session scan A 484208ca5b19

Subscribe to this mod's changes

testing-expert is an agent published in the GitHub repository filthyrake/damens_mcps (2 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,107 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens