naftiko: 1.0.0-alpha2 info: label: WD My Cloud Home API — Device description: 'WD My Cloud Home API — Device. 2 operations. Lead operation: Get Device Details. Self-contained Naftiko capability covering one Western Digital business surface.' tags: - Western Digital - Device created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: WESTERN_DIGITAL_API_KEY: WESTERN_DIGITAL_API_KEY capability: consumes: - type: http namespace: my-cloud-home-device baseUri: https://config.mycloud.com description: WD My Cloud Home API — Device business capability. Self-contained, no shared references. resources: - name: device-v1-device path: /device/v1/device operations: - name: getdevice method: GET description: Get Device Details outputRawFormat: json outputParameters: - name: result type: object value: $. - name: device-v1-user path: /device/v1/user operations: - name: getuserdevices method: GET description: List User Devices outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.WESTERN_DIGITAL_API_KEY}}' exposes: - type: rest namespace: my-cloud-home-device-rest port: 8080 description: REST adapter for WD My Cloud Home API — Device. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/device/v1/device name: device-v1-device description: REST surface for device-v1-device. operations: - method: GET name: getdevice description: Get Device Details call: my-cloud-home-device.getdevice outputParameters: - type: object mapping: $. - path: /v1/device/v1/user name: device-v1-user description: REST surface for device-v1-user. operations: - method: GET name: getuserdevices description: List User Devices call: my-cloud-home-device.getuserdevices outputParameters: - type: object mapping: $. - type: mcp namespace: my-cloud-home-device-mcp port: 9090 transport: http description: MCP adapter for WD My Cloud Home API — Device. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-device-details description: Get Device Details hints: readOnly: true destructive: false idempotent: true call: my-cloud-home-device.getdevice outputParameters: - type: object mapping: $. - name: list-user-devices description: List User Devices hints: readOnly: true destructive: false idempotent: true call: my-cloud-home-device.getuserdevices outputParameters: - type: object mapping: $.