Moonshot AI · Capability

Moonshot AI API — Models

Moonshot AI API — Models. 1 operations. Lead operation: List Models. Self-contained Naftiko capability covering one Moonshot Ai business surface.

Run with Naftiko Moonshot AiModels

What You Can Do

GET
Get — List Models
/v1/v1/models

MCP Tools

list-models

List Models

read-only idempotent

Capability Spec

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