@switchbot/claude-code-plugin
v0.1.3
Published
SwitchBot Claude Code plugin — wires Claude Code to the SwitchBot CLI MCP server (24 tools, zero Node.js dependencies)
Readme
@switchbot/claude-code-plugin
SwitchBot plugin for Claude Code — wires Claude Code to the SwitchBot OpenAPI CLI MCP server, exposing 24 smart-home tools with policy-based safety gates.
Installation
npm install -g @switchbot/claude-code-pluginThen register the MCP server with Claude Code:
claude mcp add switchbot -- switchbot mcp serve --tools allIf SwitchBot credentials are not yet configured, run:
switchbot auth loginOr use the bundled helper at any time to re-authenticate:
switchbot-claude-authRequirements
- Node.js ≥ 18
@switchbot/openapi-cli≥ 3.7.1 (installed globally or as a peer)- Claude Code ≥ 1.x
What it does
Registers the switchbot MCP server (switchbot mcp serve --tools all) with Claude Code. The skill document (plugins/switchbot/skills/switchbot/SKILL.md) guides Claude Code in safely controlling devices, reading sensors, running scenes, and respecting policy-based safety tiers.
Related packages
@switchbot/openapi-cli— the CLI and MCP server@switchbot/codex-plugin— OpenAI Codex CLI variant@switchbot/openclaw-skill— OpenClaw / ClawhHub variant
