NATS · Capability

NATS Monitoring HTTP API — Server

NATS Monitoring HTTP API — Server. 2 operations. Lead operation: IP queue sizes. Self-contained Naftiko capability covering one Nats business surface.

Run with Naftiko NatsServer

What You Can Do

GET
Getipqueuesz — IP queue sizes
/v1/ipqueuesz
GET
Getvarz — General server information
/v1/varz

MCP Tools

ip-queue-sizes

IP queue sizes

read-only idempotent
general-server-information

General server information

read-only idempotent

Capability Spec

monitoring-server.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: NATS Monitoring HTTP API — Server
  description: 'NATS Monitoring HTTP API — Server. 2 operations. Lead operation: IP queue sizes. Self-contained Naftiko capability
    covering one Nats business surface.'
  tags:
  - Nats
  - Server
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NATS_API_KEY: NATS_API_KEY
capability:
  consumes:
  - type: http
    namespace: monitoring-server
    baseUri: http://localhost:8222
    description: NATS Monitoring HTTP API — Server business capability. Self-contained, no shared references.
    resources:
    - name: ipqueuesz
      path: /ipqueuesz
      operations:
      - name: getipqueuesz
        method: GET
        description: IP queue sizes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: varz
      path: /varz
      operations:
      - name: getvarz
        method: GET
        description: General server information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: monitoring-server-rest
    port: 8080
    description: REST adapter for NATS Monitoring HTTP API — Server. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/ipqueuesz
      name: ipqueuesz
      description: REST surface for ipqueuesz.
      operations:
      - method: GET
        name: getipqueuesz
        description: IP queue sizes
        call: monitoring-server.getipqueuesz
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/varz
      name: varz
      description: REST surface for varz.
      operations:
      - method: GET
        name: getvarz
        description: General server information
        call: monitoring-server.getvarz
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: monitoring-server-mcp
    port: 9090
    transport: http
    description: MCP adapter for NATS Monitoring HTTP API — Server. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: ip-queue-sizes
      description: IP queue sizes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: monitoring-server.getipqueuesz
      outputParameters:
      - type: object
        mapping: $.
    - name: general-server-information
      description: General server information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: monitoring-server.getvarz
      outputParameters:
      - type: object
        mapping: $.