MCPVault

Auto-fix

MCP tool from Twincat Validator MCP by agenticcontrolio

How to use it

Auto-fix is exposed by the Twincat Validator MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the Auto-fix tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Twincat Validator MCP

$pip install twincat-validator-mcp
FULL TWINCAT VALIDATOR MCP LISTING

Other tools in Twincat Validator MCP (16)

autofix_batch

Apply auto-fixes to multiple files matching glob patterns

autofix_file

Apply all safe auto-fixes to a single file in deterministic order

check_specific

Run a named subset of validation checks on a file

extract_methods_to_xml

Promote inline METHOD blocks from the main ST declaration into proper <Method> XML elements

generate_skeleton

Generate a canonical, deterministic XML skeleton for a given file type and subtype

get_context_pack

Return curated knowledge-base entries and OOP policy scoped to a workflow stage (pregeneration or troubleshooting)

get_effective_oop_policy

Resolve the active OOP validation policy for a file or directory (walks ancestor dirs for .twincat-validator.json)

get_validation_summary

Return a 0–100 health score with issue counts by severity

lint_oop_policy

Validate the nearest .twincat-validator.json config file — checks key names, types, and value ranges

process_twincat_batch

Full enforced pipeline across multiple files with summary or full response modes

process_twincat_single

Full enforced pipeline for one file: validate → autofix → validate → suggest fixes if still unsafe

suggest_fixes

Generate prioritized fix recommendations from a validation result

validate_batch

Validate multiple files matching glob patterns (e.g. ["/.TcPOU"])

validate_file

Full validation of a single file — returns all issues with severity, location, code snippet, and explanation

validate_for_import

Quick critical-only check to confirm a file is safe to import into TwinCAT

verify_determinism_batch

Run the strict pipeline twice and report per-file idempotence stability