Skip to main content

Overview

After generation, MCP Blacksmith can lint the generated code to verify correctness. This checks for syntax errors, import issues, type problems, and code quality.

Available checkers

CheckerWhat it does
ASTParses all Python files to verify valid syntax
RuffFast Python linter — catches style issues, unused imports, undefined names
ImportVerifies all imports resolve correctly
PyrightStatic type checking for type safety
PydanticValidates Pydantic model definitions

How to use

In the dashboard:
  1. Generate your server
  2. Open the Linting tab
  3. Select which checkers to run
  4. Review results in the Problems panel

Interpreting results

Linting results appear in the Problems panel, grouped by file and severity. Each issue includes the file, line number, and a description of the problem.
Generated code is designed to pass all linting checks. If you see lint errors on freshly generated code, please report it — it helps us improve the generator.