Longhorn · Capability

Longhorn Manager API — Nodes

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

Run with Naftiko LonghornNodes

What You Can Do

GET
Listnodes — Longhorn List nodes
/v1/v1/nodes
GET
Getnode — Longhorn Get a node
/v1/v1/nodes/{nodeid}
PUT
Updatenode — Longhorn Update a node
/v1/v1/nodes/{nodeid}

MCP Tools

longhorn-list-nodes

Longhorn List nodes

read-only idempotent
longhorn-get-node

Longhorn Get a node

read-only idempotent
longhorn-update-node

Longhorn Update a node

idempotent

Capability Spec

manager-nodes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Longhorn Manager API — Nodes
  description: 'Longhorn Manager API — Nodes. 3 operations. Lead operation: Longhorn List nodes. Self-contained Naftiko capability
    covering one Longhorn business surface.'
  tags:
  - Longhorn
  - Nodes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LONGHORN_API_KEY: LONGHORN_API_KEY
capability:
  consumes:
  - type: http
    namespace: manager-nodes
    baseUri: http://{longhornManagerHost}:{longhornManagerPort}
    description: Longhorn Manager API — Nodes business capability. Self-contained, no shared references.
    resources:
    - name: v1-nodes
      path: /v1/nodes
      operations:
      - name: listnodes
        method: GET
        description: Longhorn List nodes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-nodes-nodeId
      path: /v1/nodes/{nodeId}
      operations:
      - name: getnode
        method: GET
        description: Longhorn Get a node
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatenode
        method: PUT
        description: Longhorn Update a node
        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-nodes-rest
    port: 8080
    description: REST adapter for Longhorn Manager API — Nodes. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/nodes
      name: v1-nodes
      description: REST surface for v1-nodes.
      operations:
      - method: GET
        name: listnodes
        description: Longhorn List nodes
        call: manager-nodes.listnodes
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/nodes/{nodeid}
      name: v1-nodes-nodeid
      description: REST surface for v1-nodes-nodeId.
      operations:
      - method: GET
        name: getnode
        description: Longhorn Get a node
        call: manager-nodes.getnode
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatenode
        description: Longhorn Update a node
        call: manager-nodes.updatenode
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: manager-nodes-mcp
    port: 9090
    transport: http
    description: MCP adapter for Longhorn Manager API — Nodes. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: longhorn-list-nodes
      description: Longhorn List nodes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: manager-nodes.listnodes
      outputParameters:
      - type: object
        mapping: $.
    - name: longhorn-get-node
      description: Longhorn Get a node
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: manager-nodes.getnode
      outputParameters:
      - type: object
        mapping: $.
    - name: longhorn-update-node
      description: Longhorn Update a node
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: manager-nodes.updatenode
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.