Stack Exchange · Capability

Stack Exchange API — Sites

Stack Exchange API — Sites. 1 operations. Lead operation: Get All Sites. Self-contained Naftiko capability covering one Stack Exchange business surface.

Run with Naftiko Stack ExchangeSites

What You Can Do

GET
Getsites — Get All Sites
/v1/sites

MCP Tools

get-all-sites

Get All Sites

read-only idempotent

Capability Spec

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