Install Modbus TCP/RTU Device in ECA

What you need first

  • ECA, installed.
  • uv, which gives the uvx command the server starts with.

Steps

  1. Open ~/.codex/config.toml, or create it. The Codex CLI, its IDE extension and the ChatGPT desktop app share this file.
  2. Add this table at the end of the file.
{
  "mcpServers": {
    "labmcp-modbus": {
      "command": "uvx",
      "args": ["labmcp-modbus==0.1.3"]
    }
  }
}
  1. Save the file and restart ECA.

Check it worked

Ask ECA: List the tools of labmcp-modbus.

If it does not start

spawn uvx ENOENT
uv is not on the PATH that ECA sees. Install it, or write the full path of uvx in the config.
Nothing changes after a restart
The file is not valid JSON any more. Look for a missing comma where the block was added.

Back to Modbus TCP/RTU Device