Mojang · Capability

Minecraft Services API — Friends

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

Run with Naftiko MojangMinecraftFriends

What You Can Do

GET
Getfriends — Get Friends
/v1/friends
PUT
Updatefriends — Update Friends
/v1/friends

MCP Tools

get-friends

Get Friends

read-only idempotent
update-friends

Update Friends

idempotent

Capability Spec

mojang-minecraft-services-friends.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: "Minecraft Services API \u2014 Friends"
  description: "Minecraft Services API \u2014 Friends. 2 operations. Lead operation: Get Friends. Self-contained Naftiko capability covering one Mojang business surface."
  tags:
  - Mojang
  - Minecraft
  - Friends
  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-friends
    baseUri: https://api.minecraftservices.com
    description: "Minecraft Services API \u2014 friends. Self-contained, no shared references."
    authentication:
      type: bearer
      token: '{{env.MINECRAFT_ACCESS_TOKEN}}'
    resources:
    - name: friends
      path: /friends
      operations:
      - name: getFriends
        method: GET
        description: Get Friends
        inputParameters:
        - name: If-None-Match
          in: header
          type: string
          required: false
          description: "Conditional ETag \u2014 return 304 if unchanged."
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateFriends
        method: PUT
        description: Update Friends
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
          description: Friend update payload.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: mojang-minecraft-services-friends-rest
    port: 8080
    description: "REST adapter for Minecraft Services API \u2014 friends. One Spectral-compliant resource per consumed operation, prefixed with /v1."
    resources:
    - path: /v1/friends
      name: friends
      description: REST surface for /friends.
      operations:
      - method: GET
        name: getFriends
        description: Get Friends
        call: mojang-minecraft-services-friends.getFriends
        with:
          If-None-Match: rest.If-None-Match
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateFriends
        description: Update Friends
        call: mojang-minecraft-services-friends.updateFriends
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: mojang-minecraft-services-friends-mcp
    port: 9090
    transport: http
    description: "MCP adapter for Minecraft Services API \u2014 friends. One tool per consumed operation, routed inline through this capability's consumes block."
    tools:
    - name: get-friends
      description: Get Friends
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: mojang-minecraft-services-friends.getFriends
      with:
        If-None-Match: tools.If-None-Match
      outputParameters:
      - type: object
        mapping: $.
    - name: update-friends
      description: Update Friends
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: mojang-minecraft-services-friends.updateFriends
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.