What is MCP Code Checker?
MCP Code Checker is a Model Context Protocol server that enables AI assistants to run code quality checks on Python projects. It provides a focused set of tools – pylint, pytest, and mypy – scoped to a specified project directory, with structured output and actionable prompts to reduce context load.
How to use MCP Code Checker?
Install via pip from the GitHub repository, then run the mcp-tools-py command-line tool with the required --project-dir argument. Configure it as an MCP server in clients like Claude Desktop or VSCode using the mcp-config tool or manual JSON configuration. No additional setup beyond pointing to a virtual environment where pylint, pytest, and mypy are installed.
Key features of MCP Code Checker
- Runs pylint, pytest, and mypy on Python projects
- Auto-detects source and test directories from
pyproject.toml
- Customizable parameters for each tool (extra args, markers, strict mode)
- Structured JSON logging with function call tracking
- Output formatted as actionable prompts for AI assistants
- Scoped to a single project directory for security
Use cases of MCP Code Checker
- AI‑assisted code review that triggers linting and type checking
- Automated test execution and failure analysis within a chat interface
- Continuous integration style checks triggered from an MCP client
- Developer debugging with detailed logs of each tool execution
コメント