Knative · Capability

Knative Eventing API — Channels

Knative Eventing API — Channels. 4 operations. Lead operation: Knative List Channels. Self-contained Naftiko capability covering one Knative business surface.

Run with Naftiko KnativeChannels

What You Can Do

GET
Listchannels — Knative List Channels
/v1/apis/messaging-knative-dev/v1/namespaces/{namespace}/channels
POST
Createchannel — Knative Create a Channel
/v1/apis/messaging-knative-dev/v1/namespaces/{namespace}/channels
GET
Getchannel — Knative Get a Channel
/v1/apis/messaging-knative-dev/v1/namespaces/{namespace}/channels/{name}
DELETE
Deletechannel — Knative Delete a Channel
/v1/apis/messaging-knative-dev/v1/namespaces/{namespace}/channels/{name}

MCP Tools

knative-list-channels

Knative List Channels

read-only idempotent
knative-create-channel

Knative Create a Channel

knative-get-channel

Knative Get a Channel

read-only idempotent
knative-delete-channel

Knative Delete a Channel

idempotent

Capability Spec

eventing-channels.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Knative Eventing API — Channels
  description: 'Knative Eventing API — Channels. 4 operations. Lead operation: Knative List Channels. Self-contained Naftiko
    capability covering one Knative business surface.'
  tags:
  - Knative
  - Channels
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KNATIVE_API_KEY: KNATIVE_API_KEY
capability:
  consumes:
  - type: http
    namespace: eventing-channels
    baseUri: https://kubernetes.default.svc
    description: Knative Eventing API — Channels business capability. Self-contained, no shared references.
    resources:
    - name: apis-messaging.knative.dev-v1-namespaces-namespace-channels
      path: /apis/messaging.knative.dev/v1/namespaces/{namespace}/channels
      operations:
      - name: listchannels
        method: GET
        description: Knative List Channels
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createchannel
        method: POST
        description: Knative Create a Channel
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: apis-messaging.knative.dev-v1-namespaces-namespace-channels-name
      path: /apis/messaging.knative.dev/v1/namespaces/{namespace}/channels/{name}
      operations:
      - name: getchannel
        method: GET
        description: Knative Get a Channel
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletechannel
        method: DELETE
        description: Knative Delete a Channel
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.KNATIVE_API_KEY}}'
  exposes:
  - type: rest
    namespace: eventing-channels-rest
    port: 8080
    description: REST adapter for Knative Eventing API — Channels. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/apis/messaging-knative-dev/v1/namespaces/{namespace}/channels
      name: apis-messaging-knative-dev-v1-namespaces-namespace-channels
      description: REST surface for apis-messaging.knative.dev-v1-namespaces-namespace-channels.
      operations:
      - method: GET
        name: listchannels
        description: Knative List Channels
        call: eventing-channels.listchannels
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createchannel
        description: Knative Create a Channel
        call: eventing-channels.createchannel
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/apis/messaging-knative-dev/v1/namespaces/{namespace}/channels/{name}
      name: apis-messaging-knative-dev-v1-namespaces-namespace-channels-name
      description: REST surface for apis-messaging.knative.dev-v1-namespaces-namespace-channels-name.
      operations:
      - method: GET
        name: getchannel
        description: Knative Get a Channel
        call: eventing-channels.getchannel
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletechannel
        description: Knative Delete a Channel
        call: eventing-channels.deletechannel
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: eventing-channels-mcp
    port: 9090
    transport: http
    description: MCP adapter for Knative Eventing API — Channels. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: knative-list-channels
      description: Knative List Channels
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: eventing-channels.listchannels
      outputParameters:
      - type: object
        mapping: $.
    - name: knative-create-channel
      description: Knative Create a Channel
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: eventing-channels.createchannel
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: knative-get-channel
      description: Knative Get a Channel
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: eventing-channels.getchannel
      outputParameters:
      - type: object
        mapping: $.
    - name: knative-delete-channel
      description: Knative Delete a Channel
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: eventing-channels.deletechannel
      outputParameters:
      - type: object
        mapping: $.