Auto-discovered marketplace from r1ca18/sharp-aircon-mcp
npx claudepluginhub r1ca18/sharp-aircon-mcpSharp aircon control via COCORO AIR API
日本語 | English
Sharp COCORO AIR API + MCP Server.
Hono based REST API and MCP server for controlling Sharp air conditioners via cocoro-sdk.
bun install
You need to capture API credentials from the COCORO AIR app using mitmproxy.
mitmproxy
iPhone setup:
http://mitm.it in Safari, install certificateExtract from mitmproxy:
COCORO_APP_SECRET: from the login URL query parameterCOCORO_TERMINAL_APP_ID: from the request body, the part after /key/cp .env.example .env
# Edit .env with your credentials
# Development (with watch)
bun run dev
# Production
bun run start
# Type check
bun run typecheck
| Method | Path | Description | Body |
|---|---|---|---|
| GET | / | Health check | - |
| GET | /api/status | Get aircon status | - |
| POST | /api/power | Power on/off | {"on": true} |
| POST | /api/temperature | Set temperature (16-30, integer) | {"temperature": 22} |
| POST | /api/mode | Set operation mode | {"mode": "heat"} |
| POST | /api/windspeed | Set wind speed | {"level": "auto"} |
| POST | /api/plasmacluster | Plasmacluster on/off | {"on": true} |
Available modes: auto, cool, heat, dry, fan
Wind speed levels: auto, 1-8 (1=weakest, 8=strongest)
# Get status
curl http://localhost:3000/api/status
# Turn on
curl -X POST http://localhost:3000/api/power \
-H "Content-Type: application/json" \
-d '{"on": true}'
# Set temperature
curl -X POST http://localhost:3000/api/temperature \
-H "Content-Type: application/json" \
-d '{"temperature": 22}'
# Set mode
curl -X POST http://localhost:3000/api/mode \
-H "Content-Type: application/json" \
-d '{"mode": "heat"}'
Two transport modes available:
Endpoint: http://localhost:3000/mcp
claude mcp add sharp-aircon --transport http http://localhost:3000/mcp
bun run src/stdio.ts
| Tool | Description | Parameters |
|---|---|---|
aircon_status | Get current status | - |
aircon_power | Turn power on/off | on: boolean |
aircon_temperature | Set target temperature | temperature: integer (16-30) |
aircon_mode | Set operation mode | mode: "auto"|"cool"|"heat"|"dry"|"fan" |
aircon_windspeed | Set wind speed | level: "auto"|"1"-"8" |
aircon_plasmacluster | Plasmacluster on/off | on: boolean |
This project is structured as a Claude Code plugin.
# Install from local path
claude plugin marketplace add /path/to/sharp_aircon_api
# Enable/disable
claude plugin enable sharp-aircon
claude plugin disable sharp-aircon
Plugin structure:
.claude-plugin/
plugin.json # Plugin metadata
marketplace.json # Marketplace registration
.mcp.json # MCP server config (stdio)
skills/
smart-aircon/
SKILL.md # Weather-based AC advisor
aircon-scheduler/
SKILL.md # Cron-based AC automation
aircon-scene/
SKILL.md # Preset scene management
src/
index.ts # Hono server entry point
cocoro-client.ts # cocoro-sdk wrapper
stdio.ts # Stdio MCP entry point
api/
routes.ts # REST API routes
mcp/
server.ts # MCP tool definitions