What is MCP Code Checker?
MCP Code Checker is a Model Context Protocol (MCP) server that provides code quality checking operations for Python projects. It enables AI assistants like Claude, VSCode with GitHub Copilot, or other MCP-compatible clients to run pylint, pytest, and mypy checks within a specified project directory.
How to use MCP Code Checker?
Install the server via pip (pip install git+https://github.com/MarcusJellinghaus/mcp-tools-py.git), then run it with the required --project-dir argument. Configure it in your MCP client (e.g., Claude Desktop) using the mcpServers JSON block, pointing either --python-executable or --venv-path to the environment where pytest, pylint, and mypy are installed.
Key features of MCP Code Checker
- Run pylint checks for code quality issues
- Run pytest to identify failing tests
- Run mypy type checking with strict mode
- Auto-detection of source and test directories from
pyproject.toml
- Structured JSON logging with full call tracking
- Security: only defined tools can be executed, scoped to project directory
Use cases of MCP Code Checker
- Automatically check Python code quality during AI-assisted development
- Run tests and type checks without giving the AI assistant direct shell access
- Integrate code quality checks into MCP-compatible IDEs like VSCode or Cursor
- Obtain structured, context-aware feedback for LLMs to act on
评论