Port OS Smart Home

io.github.portpowered由 GitHub 账号 portpowered 发布v1.0.1-metadata.1更新于 Oct 29, 2026

Control your Philips lights, Sonos speakers, Roborock vacuums and more with Port OS cloud.

发布方自己的服务:Port

已验证Streamable HTTP可网页运行位置与生活效率与工作流

概览

AI 生成的概览

Port OS 云端 MCP 服务器,让助手发现、控制并整理智能家居设备、房间与事件订阅。

可以做什么
  • 查找设备与服务,查看其控制项并读取当前或最近已知状态
  • 控制设备与服务、执行字段优先查询并获取摄像头快照
  • 在 Port OS 组件中展示设备及其支持的控制项
  • 重命名、改类型、启用、合并或删除设备与已连接服务
  • 创建、重命名、合并或删除房间与设备组,并调整成员
  • 列出、查看、重命名和取消事件订阅
适用场景
适合希望助手操作 Port OS 智能家居的场景:开关灯光、查看传感器与摄像头、整理房间与设备组,或管理 Philips、Sonos、Roborock 等厂商设备的事件监控。
运行要求
需通过 streamable HTTP 连接 api.portoperatingsystem.com 远程端点,拥有已连接设备的 Port OS 账号,并在连接时申请 OAuth 权限范围(endpoint:read、endpoint:write、message:send、group:read、group:manage、subscription:read、subscription:write)。未声明 API 密钥或环境变量。
安装前请注意
该服务器会改动真实设备与家居清单:控制命令、重命名、删除、合并和分组变更都会写入。分组变更可能先更新厂商侧房间再保存 Port OS 意图,批次失败也可能已产生厂商侧改动。命令被接受仅表示已下发,不代表物理状态。权限范围较广;遇到 403 insufficient_scope 应重新连接而非重试。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Port OS Smart Home,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.portpowered%2Fportos/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "port-os-smart-home": {
      "type": "http",
      "url": "https://api.portoperatingsystem.com/mcp"
    }
  }
}

工具

10

control

Control

Control devices/services and retrieve results or camera snapshots. Target exactly one id (endpoint/group) or field-first query as in endpoint_query. Queries freeze all authorized matches across every page in one request; zero or over 100 fails before delivery. Report any narrowing or splitting of requested whole-house coverage. For all lights off, discover all pages, select physical lights/known lamp switches and deduplicate provider representations. Use {"idempotencyKey":"<action key>","query":{"id":{"in":["<full light ID>","<full lamp-switch ID>"]}},"message":"port1/systems/zero/capability-interfaces/power/messages/[email protected]","payload":{},"waitForResult":true}. Use type-only filters only if inventory proves their physical scope; query adds no provider/SELF/simulator exclusions. A separate turn-on action needs a new key. Check all outcomes and fresh state before claiming whole-house success. Copy full logical target IDs/messages from endpoint_query or group_query, preserving the account and declared payload ({} if fieldless). Clarify ambiguous scope. Port OS selects compatible provider routes and native or equivalent member delivery for the complete target. Native capabilities/membershipComplete do not prove aggregate coverage. Provider ambiguity is a target-resolution error; resolve the intended device, group or media item before another control. waitForResult=true waits for validated correlated replies or provider acknowledgment for response-less commands. QUEUED/IN_PROGRESS remain pending even with empty lists. Snapshots return pixels/timeOfSample; events need not reply. Verify physical state with endpoint_query/group_query, declared expand and forceDeviceAttributeQuery=true. Live music queue recipe: "set up a playlist and play it on my Sonos" means an active queue, not a saved library playlist unless requested. 1. Discover the Spotify library and target speaker/native group. Search via declared media-search/search-media with {"query":"<artist or mood>"

输入参数idquerymessage必填payload必填waitForResultidempotencyKey必填correlationToken

endpoint_manage

Manage Devices and Services

Manage the names, types and registry entries of your devices and connected services. Send the complete name, type and enablement document for every metadata replacement, with etag from the read and a stable idempotencyKey. Choose one operation: RENAME, SET_TYPE, SET_ENABLEMENT, MERGE_INTO, or DELETE. Use endpoint_query first and copy the full endpoint ID. Rename and type changes are durable across provider rediscovery. Disabled endpoints stay available for explicit metadata reads, but cannot receive messages; rediscovery preserves the disabled state. DELETE removes the registry entry, though a provider may rediscover it later. MERGE_INTO retains the source endpoint as disabled and moves supported references to the target; it does not create a source-ID alias, a simulator endpoint can merge only into a target without a simulator route (two simulator endpoints return 409 CONFLICT; disable or delete the duplicate instead), and the target's enablement remains in effect. Before MERGE_INTO or DELETE, identify the actual endpoint and explain the effect to the user; never assume two endpoints are duplicates because their names match. This tool changes registry metadata only and never performs physical control.

输入参数etag必填nametypemergeIntooperation必填enablementendpointId必填targetEtagidempotencyKey必填

endpoint_query

Find Devices and Services

Find connected devices and services, discover their controls, and read their state. Start with a focused name, room or category query; follow paginationContext.nextToken. Results include full IDs, device types, provider routes, capabilities and accepted message IDs. An endpoint is a device or connected service, including a filesystem or media library. Copy IDs verbatim into control. For a known device, use endpointId; inspect its declared capabilities, commands and outbound message IDs. Use group_query for rooms and endpoint_manage for requested inventory cleanup. To read state, set expand to the declared capabilities you need, for example ["power","connectivity"] or ["battery"]. expand adds observations; it does not discover more devices or send controls. Add forceDeviceAttributeQuery=true to refresh selected attributes from the provider; otherwise readings may come from cache. Only FRESH observations establish the current state. A FRESH value is the current state; a STALE value is the last known state, reported with its sampledAt and never as live or unknown (a forced read may refresh it). Errored, missing or invalid values are unknown, not OFF or a dead battery, and a STALE value alone must not support a safety claim such as locked or off. An attribute with error.code PROVIDER_NO_STATE (forced reads only) means the provider answered but has no value for it: state is unknown and retrying will not help until the provider reports one. FRESH UNREACHABLE means offline even if a power value is present; STALE UNREACHABLE is the last known connectivity. An ID-only lookup retrieves metadata without requesting fresh state. Supported discovery includes: - Lights, switches and plugs: select by name and power/brightness capabilities as well as type; a light may be typed SWITCH or PLUG. - Thermostats and sensors: read temperature-sensor for ambient temperature; a setpoint is not room temperature. Clarify indoor versus outdoor temperature when ambiguous. - Cameras, locks, a

输入参数queryexpandnextTokenenablementendpointIdmaxResultsforceDeviceAttributeQuery

endpoint_show

Show Devices and Services

Show Port OS devices with their supported controls. To show a device, always call this tool: the widget it opens is the device's UI, so never render a second card, map or controls for it; answer in a sentence or two. Uses the same selection, expansion and pagination arguments as endpoint_query. A single matching device opens its full view with now playing, transport, volume and other controls; several matches open only a list of names to choose from, so pass one full endpoint ID (or a query matching one device) to control a device. Showing a device does not start live video or send a control command. Pass primary to choose which card leads, one of the device's card ids (every result lists them as cardIds; an unknown id is rejected with the available ones). The device's usual card and every other card stay behind the details toggle. Examples: "what's the battery on the vacuum" -> primary battery; "turn the thermostat fan on" -> primary fan; "how open are the blinds" -> primary closure; "show me the camera on the roborock" -> primary camera. "where is my phone" or "show its location" -> primary location; "show the roborock's map" or "pick a room to clean" -> primary house-map. Every result already includes the cached readings of the cards it lists (cardIds), so you can answer without a second call; pass expand to choose different capabilities. primary refreshes that card's readings from the device, so the answer is current. Always state the value in words: a FRESH reading is current; a STALE reading is the last known value, so say it is last known and give its age.

输入参数queryexpandprimarynextTokenenablementendpointIdmaxResultsforceDeviceAttributeQuery

group_manage

Manage Rooms and Device Groups

Organize rooms and device groups: create, rename, change members, enable, disable, merge or delete them. Create, delete, add/remove members, MOVE_MEMBER and rename default to providerSync BEST_EFFORT: send supported native group changes first, verify provider readback, then save Port OS intent. A provider failure falls back locally and is PARTIALLY_APPLIED. PORTOS_ONLY sends nothing; FAIL_ON_PROVIDER_ERROR fails customer intent if a required provider change fails, while retaining received provider facts. Native effects cannot be rolled back. Undeclared support is NOT_SUPPORTED with reason NOT_DECLARED and does not by itself make the result partial. OUTSIDE_PRINCIPAL means native changes are not attempted through another principal's account; the authorized Port OS change can still apply. Read group IDs and etags with group_query first. Every reference to one group in a batch uses the same starting etag. MOVE_MEMBER takes memberEndpointId plus source and target group references with both etags; a lone add cannot implicitly displace another exclusive native group. Contradictory edits return 400; list position is not a procedural ordering mechanism. MERGE_INTO and aggregate/route enablement accept only PORTOS_ONLY. Rename does not automatically merge groups. DELETE_GROUP can delete provider groups. Routes not confirmed retired are disabled and orphaned, so rediscovery cannot resurrect the deleted group. SET_ENABLEMENT can hide an aggregate without deleting it; SET_GROUP_ROUTE_ENABLEMENT changes one provider route's contribution locally; its etag is the native route version and groupEtag is also required when the route belongs to a group. Obtain explicit user authorization for the exact MERGE_INTO or DELETE_GROUP targets and effects before calling. Hue supports native group creation, deletion, membership and rename. Roborock supports room rename only; membership changes do not reshape robot maps. Sonos native group mutations are not implemented. Declared support is a

输入参数operations必填validateOnlyidempotencyKey

group_query

Find Rooms and Device Groups

Find rooms, floors, zones, homes and device groups, with their members and supported controls. Returns canonical IDs, names, etags, spatial roles, parent paths, children, members, controllers and providers. Start without arguments and follow every paginationContext.nextToken; filter large accounts with query. Controllers list endpoints and messages accepting this group: room cleaning targets the controller with payload {"groupIds":[<group ID>]}, not the group itself. Messages target the logical group ID through control. Port OS selects compatible native or equivalent member delivery for the complete effective membership, including scenes/media. Native interfaces and membershipComplete do not establish aggregate coverage. Disabled routes cannot control. For ambiguous names ask which parentPath the user means. Read one group with id; merged IDs resolve to the survivor with redirectedFrom. Show room maps with endpoint_show on the vacuum controller, primary house-map; never draw spatial geometry yourself. Expand uses capability names as in endpoint_query; forceDeviceAttributeQuery refreshes observations. Omitted or failed fresh route attributes are unavailable. membershipComplete is provider-declared: false means incomplete/unreported, absent means unknown. members lists resolved endpoints; empty does not prove a native group empty. Disabled groups are hidden unless enablement is DISABLED or * and cannot be targeted; re-enable with group_manage SET_ENABLEMENT. Copy IDs and etags verbatim.

输入参数idqueryexpandnextTokenenablementmaxResultsforceDeviceAttributeQuery

subscription_cancel

Cancel Subscription

Stop watching by cancelling one Port OS event subscription using its exact ID from subscription_list or subscription_inspect. Cancellation is idempotent. Select the intended subscription by name, source endpoint and catalog event; names are not cancellation keys. A stopped monitor requires a new subscription to watch again.

输入参数id必填ifMatch必填idempotencyKey必填

subscription_inspect

Inspect Subscription

Inspect one Port OS event subscription by its exact ID returned by subscription_list. Returns its safe query, source endpoint, catalog name and lifecycle status. A retained active subscription establishes registration; it does not prove that any client has received or acted on a camera event.

输入参数id必填

subscription_label_edit

Edit Subscription Label

Change only the display name of one Port OS event subscription by exact ID. Use a PLAIN name-value object. The event, endpoint, filter and destination are immutable; to change what is watched, establish a replacement monitor and cancel the old ID.

输入参数id必填name必填ifMatch必填idempotencyKey必填

subscription_list

List Subscriptions

Enumerate the user's Port OS event subscriptions, including their exact IDs, names, source endpoint, catalog event and status. For requests to stop watching a camera, list subscriptions and follow every nextCursor, select the intended monitor, then use subscription_cancel with its exact ID. Creating a monitor uses the host's events/subscribe capability after discovering supported camera events; these tools never accept callback URLs or signing keys.

输入参数cursor

版本历史

1
  1. v1.0.1-metadata.1最新Oct 29, 2026

评分

已满足适用检查项的 83%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。

其他 Port 集成