{"_id":"oh-my-sage-mcp","_rev":"6-5df6f65c0050917242c03d3f73521e7b","name":"oh-my-sage-mcp","dist-tags":{"latest":"0.1.4"},"versions":{"0.0.0-stage":{"name":"oh-my-sage-mcp","version":"0.0.0-stage","_id":"oh-my-sage-mcp@0.0.0-stage","stub":true,"maintainers":[{"name":"doomsday616","email":"doomsday616@qq.com"}],"dist":{"shasum":"fce0cd1f58c792fd611cd882d6fa8c8996826467","tarball":"https://registry.npmjs.org/oh-my-sage-mcp/-/oh-my-sage-mcp-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-/2ByfvGUrJDzxYB5IOSPwpHMZ8g+PK/M19lXWN1MWOTRFU5c+4/1ZvdnA4RWgn5hyHyk3kgx/BKAyh5n6/ZPAg==","signatures":[{"sig":"MEQCIEJvth2vvHUfw0cCeGb2F69nEPlQd0IOJGy0W+9Vgmz+AiAI4u06dztpR4FjOjDaZiUysF+9fe+D8c1Jn1PVUi/iCw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":336},"_npmUser":{"name":"doomsday616","email":"doomsday616@qq.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.1.0":{"name":"oh-my-sage-mcp","version":"0.1.0","keywords":["mcp","mcp-server","model-context-protocol","mijia","xiaomi","smart-home","米家","极客版","中枢网关"],"license":"MIT","_id":"oh-my-sage-mcp@0.1.0","maintainers":[{"name":"doomsday616","email":"doomsday616@qq.com"}],"homepage":"https://github.com/allocnode/oh-my-sage#readme","bugs":{"url":"https://github.com/allocnode/oh-my-sage/issues"},"bin":{"oh-my-sage-mcp":"dist/mcp/mcp/index.js"},"dist":{"shasum":"9aa48397d350d13565678d3972b263e26f5372af","tarball":"https://registry.npmjs.org/oh-my-sage-mcp/-/oh-my-sage-mcp-0.1.0.tgz","fileCount":81,"integrity":"sha512-TH0Y8Mdlq+N7OpAQkZvratsxApiO434Kl5Gxr4OBKyYtcDhhPFNh1Is3fT4O4wRz6bwHae8bTchSSM6wk6WV0A==","signatures":[{"sig":"MEUCIDS3Ls0UHA1HgVZkqL3ybQJDTlvAg9kub4RHkW4XBrgAAiEAhXHCKVP2lEf5d3+DAFzSPkrp1NPhM5fi3DAB4IpdSY4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":475902},"main":"dist/mcp/mcp/index.js","_from":"file:C:/Users/Alex/AppData/Local/Temp/opencode/oh-my-sage-mcp-0.1.0.tgz","types":"dist/mcp/mcp/index.d.ts","engines":{"node":">=20"},"_npmUser":{"name":"doomsday616","email":"doomsday616@qq.com","approver":{"name":"doomsday616","email":"doomsday616@qq.com"}},"_resolved":"C:\\Users\\Alex\\AppData\\Local\\Temp\\opencode\\oh-my-sage-mcp-0.1.0.tgz","_integrity":"sha512-TH0Y8Mdlq+N7OpAQkZvratsxApiO434Kl5Gxr4OBKyYtcDhhPFNh1Is3fT4O4wRz6bwHae8bTchSSM6wk6WV0A==","repository":{"url":"git+https://github.com/allocnode/oh-my-sage.git","type":"git"},"_npmVersion":"12.2.0","description":"米家自动化极客版 MCP Server：在任意 AI Agent 里用说话的方式创建和修改米家中枢网关的自动化规则","directories":{},"_nodeVersion":"26.8.1","dependencies":{"ws":"^8.16.0","zod":"^3.23.0","bn.js":"^5.2.1","elliptic":"^6.6.0","@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/oh-my-sage-mcp_0.1.0_1793598394089_0.8750782401168191","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"oh-my-sage-mcp","version":"0.1.1","keywords":["mcp","mcp-server","model-context-protocol","mijia","xiaomi","smart-home","米家","极客版","中枢网关"],"license":"MIT","_id":"oh-my-sage-mcp@0.1.1","maintainers":[{"name":"doomsday616","email":"doomsday616@qq.com"}],"homepage":"https://github.com/allocnode/oh-my-sage#readme","bugs":{"url":"https://github.com/allocnode/oh-my-sage/issues"},"bin":{"oh-my-sage-mcp":"dist/mcp/mcp/index.js"},"dist":{"shasum":"909f7ad455a99021b1927a6f2be32bee8619ba25","tarball":"https://registry.npmjs.org/oh-my-sage-mcp/-/oh-my-sage-mcp-0.1.1.tgz","fileCount":75,"integrity":"sha512-Ndn/9U6Y5im8Ea9olbCfcyhZUp2+Pb74/ZPk7REW0a8yUSe0/n+nRlm2lmbXTTbqNMpTd9CUUS2tDldmZ1qztw==","signatures":[{"sig":"MEUCIQC02o29va9BLr0y4y7OoSmEzo9y6ItcJiaoGzTLhVg/8QIgUhm0HnAewiSB6zvVwCpYr4VZkkBcSrZtTTWT3nZvMhU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCaM9PWv+T79NAxsjcflQPxXdBjn9FoZw8mEa9yOvft7wIgIPOt+4jHux56Kg/5nLzMzwBRHzT0vgt6tRMyc1nHiJo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oh-my-sage-mcp@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":470563},"main":"dist/mcp/mcp/index.js","types":"dist/mcp/mcp/index.d.ts","engines":{"node":">=20"},"gitHead":"8cc69edd6520d7f56093987387a4f08c1e33d0b9","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"f5006288-9fea-4ca8-931e-eb9640e370e2"}},"repository":{"url":"git+https://github.com/allocnode/oh-my-sage.git","type":"git"},"_npmVersion":"11.19.1","description":"米家自动化极客版 MCP Server：在任意 AI Agent 里用说话的方式创建和修改米家中枢网关的自动化规则","directories":{},"_nodeVersion":"24.22.1","dependencies":{"ws":"^8.16.0","zod":"^3.23.0","bn.js":"^5.2.1","elliptic":"^6.6.0","@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/oh-my-sage-mcp_0.1.1_1793604122974_0.31665628442780747","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"oh-my-sage-mcp","version":"0.1.2","keywords":["mcp","mcp-server","model-context-protocol","mijia","xiaomi","smart-home","米家","极客版","中枢网关"],"license":"MIT","_id":"oh-my-sage-mcp@0.1.2","maintainers":[{"name":"doomsday616","email":"doomsday616@qq.com"}],"homepage":"https://github.com/allocnode/oh-my-sage#readme","bugs":{"url":"https://github.com/allocnode/oh-my-sage/issues"},"bin":{"oh-my-sage-mcp":"dist/mcp/mcp/index.js"},"dist":{"shasum":"7e687f7435d157080b5615229c8b8dc642b526ec","tarball":"https://registry.npmjs.org/oh-my-sage-mcp/-/oh-my-sage-mcp-0.1.2.tgz","fileCount":75,"integrity":"sha512-iqbirMSQqfVtG/7x44d+iVl40dTajCWNX2aX7To89LMmdHgysvBgk3UuqPefqfcDtBv3rDe4ul0/wTfPQnhOWg==","signatures":[{"sig":"MEUCIEokGbvCgiUbNDCAvcy2uPZ08PcigaeLGcEpMsd3t+toAiEA8AJNhu6iY8b4IEgieoNYcuoe1Wykq5XL+q8GDUtA0rs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDqy+JsNZP8VTnWBGeDYvJVEEwq9GkBGiQTSPOHCyO++QIgGyZnJS5oJQ7/v09AWdQ6bQ4wGlv1LSbhakaVo1KHsSM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oh-my-sage-mcp@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":483075},"main":"dist/mcp/mcp/index.js","types":"dist/mcp/mcp/index.d.ts","engines":{"node":">=20"},"gitHead":"602143a1f985d6eb1648f0e78cfc51148ff3baf4","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"f5006288-9fea-4ca8-931e-eb9640e370e2"}},"repository":{"url":"git+https://github.com/allocnode/oh-my-sage.git","type":"git"},"_npmVersion":"11.19.1","description":"米家自动化极客版 MCP Server：在任意 AI Agent 里用说话的方式创建和修改米家中枢网关的自动化规则","directories":{},"_nodeVersion":"24.22.1","dependencies":{"ws":"^8.16.0","zod":"^3.23.0","bn.js":"^5.2.1","elliptic":"^6.6.0","@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/oh-my-sage-mcp_0.1.2_1793621312659_0.5207059937480617","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"oh-my-sage-mcp","version":"0.1.3","keywords":["mcp","mcp-server","model-context-protocol","mijia","xiaomi","smart-home","米家","极客版","中枢网关"],"license":"MIT","_id":"oh-my-sage-mcp@0.1.3","maintainers":[{"name":"doomsday616","email":"doomsday616@qq.com"}],"homepage":"https://github.com/allocnode/oh-my-sage#readme","bugs":{"url":"https://github.com/allocnode/oh-my-sage/issues"},"bin":{"oh-my-sage-mcp":"dist/mcp/mcp/index.js"},"dist":{"shasum":"eeab5e9f023632a2a7d333b1fc8e518af7103f56","tarball":"https://registry.npmjs.org/oh-my-sage-mcp/-/oh-my-sage-mcp-0.1.3.tgz","fileCount":75,"integrity":"sha512-R5XLAe9/9BOoF6jSbktxqnKr9huwRV2oSuJKSym6h5+Sa27cLagaPTJHJcJxWqG4LHAFLnGQR+Mt21mxEyWSuA==","signatures":[{"sig":"MEQCIF7VqapoerEhGtZQAsl9MUfZYZ8odHZ/6lJeHuf35yrZAiAWTLAFsJtjjgKgINEADs6sX3Q9SzRbe0xGBdK+7/IpiQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIEro1pcrMU4ThPskKGLa65CAsffAWMvLgbvbcsFK4FB6AiANbirLKYeQEoSoJ8L3LFYIAOF0tQWkjfyPNHjyaQ0giw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oh-my-sage-mcp@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":472242},"main":"dist/mcp/mcp/index.js","types":"dist/mcp/mcp/index.d.ts","engines":{"node":">=20"},"gitHead":"174d9ec424df2b166d121f2fa6e2d47196502d80","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"f5006288-9fea-4ca8-931e-eb9640e370e2"}},"repository":{"url":"git+https://github.com/allocnode/oh-my-sage.git","type":"git"},"_npmVersion":"11.19.1","description":"米家自动化极客版 MCP Server：在任意 AI Agent 里用说话的方式创建和修改米家中枢网关的自动化规则","directories":{},"_nodeVersion":"24.22.1","dependencies":{"ws":"^8.16.0","zod":"^3.23.0","bn.js":"^5.2.1","elliptic":"^6.6.0","@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/oh-my-sage-mcp_0.1.3_1793622512234_0.44145428542691845","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"_id":"oh-my-sage-mcp@0.1.4","bin":{"oh-my-sage-mcp":"dist/mcp/mcp/index.js"},"bugs":{"url":"https://github.com/allocnode/oh-my-sage/issues"},"dist":{"shasum":"b11824730bd7ac3764b4578eaa383de6c7909096","tarball":"https://registry.npmjs.org/oh-my-sage-mcp/-/oh-my-sage-mcp-0.1.4.tgz","fileCount":75,"integrity":"sha512-ggwZ/8habblgBF2ARy5wZPktmv3JIBgQEBZTPaSxOCi5qD5GFmARso6TFlFuJL3fqrLVbQT1NHXhqlifqh114g==","signatures":[{"sig":"MEQCIGlAoJQXUdSU5+m25oEEgjIMap+AJnnOR0/tzMG95JhlAiBzp3/rKGHMvCekurv5jpsvTNn8L1mv0E2smlvDVY80NQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHULb0lh/A9GoTOkzLzYjZxOup2CjIQ7Gs9fcSzpb7BbAiBkTzAgCTyzC5mwyxyteW2t3axgWxYQ9OlMevCUNcsNJQ=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/oh-my-sage-mcp@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":458031},"main":"dist/mcp/mcp/index.js","name":"oh-my-sage-mcp","types":"dist/mcp/mcp/index.d.ts","engines":{"node":">=20"},"gitHead":"63fdac51fa0b400724691f896e896d407c4afdb5","license":"MIT","version":"0.1.4","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"f5006288-9fea-4ca8-931e-eb9640e370e2"}},"homepage":"https://github.com/allocnode/oh-my-sage#readme","keywords":["mcp","mcp-server","model-context-protocol","mijia","xiaomi","smart-home","米家","极客版","中枢网关"],"repository":{"url":"git+https://github.com/allocnode/oh-my-sage.git","type":"git"},"_npmVersion":"11.19.1","description":"米家自动化极客版 MCP Server：在任意 AI Agent 里用说话的方式创建和修改米家中枢网关的自动化规则","directories":{},"maintainers":[{"name":"doomsday616","email":"doomsday616@qq.com"}],"_nodeVersion":"24.22.1","dependencies":{"ws":"^8.16.0","zod":"^3.23.0","bn.js":"^5.2.1","elliptic":"^6.6.0","@modelcontextprotocol/sdk":"^1.29.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/oh-my-sage-mcp_0.1.4_1793624826951_0.9630769450781413"}}},"time":{"created":"2026-11-02T05:34:47.549Z","modified":"2026-11-02T13:07:07.972Z","0.0.0-stage":"2026-11-02T05:34:47.549Z","0.1.0":"2026-11-02T05:46:34.214Z","0.1.1":"2026-11-02T07:22:03.072Z","0.1.2":"2026-11-02T12:08:32.790Z","0.1.3":"2026-11-02T12:28:32.352Z","0.1.4":"2026-11-02T13:07:07.193Z"},"bugs":{"url":"https://github.com/allocnode/oh-my-sage/issues"},"license":"MIT","homepage":"https://github.com/allocnode/oh-my-sage#readme","keywords":["mcp","mcp-server","model-context-protocol","mijia","xiaomi","smart-home","米家","极客版","中枢网关"],"repository":{"url":"git+https://github.com/allocnode/oh-my-sage.git","type":"git"},"description":"米家自动化极客版 MCP Server：在任意 AI Agent 里用说话的方式创建和修改米家中枢网关的自动化规则","maintainers":[{"name":"doomsday616","email":"doomsday616@qq.com"}],"readme":"<div align=\"center\">\n\n# Oh My Sage\n\n**用说话的方式，创建和修改米家自动化极客版规则**\n\n[![npm](https://img.shields.io/npm/v/oh-my-sage-mcp?label=npm)](https://www.npmjs.com/package/oh-my-sage-mcp)\n[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/allocnode/oh-my-sage/blob/main/LICENSE)\n\n</div>\n\n![一句话需求，AI 读设备、给方案、校验后写入网关](https://raw.githubusercontent.com/allocnode/oh-my-sage/main/docs/images/web-create.webp)\n\n## 安装\n\n需要 [Node.js](https://nodejs.org/) 20+，米家中枢网关已开启「自动化极客版」。\n\n```bash\nnpx -y add-mcp oh-my-sage-mcp -g -n oh-my-sage --env GATEWAY_URL=http://<网关 IP>\nnpx -y skills add allocnode/oh-my-sage --skill mijia-automation -g\n```\n\n勾选你的 AI Agent，重启它，然后说：\n\n```\n帮我连接米家网关，登录码是 <登录码>\n```\n\n网关 IP 和 6 位登录码都在米家 App →「中枢网关」→「···」→「自动化极客版」页面。登录码只能用一次。\n\n## 能做什么\n\n- **新建规则**：「客厅有人的时候自动开灯，晚上别太亮」\n- **精确修改**：「冰箱门提醒最高音量从 60 降到 50，其他别动」\n- **查引用**：「哪些规则用到了玄关灯？」\n- **查故障**：「回家开灯昨晚为什么没触发？」\n- **整理排版**：「离家规则的卡片乱成一团，整理一下」\n\n写入前固定校验连线和设备能力，不通过就不写。支持 Claude Code、Cursor、OpenCode、Codex、TRAE、Qoder、通义灵码、Kimi Code 等任何 MCP 客户端。\n\n## 更多\n\n- [常驻服务与 NAS 部署](https://github.com/allocnode/oh-my-sage/blob/main/deploy/README.md)：网关只登录一次，多个 AI Agent / 多台电脑共用\n- [网页版](https://github.com/allocnode/oh-my-sage/blob/main/docs/web.md)：不用 AI Agent，浏览器里直接聊\n- [工具列表](https://github.com/allocnode/oh-my-sage/blob/main/docs/tools.md) · [规则文本格式](https://github.com/allocnode/oh-my-sage/blob/main/docs/rule-text-format.md) · [更新记录](https://github.com/allocnode/oh-my-sage/releases)\n\n## License\n\n[MIT](https://github.com/allocnode/oh-my-sage/blob/main/LICENSE)\n","readmeFilename":"README.md"}