Discord · Capability

Discord HTTP API (Preview) — Oauth2

Discord HTTP API (Preview) — Oauth2. 3 operations. Lead operation: Oauth2. Self-contained Naftiko capability covering one Discord business surface.

Run with Naftiko DiscordOauth2

What You Can Do

GET
Getmyoauth2authorization — getmyoauth2authorization
/v1/oauth2/me
GET
Getmyoauth2application — getmyoauth2application
/v1/oauth2/applications/me
GET
Getpublickeys — getpublickeys
/v1/oauth2/keys

MCP Tools

getmyoauth2authorization

getmyoauth2authorization

read-only idempotent
getmyoauth2application

getmyoauth2application

read-only idempotent
getpublickeys

getpublickeys

read-only idempotent

Capability Spec

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