Longhorn · Capability

Longhorn Manager API — Settings

Longhorn Manager API — Settings. 3 operations. Lead operation: Longhorn List all settings. Self-contained Naftiko capability covering one Longhorn business surface.

Run with Naftiko LonghornSettings

What You Can Do

GET
Listsettings — Longhorn List all settings
/v1/v1/settings
GET
Getsetting — Longhorn Get a setting
/v1/v1/settings/{settingname}
PUT
Updatesetting — Longhorn Update a setting
/v1/v1/settings/{settingname}

MCP Tools

longhorn-list-all-settings

Longhorn List all settings

read-only idempotent
longhorn-get-setting

Longhorn Get a setting

read-only idempotent
longhorn-update-setting

Longhorn Update a setting

idempotent

Capability Spec

manager-settings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Longhorn Manager API — Settings
  description: 'Longhorn Manager API — Settings. 3 operations. Lead operation: Longhorn List all settings. Self-contained
    Naftiko capability covering one Longhorn business surface.'
  tags:
  - Longhorn
  - Settings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LONGHORN_API_KEY: LONGHORN_API_KEY
capability:
  consumes:
  - type: http
    namespace: manager-settings
    baseUri: http://{longhornManagerHost}:{longhornManagerPort}
    description: Longhorn Manager API — Settings business capability. Self-contained, no shared references.
    resources:
    - name: v1-settings
      path: /v1/settings
      operations:
      - name: listsettings
        method: GET
        description: Longhorn List all settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-settings-settingName
      path: /v1/settings/{settingName}
      operations:
      - name: getsetting
        method: GET
        description: Longhorn Get a setting
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatesetting
        method: PUT
        description: Longhorn Update a setting
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.LONGHORN_API_KEY}}'
  exposes:
  - type: rest
    namespace: manager-settings-rest
    port: 8080
    description: REST adapter for Longhorn Manager API — Settings. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/settings
      name: v1-settings
      description: REST surface for v1-settings.
      operations:
      - method: GET
        name: listsettings
        description: Longhorn List all settings
        call: manager-settings.listsettings
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/settings/{settingname}
      name: v1-settings-settingname
      description: REST surface for v1-settings-settingName.
      operations:
      - method: GET
        name: getsetting
        description: Longhorn Get a setting
        call: manager-settings.getsetting
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatesetting
        description: Longhorn Update a setting
        call: manager-settings.updatesetting
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: manager-settings-mcp
    port: 9090
    transport: http
    description: MCP adapter for Longhorn Manager API — Settings. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: longhorn-list-all-settings
      description: Longhorn List all settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: manager-settings.listsettings
      outputParameters:
      - type: object
        mapping: $.
    - name: longhorn-get-setting
      description: Longhorn Get a setting
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: manager-settings.getsetting
      outputParameters:
      - type: object
        mapping: $.
    - name: longhorn-update-setting
      description: Longhorn Update a setting
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: manager-settings.updatesetting
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.