Skip to main content
Glama
CODESYS MCP Server
by lm200000

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODESYS_EXEYesAbsolute path to the official CODESYS.exe. Must point to a file named CODESYS.exe; the server derives the profile directory from it.
CODESYS_MODENoMust be spawn if set; any other value (e.g. attach) is reported as a configuration error. Attach-related variables are not supported by this package.
CODESYS_NOUINoWhen set to 1, adds --noUI. Do not enable on SP21: scripts may not run.
CODESYS_PROFILEYesExact profile name installed next to CODESYS (e.g. the name of a <CODESYS_PROFILE>.profile.xml in the Profiles directory).
CODESYS_DATA_DIRNoDirectory for request temp folders and the engineering.lock file.%LOCALAPPDATA%\CodesysMcp\standalone
CODESYS_TIMEOUT_MSNoTimeout for one request in milliseconds. On timeout the IDE is not killed automatically; the error contains the run directory to inspect.660000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
codesys_engineeringA

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.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 1 tool

Disambiguation5/5

There is only one tool, so an agent cannot misselect between competing options. The internal sub-operations (create_empty, batch, save) are documented within the single description rather than exposed as separate confusable tools.

Naming Consistency4/5

With a single tool there is nothing to be inconsistent with, and codesys_engineering is clear and snake_case. It is a noun/domain name rather than the verb_noun convention, which is a minor deviation but not confusing.

Tool Count3/5

A single monolithic tool covering an entire CODESYS engineering domain feels thin, essentially a dispatcher hiding create/batch/save operations behind one entry point. It is defensible as a deliberately minimal spawn-only wrapper, but offers no granular surface.

Completeness3/5

The offline project-file editing scope is coherent (create empty container, batch edits, optional save), but notable gaps exist: no read/inspect operations, no listing or deleting project objects, and explicitly no online/PLC or attach access. Agents can do write workflows but have limited introspection.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues