naftiko: 1.0.0-alpha2 info: label: Kong Enterprise Admin API — KeySets description: 'Kong Enterprise Admin API — KeySets. 4 operations. Lead operation: Create a new KeySet. Self-contained Naftiko capability covering one Kong business surface.' tags: - Kong - KeySets 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-keysets baseUri: '' description: Kong Enterprise Admin API — KeySets business capability. Self-contained, no shared references. resources: - name: workspace-key-sets path: /{workspace}/key-sets operations: - name: createkeyset method: POST description: Create a new KeySet outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: workspace-key-sets-KeySetIdOrName path: /{workspace}/key-sets/{KeySetIdOrName} operations: - name: deletekeyset method: DELETE description: Delete a KeySet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: getkeyset method: GET description: Get a KeySet outputRawFormat: json outputParameters: - name: result type: object value: $. - name: upsertkeyset method: PUT description: Upsert a KeySet outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: apikey key: Kong-Admin-Token value: '{{env.KONG_API_KEY}}' placement: header exposes: - type: rest namespace: gateway-admin-keysets-rest port: 8080 description: REST adapter for Kong Enterprise Admin API — KeySets. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/{workspace}/key-sets name: workspace-key-sets description: REST surface for workspace-key-sets. operations: - method: POST name: createkeyset description: Create a new KeySet call: gateway-admin-keysets.createkeyset with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/{workspace}/key-sets/{keysetidorname} name: workspace-key-sets-keysetidorname description: REST surface for workspace-key-sets-KeySetIdOrName. operations: - method: DELETE name: deletekeyset description: Delete a KeySet call: gateway-admin-keysets.deletekeyset outputParameters: - type: object mapping: $. - method: GET name: getkeyset description: Get a KeySet call: gateway-admin-keysets.getkeyset outputParameters: - type: object mapping: $. - method: PUT name: upsertkeyset description: Upsert a KeySet call: gateway-admin-keysets.upsertkeyset with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: gateway-admin-keysets-mcp port: 9090 transport: http description: MCP adapter for Kong Enterprise Admin API — KeySets. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-new-keyset description: Create a new KeySet hints: readOnly: false destructive: false idempotent: false call: gateway-admin-keysets.createkeyset with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-keyset description: Delete a KeySet hints: readOnly: false destructive: true idempotent: true call: gateway-admin-keysets.deletekeyset outputParameters: - type: object mapping: $. - name: get-keyset description: Get a KeySet hints: readOnly: true destructive: false idempotent: true call: gateway-admin-keysets.getkeyset outputParameters: - type: object mapping: $. - name: upsert-keyset description: Upsert a KeySet hints: readOnly: false destructive: false idempotent: true call: gateway-admin-keysets.upsertkeyset with: body: tools.body outputParameters: - type: object mapping: $.