NATS · Capability

NATS Monitoring HTTP API — Health

NATS Monitoring HTTP API — Health. 1 operations. Lead operation: Health check. Self-contained Naftiko capability covering one Nats business surface.

Run with Naftiko NatsHealth

What You Can Do

GET
Gethealthz — Health check
/v1/healthz

MCP Tools

health-check

Health check

read-only idempotent

Capability Spec

monitoring-health.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: NATS Monitoring HTTP API — Health
  description: 'NATS Monitoring HTTP API — Health. 1 operations. Lead operation: Health check. Self-contained Naftiko capability
    covering one Nats business surface.'
  tags:
  - Nats
  - Health
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NATS_API_KEY: NATS_API_KEY
capability:
  consumes:
  - type: http
    namespace: monitoring-health
    baseUri: http://localhost:8222
    description: NATS Monitoring HTTP API — Health business capability. Self-contained, no shared references.
    resources:
    - name: healthz
      path: /healthz
      operations:
      - name: gethealthz
        method: GET
        description: Health check
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: js-enabled-only
          in: query
          type: boolean
        - name: js-server-only
          in: query
          type: boolean
  exposes:
  - type: rest
    namespace: monitoring-health-rest
    port: 8080
    description: REST adapter for NATS Monitoring HTTP API — Health. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/healthz
      name: healthz
      description: REST surface for healthz.
      operations:
      - method: GET
        name: gethealthz
        description: Health check
        call: monitoring-health.gethealthz
        with:
          js-enabled-only: rest.js-enabled-only
          js-server-only: rest.js-server-only
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: monitoring-health-mcp
    port: 9090
    transport: http
    description: MCP adapter for NATS Monitoring HTTP API — Health. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: health-check
      description: Health check
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: monitoring-health.gethealthz
      with:
        js-enabled-only: tools.js-enabled-only
        js-server-only: tools.js-server-only
      outputParameters:
      - type: object
        mapping: $.