Skip to main content
Glama
CODESYS MCP Server
by lm200000

codesys_engineering

Runs official CODESYS engineering actions through a private script process to inspect, edit, compile, and save .project files; batch steps stop on first failure.

Instructions

Official CODESYS engineering through the ScriptEngine, spawn-only. Launches a private CODESYS.exe --runscript process, edits the given .project file, and exits. Without save=true nothing is written to disk. No attach mode, no plugin, no online/PLC access. Requires CODESYS_EXE and CODESYS_PROFILE environment variables; run "node tools/check-config.mjs" to validate them. create_empty creates a new empty .project container (no controller). batch runs 1..200 steps and stops on the first failure. Close other CODESYS instances first, or pass isolated=true for a separate user profile.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>",
      "project": "<project>"
    },
    "name": "codesys_engineering"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNo
actionYes
projectYesAbsolute path to a .project file.
isolatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does so well: spawn-only process model, process exits after the run, write gating via save=true, required CODESYS_EXE/CODESYS_PROFILE environment variables with a validation command, the concurrency hazard of other CODESYS instances, the isolated=true workaround, and batch fail-fast behavior with a 1..200 step cap. These are exactly the behavioral traits an agent cannot get from the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded: mechanism, then write behavior, then scope exclusions, then prerequisites, then per-action semantics. Every sentence carries information, though the density of clauses in single sentences (env vars plus validation command, concurrency plus isolated flag) makes it slightly run-on and harder to scan than a bulleted form would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter tool with 25% schema coverage and no output schema, this covers the prerequisites, isolation, persistence gating, and action selection an agent needs before calling. The main omission is what a call returns (per-step results, error shape after a batch failure) and whether partial edits persist on failure, which matters for a mutation tool with no annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% (only `project` is documented), so the description must compensate, and it adds real meaning for `action` (create_empty vs batch semantics, step cap) and `isolated` (separate user profile to avoid instance conflicts), plus the save=true convention. It does not explain the `steps` structure, but the schema's own args field documents the per-op contract in depth, so the remaining gap is modest.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Official CODESYS engineering through the ScriptEngine, spawn-only,' then concretely describes the mechanism — launching a private CODESYS.exe --runscript process, editing the given .project file, and exiting. There are no siblings, but the scope boundaries ('no attach mode, no plugin, no online/PLC access') make it unmistakable what class of operation this is.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly distinguishes the two actions ('create_empty creates a new empty .project container (no controller)' vs 'batch runs 1..200 steps and stops on the first failure') and gives preconditions: close other CODESYS instances first, or pass isolated=true. It also states when persistence happens ('Without save=true nothing is written to disk') and how to validate the required environment, leaving nothing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools