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