PLCGateway for VS Code
com.plcgateway/plcgateway
Ask your plant: live PLC data, alarms, history, OEE and reports from your on-premises PLCGateway.
client:VS Code
transport:stdio
runtime:npm
Install PLCGateway in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "plcgateway-url",
"description": "PLCGATEWAY_URL",
"password": true
},
{
"type": "promptString",
"id": "plcgateway-token",
"description": "PLCGATEWAY_TOKEN",
"password": true
}
],
"servers": {
"plcgateway": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@plcgateway/mcp"
],
"env": {
"PLCGATEWAY_URL": "${input:plcgateway-url}",
"PLCGATEWAY_TOKEN": "${input:plcgateway-token}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs