Mojang · Capability

Minecraft Services API — Attributes

Minecraft Services API — Attributes. 2 operations. Lead operation: Get Player Attributes. Self-contained Naftiko capability covering one Mojang business surface.

Run with Naftiko MojangMinecraftAttributes

What You Can Do

GET
Getplayerattributes — Get Player Attributes
/v1/player/attributes
POST
Updateplayerattributes — Update Player Attributes
/v1/player/attributes

MCP Tools

get-player-attributes

Get Player Attributes

read-only idempotent
update-player-attributes

Update Player Attributes

Capability Spec

mojang-minecraft-services-attributes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: "Minecraft Services API \u2014 Attributes"
  description: "Minecraft Services API \u2014 Attributes. 2 operations. Lead operation: Get Player Attributes. Self-contained Naftiko capability covering one Mojang business surface."
  tags:
  - Mojang
  - Minecraft
  - Attributes
  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-attributes
    baseUri: https://api.minecraftservices.com
    description: "Minecraft Services API \u2014 attributes. Self-contained, no shared references."
    authentication:
      type: bearer
      token: '{{env.MINECRAFT_ACCESS_TOKEN}}'
    resources:
    - name: player-attributes
      path: /player/attributes
      operations:
      - name: getPlayerAttributes
        method: GET
        description: Get Player Attributes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatePlayerAttributes
        method: POST
        description: Update Player Attributes
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
          description: Patch payload (only changed sections need be supplied).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: mojang-minecraft-services-attributes-rest
    port: 8080
    description: "REST adapter for Minecraft Services API \u2014 attributes. One Spectral-compliant resource per consumed operation, prefixed with /v1."
    resources:
    - path: /v1/player/attributes
      name: player-attributes
      description: REST surface for /player/attributes.
      operations:
      - method: GET
        name: getPlayerAttributes
        description: Get Player Attributes
        call: mojang-minecraft-services-attributes.getPlayerAttributes
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: updatePlayerAttributes
        description: Update Player Attributes
        call: mojang-minecraft-services-attributes.updatePlayerAttributes
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: mojang-minecraft-services-attributes-mcp
    port: 9090
    transport: http
    description: "MCP adapter for Minecraft Services API \u2014 attributes. One tool per consumed operation, routed inline through this capability's consumes block."
    tools:
    - name: get-player-attributes
      description: Get Player Attributes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: mojang-minecraft-services-attributes.getPlayerAttributes
      outputParameters:
      - type: object
        mapping: $.
    - name: update-player-attributes
      description: Update Player Attributes
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: mojang-minecraft-services-attributes.updatePlayerAttributes
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.