Discourse · Capability

Discourse API Documentation — Site

Discourse API Documentation — Site. 2 operations. Lead operation: Get site info. Self-contained Naftiko capability covering one Discourse business surface.

Run with Naftiko DiscourseSite

What You Can Do

GET
Getsite — Get site info
/v1/site-json
GET
Getsitebasicinfo — Get site basic info
/v1/site/basic-info-json

MCP Tools

get-site-info

Get site info

read-only idempotent
get-site-basic-info

Get site basic info

read-only idempotent

Capability Spec

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