Mojang · Capability

Minecraft Services API — Capes

Minecraft Services API — Capes. 2 operations. Lead operation: Show Cape. Self-contained Naftiko capability covering one Mojang business surface.

Run with Naftiko MojangMinecraftCapes

What You Can Do

PUT
Showcape — Show Cape
/v1/minecraft/profile/capes/active
DELETE
Hidecape — Hide Cape
/v1/minecraft/profile/capes/active

MCP Tools

show-cape

Show Cape

idempotent
hide-cape

Hide Cape

idempotent

Capability Spec

mojang-minecraft-services-capes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: "Minecraft Services API \u2014 Capes"
  description: "Minecraft Services API \u2014 Capes. 2 operations. Lead operation: Show Cape. Self-contained Naftiko capability covering one Mojang business surface."
  tags:
  - Mojang
  - Minecraft
  - Capes
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
- namespace: env
  keys:
    MINECRAFT_ACCESS_TOKEN: MINECRAFT_ACCESS_TOKEN
capability:
  consumes:
  - type: http
    namespace: mojang-minecraft-services-capes
    baseUri: https://api.minecraftservices.com
    description: "Minecraft Services API \u2014 capes. Self-contained, no shared references."
    authentication:
      type: bearer
      token: '{{env.MINECRAFT_ACCESS_TOKEN}}'
    resources:
    - name: minecraft-profile-capes-active
      path: /minecraft/profile/capes/active
      operations:
      - name: showCape
        method: PUT
        description: Show Cape
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
          description: Cape selection.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: hideCape
        method: DELETE
        description: Hide Cape
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: mojang-minecraft-services-capes-rest
    port: 8080
    description: "REST adapter for Minecraft Services API \u2014 capes. One Spectral-compliant resource per consumed operation, prefixed with /v1."
    resources:
    - path: /v1/minecraft/profile/capes/active
      name: minecraft-profile-capes-active
      description: REST surface for /minecraft/profile/capes/active.
      operations:
      - method: PUT
        name: showCape
        description: Show Cape
        call: mojang-minecraft-services-capes.showCape
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: hideCape
        description: Hide Cape
        call: mojang-minecraft-services-capes.hideCape
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: mojang-minecraft-services-capes-mcp
    port: 9090
    transport: http
    description: "MCP adapter for Minecraft Services API \u2014 capes. One tool per consumed operation, routed inline through this capability's consumes block."
    tools:
    - name: show-cape
      description: Show Cape
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: mojang-minecraft-services-capes.showCape
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hide-cape
      description: Hide Cape
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: mojang-minecraft-services-capes.hideCape
      outputParameters:
      - type: object
        mapping: $.