Command: Enable MCP Server
Function: The command starts and stops the CODESYS MCP Server backend. The MCP Server must be running in order for MCP Clients to connect to the CODESYS Development System.
Call: Tools menu or toolbar icon:
: The MCP Server is stopped. Clicking the icon will start the MCP Server.
The MCP Server is running. Clicking the icon will stop the MCP Server.
Requirements: A license for the MCP Server is available.
Important
Only one instance of the MCP Server can be enabled at a time. The simultaneous execution of multiple CODESYS instances with an enabled MCP Server is currently not supported.
Using the command programmatically
The batch command ["ai_engineering_tools", "enable_mcp_stdio"] accepts an optional Boolean argument.
Argument: true: The MCP Server will be started.
Argument: false: The MCP Server will be stopped.
When no argument is specified, the command will toggle the current state.