twincat-mcp-agent
v2026.06.04TwinCAT ST Master - Expert in Beckhoff IEC 61131-3 ExST development
by Cristian Civera17updated 2 months ago
Source
git clone https://github.com/TechIndustryX/twincat-agentClone the source, then follow the repository's marketplace instructions for your runtime. The repository root is the plugin root.
Layout
├── .claude-plugin/plugin.json├── skills/tc-advanced-patterns/SKILL.md├── skills/tc-datatypes-memory/SKILL.md├── skills/tc-naming-conventions/SKILL.md├── skills/tc-syntax-control-flow/SKILL.md├── skills/tc-troubleshooting/SKILL.md└── .mcp.json
Skills5
Use this skill when implementing advanced TwinCAT 3 (ExST) features. It covers Properties (GET/SET), Methods, initialization lifecycles (FB_init, FB_reinit, FB_exit), State Machine patterns, pragmas (attributes, conditional compiling, regions, message output), and PlcTaskSystemInfo access.
Use this skill when the user asks about data types, arrays, structures (STRUCT), enumerations (ENUM), pointers (POINTER), references (REFERENCE), or dynamic memory allocation (NEW/DELETE). It also contains critical rules for memory alignment (pack_mode) to minimize padding bytes.
Use this skill ALWAYS before generating or modifying the names of any variables, Function Blocks (FB), Data Types (DUT), Functions, Methods, Properties, or Interfaces. It contains the mandatory Beckhoff Hungarian notation rules, prefixes (b, n, f, st, fb, etc.), and shading/name resolution rules to avoid conflicts.
Use this skill to correctly format ST (Structured Text) logic, operators, and control flow statements. It includes precedence rules, IF/CASE/FOR/WHILE loops syntax, mathematical/bitwise operator rules (MOD, SHL, ADR, BITADR), and the list of reserved IEC keywords.
Use this skill ONLY when the user reports a build error, a compilation warning, or when `CheckPlcSyntaxAsync` fails. It contains specific fixes for TwinCAT IL Errors (4200-4213) and explanations for standard Compiler Warnings (1502-1990).
MCP servers2
- command
- cmd.exe
- args
- /c ${CLAUDE_PLUGIN_ROOT}/TwinCat.Xae.Mcp.Server.exe
- url
- https://twincat-infosys-mcp.cristiancivera.com/
MCP configuration uses runtime-provided plugin path placeholders such as ${PLUGIN_ROOT} or ${CLAUDE_PLUGIN_ROOT}. Review the manifest for the runtime-specific expansion rules.
Manifests1
{
"name": "twincat-mcp-agent",
"version": "2026.06.04",
"description": "TwinCAT ST Master - Expert in Beckhoff IEC 61131-3 ExST development",
"author": {
"name": "Cristian Civera",
"email": "cristian@cristiancivera.com"
},
"keywords": [
"twincat",
"beckhoff",
"plc",
"iec61131",
"structured-text"
]
}