naftiko: 1.0.0-alpha2 info: label: Kong Enterprise Admin API — Consumers description: 'Kong Enterprise Admin API — Consumers. 4 operations. Lead operation: Create a new Consumer. Self-contained Naftiko capability covering one Kong business surface.' tags: - Kong - Consumers created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: KONG_API_KEY: KONG_API_KEY capability: consumes: - type: http namespace: gateway-admin-consumers baseUri: '' description: Kong Enterprise Admin API — Consumers business capability. Self-contained, no shared references. resources: - name: workspace-consumers path: /{workspace}/consumers operations: - name: createconsumer method: POST description: Create a new Consumer outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: workspace-consumers-ConsumerIdOrUsername path: /{workspace}/consumers/{ConsumerIdOrUsername} operations: - name: deleteconsumer method: DELETE description: Delete a Consumer outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getconsumer method: GET description: Get a Consumer outputRawFormat: json outputParameters: - name: result type: object value: $. - name: upsertconsumer method: PUT description: Upsert a Consumer outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: Kong-Admin-Token value: '{{env.KONG_API_KEY}}' placement: header exposes: - type: rest namespace: gateway-admin-consumers-rest port: 8080 description: REST adapter for Kong Enterprise Admin API — Consumers. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/{workspace}/consumers name: workspace-consumers description: REST surface for workspace-consumers. operations: - method: POST name: createconsumer description: Create a new Consumer call: gateway-admin-consumers.createconsumer with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/{workspace}/consumers/{consumeridorusername} name: workspace-consumers-consumeridorusername description: REST surface for workspace-consumers-ConsumerIdOrUsername. operations: - method: DELETE name: deleteconsumer description: Delete a Consumer call: gateway-admin-consumers.deleteconsumer outputParameters: - type: object mapping: $. - method: GET name: getconsumer description: Get a Consumer call: gateway-admin-consumers.getconsumer outputParameters: - type: object mapping: $. - method: PUT name: upsertconsumer description: Upsert a Consumer call: gateway-admin-consumers.upsertconsumer with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: gateway-admin-consumers-mcp port: 9090 transport: http description: MCP adapter for Kong Enterprise Admin API — Consumers. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-new-consumer description: Create a new Consumer hints: readOnly: false destructive: false idempotent: false call: gateway-admin-consumers.createconsumer with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-consumer description: Delete a Consumer hints: readOnly: false destructive: true idempotent: true call: gateway-admin-consumers.deleteconsumer outputParameters: - type: object mapping: $. - name: get-consumer description: Get a Consumer hints: readOnly: true destructive: false idempotent: true call: gateway-admin-consumers.getconsumer outputParameters: - type: object mapping: $. - name: upsert-consumer description: Upsert a Consumer hints: readOnly: false destructive: false idempotent: true call: gateway-admin-consumers.upsertconsumer with: body: tools.body outputParameters: - type: object mapping: $.