Envoy Proxy · Capability

Envoy Proxy Admin API — Listeners

Envoy Proxy Admin API — Listeners. 2 operations. Lead operation: Envoy Proxy Drain Listeners. Self-contained Naftiko capability covering one Envoy Proxy business surface.

Run with Naftiko Envoy ProxyListeners

What You Can Do

POST
Postdrainlisteners — Envoy Proxy Drain Listeners
/v1/drain-listeners
GET
Getlisteners — Envoy Proxy List Listeners
/v1/listeners

MCP Tools

envoy-proxy-drain-listeners

Envoy Proxy Drain Listeners

envoy-proxy-list-listeners

Envoy Proxy List Listeners

read-only idempotent

Capability Spec

admin-listeners.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Envoy Proxy Admin API — Listeners
  description: 'Envoy Proxy Admin API — Listeners. 2 operations. Lead operation: Envoy Proxy Drain Listeners. Self-contained
    Naftiko capability covering one Envoy Proxy business surface.'
  tags:
  - Envoy Proxy
  - Listeners
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ENVOY_PROXY_API_KEY: ENVOY_PROXY_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-listeners
    baseUri: http://localhost:9901
    description: Envoy Proxy Admin API — Listeners business capability. Self-contained, no shared references.
    resources:
    - name: drain_listeners
      path: /drain_listeners
      operations:
      - name: postdrainlisteners
        method: POST
        description: Envoy Proxy Drain Listeners
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: graceful
          in: query
          type: boolean
          description: When set, listeners are drained gracefully with a period where both old and new listeners accept connections.
        - name: inboundonly
          in: query
          type: boolean
          description: Drain only inbound listeners and leave outbound listeners intact.
    - name: listeners
      path: /listeners
      operations:
      - name: getlisteners
        method: GET
        description: Envoy Proxy List Listeners
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: format
          in: query
          type: string
          description: Output format for listener information.
  exposes:
  - type: rest
    namespace: admin-listeners-rest
    port: 8080
    description: REST adapter for Envoy Proxy Admin API — Listeners. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/drain-listeners
      name: drain-listeners
      description: REST surface for drain_listeners.
      operations:
      - method: POST
        name: postdrainlisteners
        description: Envoy Proxy Drain Listeners
        call: admin-listeners.postdrainlisteners
        with:
          graceful: rest.graceful
          inboundonly: rest.inboundonly
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/listeners
      name: listeners
      description: REST surface for listeners.
      operations:
      - method: GET
        name: getlisteners
        description: Envoy Proxy List Listeners
        call: admin-listeners.getlisteners
        with:
          format: rest.format
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-listeners-mcp
    port: 9090
    transport: http
    description: MCP adapter for Envoy Proxy Admin API — Listeners. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: envoy-proxy-drain-listeners
      description: Envoy Proxy Drain Listeners
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-listeners.postdrainlisteners
      with:
        graceful: tools.graceful
        inboundonly: tools.inboundonly
      outputParameters:
      - type: object
        mapping: $.
    - name: envoy-proxy-list-listeners
      description: Envoy Proxy List Listeners
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-listeners.getlisteners
      with:
        format: tools.format
      outputParameters:
      - type: object
        mapping: $.