Etcd · Capability

etcd HTTP Gateway API — Cluster

etcd HTTP Gateway API — Cluster. 5 operations. Lead operation: Etcd Add a member to the cluster. Self-contained Naftiko capability covering one Etcd business surface.

Run with Naftiko EtcdCluster

What You Can Do

POST
Clustermemberadd — Etcd Add a member to the cluster
/v1/cluster/member/add
POST
Clustermemberlist — Etcd List cluster members
/v1/cluster/member/list
POST
Clustermemberpromote — Etcd Promote a learner member
/v1/cluster/member/promote
POST
Clustermemberremove — Etcd Remove a member from the cluster
/v1/cluster/member/remove
POST
Clustermemberupdate — Etcd Update a cluster member
/v1/cluster/member/update

MCP Tools

etcd-add-member-cluster

Etcd Add a member to the cluster

etcd-list-cluster-members

Etcd List cluster members

read-only
etcd-promote-learner-member

Etcd Promote a learner member

etcd-remove-member-cluster

Etcd Remove a member from the cluster

etcd-update-cluster-member

Etcd Update a cluster member

Capability Spec

http-gateway-cluster.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: etcd HTTP Gateway API — Cluster
  description: 'etcd HTTP Gateway API — Cluster. 5 operations. Lead operation: Etcd Add a member to the cluster. Self-contained
    Naftiko capability covering one Etcd business surface.'
  tags:
  - Etcd
  - Cluster
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ETCD_API_KEY: ETCD_API_KEY
capability:
  consumes:
  - type: http
    namespace: http-gateway-cluster
    baseUri: http://{host}:{port}/v3
    description: etcd HTTP Gateway API — Cluster business capability. Self-contained, no shared references.
    resources:
    - name: cluster-member-add
      path: /cluster/member/add
      operations:
      - name: clustermemberadd
        method: POST
        description: Etcd Add a member to the cluster
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: cluster-member-list
      path: /cluster/member/list
      operations:
      - name: clustermemberlist
        method: POST
        description: Etcd List cluster members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: cluster-member-promote
      path: /cluster/member/promote
      operations:
      - name: clustermemberpromote
        method: POST
        description: Etcd Promote a learner member
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: cluster-member-remove
      path: /cluster/member/remove
      operations:
      - name: clustermemberremove
        method: POST
        description: Etcd Remove a member from the cluster
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: cluster-member-update
      path: /cluster/member/update
      operations:
      - name: clustermemberupdate
        method: POST
        description: Etcd Update a cluster member
        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.ETCD_API_KEY}}'
  exposes:
  - type: rest
    namespace: http-gateway-cluster-rest
    port: 8080
    description: REST adapter for etcd HTTP Gateway API — Cluster. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/cluster/member/add
      name: cluster-member-add
      description: REST surface for cluster-member-add.
      operations:
      - method: POST
        name: clustermemberadd
        description: Etcd Add a member to the cluster
        call: http-gateway-cluster.clustermemberadd
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cluster/member/list
      name: cluster-member-list
      description: REST surface for cluster-member-list.
      operations:
      - method: POST
        name: clustermemberlist
        description: Etcd List cluster members
        call: http-gateway-cluster.clustermemberlist
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cluster/member/promote
      name: cluster-member-promote
      description: REST surface for cluster-member-promote.
      operations:
      - method: POST
        name: clustermemberpromote
        description: Etcd Promote a learner member
        call: http-gateway-cluster.clustermemberpromote
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cluster/member/remove
      name: cluster-member-remove
      description: REST surface for cluster-member-remove.
      operations:
      - method: POST
        name: clustermemberremove
        description: Etcd Remove a member from the cluster
        call: http-gateway-cluster.clustermemberremove
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cluster/member/update
      name: cluster-member-update
      description: REST surface for cluster-member-update.
      operations:
      - method: POST
        name: clustermemberupdate
        description: Etcd Update a cluster member
        call: http-gateway-cluster.clustermemberupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: http-gateway-cluster-mcp
    port: 9090
    transport: http
    description: MCP adapter for etcd HTTP Gateway API — Cluster. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: etcd-add-member-cluster
      description: Etcd Add a member to the cluster
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: http-gateway-cluster.clustermemberadd
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: etcd-list-cluster-members
      description: Etcd List cluster members
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: http-gateway-cluster.clustermemberlist
      outputParameters:
      - type: object
        mapping: $.
    - name: etcd-promote-learner-member
      description: Etcd Promote a learner member
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: http-gateway-cluster.clustermemberpromote
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: etcd-remove-member-cluster
      description: Etcd Remove a member from the cluster
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: http-gateway-cluster.clustermemberremove
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: etcd-update-cluster-member
      description: Etcd Update a cluster member
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: http-gateway-cluster.clustermemberupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.