"... hmm, I should run lint and tests ..."
The Agent Loop:
- I should run lint and tests on the code.
- I'll run and wait!
or:
- Hmm, I found no instructions.
- I will try by running a couple of random shell commands.
This process is slow, and sometimes unreliable.
The Agent Checks MCP is built to make the code verification process faster and with less frustration. Without Human interaction, it will analyze the codebase to figure out the setup and will find the commands for linting, type checking and testing and without the need of an AGENTS.md.
The MCP takes the burden off the Agent. It watches for changes in a project while the agent is working and keeps the lint, typecheck, and test results up to date. When your agent needs the result, it will get it instantly instead of having to wait for each run.
When your agent modifies a Python file, the MCP will run lint and type checks for the changed code. It will also run the affected tests only. The MCP figures that out by parsing the code.
Here's the agent-checks-mcp on PyPI.
How does it figure out what’s in the repo?
The MCP looks in the following places (in order) and stops at the first one that has a command:
- Justfile: a recipe named lint, typecheck/type-check/types, or test/tests
- Makefile: same-named target
- pyproject tasks: poe, then pixi, then hatch
- pyproject tools: lint, type-checker and test tools listed as a dependency or with a config section/marker file
- venv: any of those tools actually installed in the .venv
When the tools have been identified, the MCP knows how to run the commands. To be able to run things based on the file changes, it keeps track on multiple levels of commands:
the top level (such as just lint) and the underlying tool (such as ruff). To run incremental checks, it uses the underlying tool.
The result of having the agent rely on the Agent Checks MCP to do the linting, type-checking and testing is super-fast code checks. I hope you will find this useful to have in your agentic setup!
Top Photo by Eric Krull on Unsplash

No comments:
Post a Comment