
symfony mate plugin for infection
symfony mate plugin for infection
·
A Symfony Mate extension that lets coding agents run Infection mutation testing and work with its results: find escaped mutants, understand why they escaped, and write tests that kill them.
It is built on data Infection already produces (its JSON log and infection describe). The ideas come from the "AI-assisted mutation testing" section of infection/infection#3498, where the agent supplies the reasoning and this extension supplies the evidence.
composer require --dev wickedone/infection-mate-extension
vendor/bin/mate initThe project needs infection/infection (with --logger-json, see below), a test framework, and a coverage driver (pcov or xdebug). Extension discovery runs on Composer install and update; vendor/bin/mate discover refreshes it manually.
| Name | Kind | Purpose |
|---|---|---|
infection-run | tool | Run Infection, scoped by paths and any options of the installed Infection. Returns stats and a runId |
infection-summary | tool | MSI, outcome counts, escaped mutants grouped by file and mutator |
infection-escaped | tool | List mutants of a run by bucket, file or mutator, paged |
infection-mutant | tool | One mutant: diff, surrounding source lines, optional test output |
infection-describe-mutator | tool | Wraps infection describe for a mutator |
infection://config | resource | The project's Infection configuration |
Agents call them through the vendor/bin/mate CLI:
vendor/bin/mate tools:call infection-run --paths=src/Service --options='{"only-covering-test-cases":true}'
vendor/bin/mate tools:call infection-escaped --bucket=escaped --file=src/Service/Calc.php
vendor/bin/mate tools:call infection-mutant --ref=escaped:0 --withOutput=true
vendor/bin/mate resources:read infection://configThe extension also ships the mate-infection-mutation-testing skill with the workflow, how to read each bucket, and the rules for equivalent mutants and ignore annotations.
Responses are JSON. When helgesverre/toon is installed in the project (composer require --dev helgesverre/toon), Mate encodes them as the more token-efficient TOON format instead. There is no setting: uninstall the package to get JSON back.
infection-run passes --logger-json=<file> to Infection and reads that file back, so your configuration is used as is and never copied or modified. The file is a short-lived .infection.mate.<token>.log.json in the project root, deleted after every run. This needs an Infection version that has the --logger-json option (infection/infection#3735).
Parsed runs are cached in Mate's cache directory (the last 10) so the drill-down tools never re-run Infection.
These follow from what Infection reports today:
ref like escaped:3 is valid only within one runId.Output that originates from the inspected project (diffs, source, test output) is returned inside an untrusted_data envelope.
composer install
composer test
composer lint
composer fix
vendor/bin/mate debug:capabilities
vendor/bin/mate skills:validateCapabilities live in src/Capability/ and are registered in config/config.php. See CLAUDE.md and AGENTS.md for conventions.
"Because every Mate needs Mates"
This repo does not document an install step we could read. Check the README on GitHub.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/infection-mate-extension to learn what the "Infection Mate Extension" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
This server doesn't publish a machine-readable tool manifest, and it doesn't expose a public endpoint we could ask. Connect the server locally to see what it exposes.
We could not run this server: it ships no npx package for our sandbox and no public endpoint. The four checks that need a live server are left out, and the grade tops out at B until one exists.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/infection-mate-extension)Nothing comparable is listed yet.
No tagged releases on record.
Connect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "infection-mate-extension" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.