Discord · Capability

Discord REST API — Gateway

Discord REST API — Gateway. 2 operations. Lead operation: Discord Get gateway. Self-contained Naftiko capability covering one Discord business surface.

Run with Naftiko DiscordGateway

What You Can Do

GET
Getgateway — Discord Get gateway
/v1/gateway
GET
Getgatewaybot — Discord Get gateway bot
/v1/gateway/bot

MCP Tools

discord-get-gateway

Discord Get gateway

read-only idempotent
discord-get-gateway-bot

Discord Get gateway bot

read-only idempotent

Capability Spec

rest-gateway.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Discord REST API — Gateway
  description: 'Discord REST API — Gateway. 2 operations. Lead operation: Discord Get gateway. Self-contained Naftiko capability
    covering one Discord business surface.'
  tags:
  - Discord
  - Gateway
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DISCORD_API_KEY: DISCORD_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-gateway
    baseUri: https://discord.com/api/v10
    description: Discord REST API — Gateway business capability. Self-contained, no shared references.
    resources:
    - name: gateway
      path: /gateway
      operations:
      - name: getgateway
        method: GET
        description: Discord Get gateway
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: gateway-bot
      path: /gateway/bot
      operations:
      - name: getgatewaybot
        method: GET
        description: Discord Get gateway bot
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.DISCORD_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-gateway-rest
    port: 8080
    description: REST adapter for Discord REST API — Gateway. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/gateway
      name: gateway
      description: REST surface for gateway.
      operations:
      - method: GET
        name: getgateway
        description: Discord Get gateway
        call: rest-gateway.getgateway
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gateway/bot
      name: gateway-bot
      description: REST surface for gateway-bot.
      operations:
      - method: GET
        name: getgatewaybot
        description: Discord Get gateway bot
        call: rest-gateway.getgatewaybot
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-gateway-mcp
    port: 9090
    transport: http
    description: MCP adapter for Discord REST API — Gateway. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: discord-get-gateway
      description: Discord Get gateway
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-gateway.getgateway
      outputParameters:
      - type: object
        mapping: $.
    - name: discord-get-gateway-bot
      description: Discord Get gateway bot
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-gateway.getgatewaybot
      outputParameters:
      - type: object
        mapping: $.