Cloud Studio Gear

v0.2.1
io.github.CloudStudioIoT/gear-mcp Checked 21 hours ago Published 9 days ago

MCP for Cloud Studio Gear IoT: sites, devices, live values, history, alarms.

Values you need

VariableWhat it is
GEAR_URLrequired URL of your Gear instance, e.g. https://gear.cloud.studio
GEAR_TOKENrequired secret Gear access token of the user the assistant acts as

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add gear-mcp -e 'GEAR_TOKEN=<GEAR_TOKEN>' -e 'GEAR_URL=<GEAR_URL>' -- npx -y @cloudstudioiot/gear-mcp@0.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "gear-mcp": {
      "args": [
        "-y",
        "@cloudstudioiot/gear-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "GEAR_TOKEN": "<GEAR_TOKEN>",
        "GEAR_URL": "<GEAR_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "gear-mcp": {
      "args": [
        "-y",
        "@cloudstudioiot/gear-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "GEAR_TOKEN": "<GEAR_TOKEN>",
        "GEAR_URL": "<GEAR_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GEAR_TOKEN",
      "id": "gear-token",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "GEAR_URL",
      "id": "gear-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "gear-mcp": {
      "args": [
        "-y",
        "@cloudstudioiot/gear-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "GEAR_TOKEN": "${input:gear-token}",
        "GEAR_URL": "${input:gear-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.gear-mcp]
command = "npx"
args = ["-y", "@cloudstudioiot/gear-mcp@0.2.1"]
env = { "GEAR_TOKEN" = "<GEAR_TOKEN>", "GEAR_URL" = "<GEAR_URL>" }

For AI agents

  1. Ask the user for: GEAR_URL, GEAR_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_facilities, list_devices, get_device, get_endpoint_history, list_alarms, find_devices.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json