CockroachDB · Capability

CockroachDB Cluster API — Nodes

CockroachDB Cluster API — Nodes. 1 operations. Lead operation: List nodes. Self-contained Naftiko capability covering one Cockroachdb business surface.

Run with Naftiko CockroachdbNodes

What You Can Do

GET
Listnodes — List nodes
/v1/api/v2/nodes

MCP Tools

list-nodes

List nodes

read-only idempotent

Capability Spec

cluster-nodes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CockroachDB Cluster API — Nodes
  description: 'CockroachDB Cluster API — Nodes. 1 operations. Lead operation: List nodes. Self-contained Naftiko capability
    covering one Cockroachdb business surface.'
  tags:
  - Cockroachdb
  - Nodes
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COCKROACHDB_API_KEY: COCKROACHDB_API_KEY
capability:
  consumes:
  - type: http
    namespace: cluster-nodes
    baseUri: https://localhost:8080
    description: CockroachDB Cluster API — Nodes business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-nodes
      path: /api/v2/nodes/
      operations:
      - name: listnodes
        method: GET
        description: List nodes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-Cockroach-API-Session
      value: '{{env.COCKROACHDB_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: cluster-nodes-rest
    port: 8080
    description: REST adapter for CockroachDB Cluster API — Nodes. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/v2/nodes
      name: api-v2-nodes
      description: REST surface for api-v2-nodes.
      operations:
      - method: GET
        name: listnodes
        description: List nodes
        call: cluster-nodes.listnodes
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cluster-nodes-mcp
    port: 9090
    transport: http
    description: MCP adapter for CockroachDB Cluster API — Nodes. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-nodes
      description: List nodes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cluster-nodes.listnodes
      outputParameters:
      - type: object
        mapping: $.