MCP server for code quality with pylint and pytest
## Code Checker MCP Server: Real-Time Code Validation The **Code Checker MCP Server** provides instant code validation and error checking within Google Antigravity, enabling real-time feedback on syntax errors, type mismatches, and common programming mistakes. ### Why Code Checker MCP? - **Instant Feedback**: Get immediate validation results as you write or modify code - **Multi-Language Support**: Check syntax and semantics for JavaScript, TypeScript, Python, and more - **Type Checking**: Validate type annotations and catch type errors before runtime - **Import Validation**: Verify import statements and module resolutions are correct - **Configuration Validation**: Check configuration files like JSON, YAML, and TOML for errors ### Key Features #### 1. Syntax Validation ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Check this Python file for syntax errors and undefined variables" }] ) ``` #### 2. Type Checking ```python # Validate types response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Run type checking on the TypeScript project and show all type errors" }] ) ``` #### 3. Import Resolution ```python # Check imports response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Verify all import statements resolve correctly and identify missing dependencies" }] ) ``` #### 4. Config Validation ```python # Validate config files response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Validate package.json, tsconfig.json, and .eslintrc against their schemas" }] ) ``` ### Configuration ```json { "mcpServers": { "code-checker": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-code-checker"], "env": { "CHECKER_LANGUAGES": "typescript,python,json", "CHECKER_STRICT_MODE": "true" } } } } ``` ### Use Cases **Development Feedback**: Get instant error feedback without waiting for build or compilation. **Pre-Commit Validation**: Verify code correctness before committing to version control. **Learning Aid**: Help developers understand errors with clear explanations and fix suggestions. **CI Pre-Check**: Quickly validate code before running full CI pipeline to save time. The Code Checker MCP Server provides rapid code validation, catching errors early and accelerating the development feedback loop.
{
"mcpServers": {
"code-checker": {
"mcpServers": {
"code-checker": {
"args": [
"mcp-code-checker"
],
"command": "uvx"
}
}
}
}
}