naftiko: 1.0.0-alpha2 info: label: openshift-rest-api — Builds description: 'openshift-rest-api — Builds. 7 operations. Lead operation: Openshift List Builds Across All Namespaces. Self-contained Naftiko capability covering one Openshift business surface.' tags: - Openshift - Builds created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OPENSHIFT_API_KEY: OPENSHIFT_API_KEY capability: consumes: - type: http namespace: rest-builds baseUri: https://api.openshift.com description: openshift-rest-api — Builds business capability. Self-contained, no shared references. resources: - name: apis-build.openshift.io-v1-builds path: /apis/build.openshift.io/v1/builds operations: - name: listbuildforallnamespaces method: GET description: Openshift List Builds Across All Namespaces outputRawFormat: json outputParameters: - name: result type: object value: $. - name: apis-build.openshift.io-v1-namespaces-namespace-builds path: /apis/build.openshift.io/v1/namespaces/{namespace}/builds operations: - name: listnamespacedbuild method: GET description: Openshift List Builds in a Namespace outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createnamespacedbuild method: POST description: Openshift Create a Build outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: apis-build.openshift.io-v1-namespaces-namespace-builds-name path: /apis/build.openshift.io/v1/namespaces/{namespace}/builds/{name} operations: - name: readnamespacedbuild method: GET description: Openshift Read a Build outputRawFormat: json outputParameters: - name: result type: object value: $. - name: replacenamespacedbuild method: PUT description: Openshift Replace a Build outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletenamespacedbuild method: DELETE description: Openshift Delete a Build outputRawFormat: json outputParameters: - name: result type: object value: $. - name: apis-build.openshift.io-v1-namespaces-namespace-builds-name-log path: /apis/build.openshift.io/v1/namespaces/{namespace}/builds/{name}/log operations: - name: readnamespacedbuildlog method: GET description: Openshift Read Build Log outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: container in: query type: string description: The container for which to stream logs. - name: follow in: query type: boolean description: Follow the log stream of the build. - name: sinceSeconds in: query type: integer description: A relative time in seconds before the current time from which to show logs. - name: tailLines in: query type: integer description: Number of lines from the end of the log to show. - name: timestamps in: query type: boolean description: Add RFC3339 timestamps to each log line. authentication: type: bearer token: '{{env.OPENSHIFT_API_KEY}}' exposes: - type: rest namespace: rest-builds-rest port: 8080 description: REST adapter for openshift-rest-api — Builds. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/apis/build-openshift-io/v1/builds name: apis-build-openshift-io-v1-builds description: REST surface for apis-build.openshift.io-v1-builds. operations: - method: GET name: listbuildforallnamespaces description: Openshift List Builds Across All Namespaces call: rest-builds.listbuildforallnamespaces outputParameters: - type: object mapping: $. - path: /v1/apis/build-openshift-io/v1/namespaces/{namespace}/builds name: apis-build-openshift-io-v1-namespaces-namespace-builds description: REST surface for apis-build.openshift.io-v1-namespaces-namespace-builds. operations: - method: GET name: listnamespacedbuild description: Openshift List Builds in a Namespace call: rest-builds.listnamespacedbuild outputParameters: - type: object mapping: $. - method: POST name: createnamespacedbuild description: Openshift Create a Build call: rest-builds.createnamespacedbuild with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/apis/build-openshift-io/v1/namespaces/{namespace}/builds/{name} name: apis-build-openshift-io-v1-namespaces-namespace-builds-name description: REST surface for apis-build.openshift.io-v1-namespaces-namespace-builds-name. operations: - method: GET name: readnamespacedbuild description: Openshift Read a Build call: rest-builds.readnamespacedbuild outputParameters: - type: object mapping: $. - method: PUT name: replacenamespacedbuild description: Openshift Replace a Build call: rest-builds.replacenamespacedbuild with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletenamespacedbuild description: Openshift Delete a Build call: rest-builds.deletenamespacedbuild outputParameters: - type: object mapping: $. - path: /v1/apis/build-openshift-io/v1/namespaces/{namespace}/builds/{name}/log name: apis-build-openshift-io-v1-namespaces-namespace-builds-name-log description: REST surface for apis-build.openshift.io-v1-namespaces-namespace-builds-name-log. operations: - method: GET name: readnamespacedbuildlog description: Openshift Read Build Log call: rest-builds.readnamespacedbuildlog with: container: rest.container follow: rest.follow sinceSeconds: rest.sinceSeconds tailLines: rest.tailLines timestamps: rest.timestamps outputParameters: - type: object mapping: $. - type: mcp namespace: rest-builds-mcp port: 9090 transport: http description: MCP adapter for openshift-rest-api — Builds. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: openshift-list-builds-across-all description: Openshift List Builds Across All Namespaces hints: readOnly: true destructive: false idempotent: true call: rest-builds.listbuildforallnamespaces outputParameters: - type: object mapping: $. - name: openshift-list-builds-namespace description: Openshift List Builds in a Namespace hints: readOnly: true destructive: false idempotent: true call: rest-builds.listnamespacedbuild outputParameters: - type: object mapping: $. - name: openshift-create-build description: Openshift Create a Build hints: readOnly: false destructive: false idempotent: false call: rest-builds.createnamespacedbuild with: body: tools.body outputParameters: - type: object mapping: $. - name: openshift-read-build description: Openshift Read a Build hints: readOnly: true destructive: false idempotent: true call: rest-builds.readnamespacedbuild outputParameters: - type: object mapping: $. - name: openshift-replace-build description: Openshift Replace a Build hints: readOnly: false destructive: false idempotent: true call: rest-builds.replacenamespacedbuild with: body: tools.body outputParameters: - type: object mapping: $. - name: openshift-delete-build description: Openshift Delete a Build hints: readOnly: false destructive: true idempotent: true call: rest-builds.deletenamespacedbuild outputParameters: - type: object mapping: $. - name: openshift-read-build-log description: Openshift Read Build Log hints: readOnly: true destructive: false idempotent: true call: rest-builds.readnamespacedbuildlog with: container: tools.container follow: tools.follow sinceSeconds: tools.sinceSeconds tailLines: tools.tailLines timestamps: tools.timestamps outputParameters: - type: object mapping: $.