{"_id":"@caseman72/tuya-mcp","_rev":"2-cba25a7f2277687f75760aebcadbbbb5","name":"@caseman72/tuya-mcp","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@caseman72/tuya-mcp","version":"1.1.0","keywords":["tuya","mcp","smart-home","home-assistant","climate","mini-split"],"license":"MIT","_id":"@caseman72/tuya-mcp@1.1.0","maintainers":[{"name":"caseman72","email":"casey@manion.com"}],"dist":{"shasum":"49a290aa5acbea5a21daef8cb79e4200c5aba4c8","tarball":"https://registry.npmjs.org/@caseman72/tuya-mcp/-/tuya-mcp-1.1.0.tgz","fileCount":17,"integrity":"sha512-oniTfrtsITLXD7/5XpuYsXl6YZFWf6GAcXKj0UrSb7yr5FrE9n+tx8A9dYgeurJeV9rPLG1YARuiJIxoBxuzkA==","signatures":[{"sig":"MEQCIDuF3pVP3Lhw4yPKYETljVPpx9ZlfdhGFD1xsWR4JL1EAiA06frK6gIdbC+VNRly7bOFlVwVOQDMmrdgYowGXwqxOg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27683},"main":"src/index.js","type":"module","gitHead":"198e0eebb893a74f549d841ce45231c5b2397b2c","scripts":{"start":"node src/index.js","start:http":"node src/index.js --http"},"_npmUser":{"name":"caseman72","email":"casey@manion.com"},"_npmVersion":"11.11.0","description":"MCP server for Tuya-based mini-split climate control","directories":{},"_nodeVersion":"25.8.1","dependencies":{"zod":"^3.25.0","@caseman72/tuya-api":"^1.1.0","@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/tuya-mcp_1.1.0_1773909453514_0.040482044221502145","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@caseman72/tuya-mcp","version":"1.1.1","description":"MCP server for Tuya-based mini-split climate control","type":"module","main":"src/index.js","scripts":{"start":"node src/index.js","start:http":"node src/index.js --http"},"keywords":["tuya","mcp","smart-home","home-assistant","climate","mini-split"],"license":"MIT","dependencies":{"@caseman72/tuya-api":"^1.1.0","@modelcontextprotocol/sdk":"^1.0.0","zod":"^3.25.0"},"gitHead":"c4701fb8d555b9d8535410816cd7f4f67ad31e40","_id":"@caseman72/tuya-mcp@1.1.1","_nodeVersion":"25.8.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-1xO+Bl9OnBqXO58vx+YAODB6Vsyj+D4cIEFruY9sDFCV21T5MDybxfZRnJ5UD01pdsYyUfE1FqSXD+zblAtsZA==","shasum":"ce8b68a602dcc70038870f5c5ca79800db2b6b06","tarball":"https://registry.npmjs.org/@caseman72/tuya-mcp/-/tuya-mcp-1.1.1.tgz","fileCount":17,"unpackedSize":28480,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCnc0zCNOHN3R0tF2p8xl4DYI4vZ//mnz4xYTtG3PUp9QIgfTKu5w/u/omRrFvZ2rsB1JX6LwHKqk6WBiQW4FybH4M="}]},"_npmUser":{"name":"caseman72","email":"casey@manion.com"},"directories":{},"maintainers":[{"name":"caseman72","email":"casey@manion.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tuya-mcp_1.1.1_1773937450945_0.7972507710549586"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-19T08:37:33.426Z","modified":"2026-03-19T16:24:11.202Z","1.1.0":"2026-03-19T08:37:33.666Z","1.1.1":"2026-03-19T16:24:11.090Z"},"license":"MIT","keywords":["tuya","mcp","smart-home","home-assistant","climate","mini-split"],"description":"MCP server for Tuya-based mini-split climate control","maintainers":[{"name":"caseman72","email":"casey@manion.com"}],"readme":"# tuya-mcp\n\nMCP server for Tuya-based mini-split climate control with Home Assistant integration. Uses [@caseman72/tuya-api](https://github.com/caseman72/tuya-api) for local LAN device communication — no cloud dependency.\n\n## Installation\n\n```bash\nnpm install\n```\n\n## Configuration\n\n### 1. Device credentials\n\nCreate `.tuya-devices.json` with your device configs (see [tuya-api](https://github.com/caseman72/tuya-api) for setup):\n\n```json\n[\n  {\n    \"id\": \"DEVICE_ID\",\n    \"name\": \"Living Room\",\n    \"key\": \"LOCAL_KEY\",\n    \"ip\": \"192.168.1.100\",\n    \"version\": \"3.4\",\n    \"dps\": { \"power\": \"1\", \"target_temp\": \"24\", \"current_temp\": \"23\", \"mode\": \"4\", \"fan_speed\": \"5\", \"temp_unit\": \"19\" },\n    \"temp_scale\": 10\n  }\n]\n```\n\n### 2. Server config (optional)\n\n```bash\ncp config.example.json config.json\n```\n\n## Usage\n\n```bash\n# Stdio mode (for Claude Code / mcp-proxy)\nnpm start\n\n# Add to Claude Code\nclaude mcp add tuya-mcp -- node /path/to/tuya-mcp/src/index.js\n```\n\n### Home Assistant\n\nRun via `mcp-proxy` to expose HTTP/SSE:\n\n```bash\nmcp-proxy --port 8082 -- node src/index.js\n```\n\nCopy `custom_components/tuya_mcp/` to your HA `custom_components/` directory and create `devices.yaml` from the example.\n\n## MCP Tools\n\n| Tool | Description |\n|------|-------------|\n| `list_devices` | List all configured devices |\n| `get_status` | Get temperature, mode, fan speed |\n| `get_all_statuses` | Get status of all devices at once |\n| `set_power` | Turn on/off |\n| `set_temperature` | Set target temperature (°F) |\n| `set_mode` | Set mode: heat or cool |\n| `set_fan_speed` | Set fan: low, medium, high, auto |\n| `scan_device` | Read all raw DPS values |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}