Xiaomi · Capability

Xiaomi Galaxy FDS API — CDN

Xiaomi Galaxy FDS API — CDN. 2 operations. Lead operation: Prefetch Object. Self-contained Naftiko capability covering one Xiaomi business surface.

Run with Naftiko XiaomiCDN

What You Can Do

POST
Prefetchobject — Prefetch Object
/v1/{bucketname}/objectname-prefetch
POST
Refreshobject — Refresh Object
/v1/{bucketname}/objectname-refresh

MCP Tools

prefetch-object

Prefetch Object

read-only
refresh-object

Refresh Object

Capability Spec

galaxy-fds-cdn.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Xiaomi Galaxy FDS API — CDN
  description: 'Xiaomi Galaxy FDS API — CDN. 2 operations. Lead operation: Prefetch Object. Self-contained Naftiko capability
    covering one Xiaomi business surface.'
  tags:
  - Xiaomi
  - CDN
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    XIAOMI_API_KEY: XIAOMI_API_KEY
capability:
  consumes:
  - type: http
    namespace: galaxy-fds-cdn
    baseUri: https://cnbj0.fds.api.xiaomi.com
    description: Xiaomi Galaxy FDS API — CDN business capability. Self-contained, no shared references.
    resources:
    - name: bucketName-objectName}?prefetch
      path: /{bucketName}/{objectName}?prefetch
      operations:
      - name: prefetchobject
        method: POST
        description: Prefetch Object
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: bucketName
          in: path
          type: string
          required: true
        - name: objectName
          in: path
          type: string
          required: true
    - name: bucketName-objectName}?refresh
      path: /{bucketName}/{objectName}?refresh
      operations:
      - name: refreshobject
        method: POST
        description: Refresh Object
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: bucketName
          in: path
          type: string
          required: true
        - name: objectName
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: galaxy-fds-cdn-rest
    port: 8080
    description: REST adapter for Xiaomi Galaxy FDS API — CDN. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/{bucketname}/objectname-prefetch
      name: bucketname-objectname-prefetch
      description: REST surface for bucketName-objectName}?prefetch.
      operations:
      - method: POST
        name: prefetchobject
        description: Prefetch Object
        call: galaxy-fds-cdn.prefetchobject
        with:
          bucketName: rest.bucketName
          objectName: rest.objectName
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/{bucketname}/objectname-refresh
      name: bucketname-objectname-refresh
      description: REST surface for bucketName-objectName}?refresh.
      operations:
      - method: POST
        name: refreshobject
        description: Refresh Object
        call: galaxy-fds-cdn.refreshobject
        with:
          bucketName: rest.bucketName
          objectName: rest.objectName
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: galaxy-fds-cdn-mcp
    port: 9090
    transport: http
    description: MCP adapter for Xiaomi Galaxy FDS API — CDN. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: prefetch-object
      description: Prefetch Object
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: galaxy-fds-cdn.prefetchobject
      with:
        bucketName: tools.bucketName
        objectName: tools.objectName
      outputParameters:
      - type: object
        mapping: $.
    - name: refresh-object
      description: Refresh Object
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: galaxy-fds-cdn.refreshobject
      with:
        bucketName: tools.bucketName
        objectName: tools.objectName
      outputParameters:
      - type: object
        mapping: $.