Knative · Capability

Knative Serving API — Revisions

Knative Serving API — Revisions. 3 operations. Lead operation: List Knative Revisions. Self-contained Naftiko capability covering one Knative business surface.

Run with Naftiko KnativeRevisions

What You Can Do

GET
Listrevisions — List Knative Revisions
/v1/apis/serving-knative-dev/v1/namespaces/{namespace}/revisions
GET
Getrevision — Get a Knative Revision
/v1/apis/serving-knative-dev/v1/namespaces/{namespace}/revisions/{name}
DELETE
Deleterevision — Delete a Knative Revision
/v1/apis/serving-knative-dev/v1/namespaces/{namespace}/revisions/{name}

MCP Tools

list-knative-revisions

List Knative Revisions

read-only idempotent
get-knative-revision

Get a Knative Revision

read-only idempotent
delete-knative-revision

Delete a Knative Revision

idempotent

Capability Spec

serving-revisions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Knative Serving API — Revisions
  description: 'Knative Serving API — Revisions. 3 operations. Lead operation: List Knative Revisions. Self-contained Naftiko
    capability covering one Knative business surface.'
  tags:
  - Knative
  - Revisions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KNATIVE_API_KEY: KNATIVE_API_KEY
capability:
  consumes:
  - type: http
    namespace: serving-revisions
    baseUri: https://kubernetes.default.svc
    description: Knative Serving API — Revisions business capability. Self-contained, no shared references.
    resources:
    - name: apis-serving.knative.dev-v1-namespaces-namespace-revisions
      path: /apis/serving.knative.dev/v1/namespaces/{namespace}/revisions
      operations:
      - name: listrevisions
        method: GET
        description: List Knative Revisions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: apis-serving.knative.dev-v1-namespaces-namespace-revisions-name
      path: /apis/serving.knative.dev/v1/namespaces/{namespace}/revisions/{name}
      operations:
      - name: getrevision
        method: GET
        description: Get a Knative Revision
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleterevision
        method: DELETE
        description: Delete a Knative Revision
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.KNATIVE_API_KEY}}'
  exposes:
  - type: rest
    namespace: serving-revisions-rest
    port: 8080
    description: REST adapter for Knative Serving API — Revisions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/apis/serving-knative-dev/v1/namespaces/{namespace}/revisions
      name: apis-serving-knative-dev-v1-namespaces-namespace-revisions
      description: REST surface for apis-serving.knative.dev-v1-namespaces-namespace-revisions.
      operations:
      - method: GET
        name: listrevisions
        description: List Knative Revisions
        call: serving-revisions.listrevisions
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/apis/serving-knative-dev/v1/namespaces/{namespace}/revisions/{name}
      name: apis-serving-knative-dev-v1-namespaces-namespace-revisions-name
      description: REST surface for apis-serving.knative.dev-v1-namespaces-namespace-revisions-name.
      operations:
      - method: GET
        name: getrevision
        description: Get a Knative Revision
        call: serving-revisions.getrevision
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleterevision
        description: Delete a Knative Revision
        call: serving-revisions.deleterevision
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: serving-revisions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Knative Serving API — Revisions. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-knative-revisions
      description: List Knative Revisions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: serving-revisions.listrevisions
      outputParameters:
      - type: object
        mapping: $.
    - name: get-knative-revision
      description: Get a Knative Revision
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: serving-revisions.getrevision
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-knative-revision
      description: Delete a Knative Revision
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: serving-revisions.deleterevision
      outputParameters:
      - type: object
        mapping: $.