Nacos · Capability

Nacos Open API — Operator

Nacos Open API — Operator. 4 operations. Lead operation: Get server metrics. Self-contained Naftiko capability covering one Nacos business surface.

Run with Naftiko NacosOperator

What You Can Do

GET
Getmetrics — Get server metrics
/v1/v1/ns/operator/metrics
GET
Listservers — List cluster servers
/v1/v1/ns/operator/servers
GET
Getswitches — Get system switches
/v1/v1/ns/operator/switches
PUT
Updateswitches — Update system switches
/v1/v1/ns/operator/switches

MCP Tools

get-server-metrics

Get server metrics

read-only idempotent
list-cluster-servers

List cluster servers

read-only idempotent
get-system-switches

Get system switches

read-only idempotent
update-system-switches

Update system switches

idempotent

Capability Spec

open-operator.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Nacos Open API — Operator
  description: 'Nacos Open API — Operator. 4 operations. Lead operation: Get server metrics. Self-contained Naftiko capability
    covering one Nacos business surface.'
  tags:
  - Nacos
  - Operator
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NACOS_API_KEY: NACOS_API_KEY
capability:
  consumes:
  - type: http
    namespace: open-operator
    baseUri: http://localhost:8848/nacos
    description: Nacos Open API — Operator business capability. Self-contained, no shared references.
    resources:
    - name: v1-ns-operator-metrics
      path: /v1/ns/operator/metrics
      operations:
      - name: getmetrics
        method: GET
        description: Get server metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-ns-operator-servers
      path: /v1/ns/operator/servers
      operations:
      - name: listservers
        method: GET
        description: List cluster servers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: healthy
          in: query
          type: boolean
          description: Filter by health status
    - name: v1-ns-operator-switches
      path: /v1/ns/operator/switches
      operations:
      - name: getswitches
        method: GET
        description: Get system switches
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateswitches
        method: PUT
        description: Update system switches
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: entry
          in: query
          type: string
          description: Switch entry key
          required: true
        - name: value
          in: query
          type: string
          description: Switch entry value
          required: true
        - name: debug
          in: query
          type: boolean
    authentication:
      type: apikey
      key: accessToken
      value: '{{env.NACOS_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: open-operator-rest
    port: 8080
    description: REST adapter for Nacos Open API — Operator. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/ns/operator/metrics
      name: v1-ns-operator-metrics
      description: REST surface for v1-ns-operator-metrics.
      operations:
      - method: GET
        name: getmetrics
        description: Get server metrics
        call: open-operator.getmetrics
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/ns/operator/servers
      name: v1-ns-operator-servers
      description: REST surface for v1-ns-operator-servers.
      operations:
      - method: GET
        name: listservers
        description: List cluster servers
        call: open-operator.listservers
        with:
          healthy: rest.healthy
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/ns/operator/switches
      name: v1-ns-operator-switches
      description: REST surface for v1-ns-operator-switches.
      operations:
      - method: GET
        name: getswitches
        description: Get system switches
        call: open-operator.getswitches
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateswitches
        description: Update system switches
        call: open-operator.updateswitches
        with:
          entry: rest.entry
          value: rest.value
          debug: rest.debug
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: open-operator-mcp
    port: 9090
    transport: http
    description: MCP adapter for Nacos Open API — Operator. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-server-metrics
      description: Get server metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-operator.getmetrics
      outputParameters:
      - type: object
        mapping: $.
    - name: list-cluster-servers
      description: List cluster servers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-operator.listservers
      with:
        healthy: tools.healthy
      outputParameters:
      - type: object
        mapping: $.
    - name: get-system-switches
      description: Get system switches
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: open-operator.getswitches
      outputParameters:
      - type: object
        mapping: $.
    - name: update-system-switches
      description: Update system switches
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: open-operator.updateswitches
      with:
        entry: tools.entry
        value: tools.value
        debug: tools.debug
      outputParameters:
      - type: object
        mapping: $.