naftiko: 1.0.0-alpha2 info: label: Knative Eventing API — Subscriptions description: 'Knative Eventing API — Subscriptions. 4 operations. Lead operation: Knative List Subscriptions. Self-contained Naftiko capability covering one Knative business surface.' tags: - Knative - Subscriptions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: KNATIVE_API_KEY: KNATIVE_API_KEY capability: consumes: - type: http namespace: eventing-subscriptions baseUri: https://kubernetes.default.svc description: Knative Eventing API — Subscriptions business capability. Self-contained, no shared references. resources: - name: apis-messaging.knative.dev-v1-namespaces-namespace-subscriptions path: /apis/messaging.knative.dev/v1/namespaces/{namespace}/subscriptions operations: - name: listsubscriptions method: GET description: Knative List Subscriptions outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createsubscription method: POST description: Knative Create a Subscription 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-subscriptions-name path: /apis/messaging.knative.dev/v1/namespaces/{namespace}/subscriptions/{name} operations: - name: getsubscription method: GET description: Knative Get a Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deletesubscription method: DELETE description: Knative Delete a Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.KNATIVE_API_KEY}}' exposes: - type: rest namespace: eventing-subscriptions-rest port: 8080 description: REST adapter for Knative Eventing API — Subscriptions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/apis/messaging-knative-dev/v1/namespaces/{namespace}/subscriptions name: apis-messaging-knative-dev-v1-namespaces-namespace-subscriptions description: REST surface for apis-messaging.knative.dev-v1-namespaces-namespace-subscriptions. operations: - method: GET name: listsubscriptions description: Knative List Subscriptions call: eventing-subscriptions.listsubscriptions outputParameters: - type: object mapping: $. - method: POST name: createsubscription description: Knative Create a Subscription call: eventing-subscriptions.createsubscription with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/apis/messaging-knative-dev/v1/namespaces/{namespace}/subscriptions/{name} name: apis-messaging-knative-dev-v1-namespaces-namespace-subscriptions-name description: REST surface for apis-messaging.knative.dev-v1-namespaces-namespace-subscriptions-name. operations: - method: GET name: getsubscription description: Knative Get a Subscription call: eventing-subscriptions.getsubscription outputParameters: - type: object mapping: $. - method: DELETE name: deletesubscription description: Knative Delete a Subscription call: eventing-subscriptions.deletesubscription outputParameters: - type: object mapping: $. - type: mcp namespace: eventing-subscriptions-mcp port: 9090 transport: http description: MCP adapter for Knative Eventing API — Subscriptions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: knative-list-subscriptions description: Knative List Subscriptions hints: readOnly: true destructive: false idempotent: true call: eventing-subscriptions.listsubscriptions outputParameters: - type: object mapping: $. - name: knative-create-subscription description: Knative Create a Subscription hints: readOnly: false destructive: false idempotent: false call: eventing-subscriptions.createsubscription with: body: tools.body outputParameters: - type: object mapping: $. - name: knative-get-subscription description: Knative Get a Subscription hints: readOnly: true destructive: false idempotent: true call: eventing-subscriptions.getsubscription outputParameters: - type: object mapping: $. - name: knative-delete-subscription description: Knative Delete a Subscription hints: readOnly: false destructive: true idempotent: true call: eventing-subscriptions.deletesubscription outputParameters: - type: object mapping: $.