naftiko: 1.0.0-alpha2 info: label: Cloudflare API — Certificates description: 'Cloudflare API — Certificates. 4 operations. Lead operation: Cloudflare List Certificates. Self-contained Naftiko capability covering one Cloudflare business surface.' tags: - Cloudflare - Certificates created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CLOUDFLARE_API_KEY: CLOUDFLARE_API_KEY capability: consumes: - type: http namespace: cloudflare-certificates baseUri: https://api.cloudflare.com/client/v4 description: Cloudflare API — Certificates business capability. Self-contained, no shared references. resources: - name: certificates path: /certificates operations: - name: origincalistcertificates method: GET description: Cloudflare List Certificates outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: identifier in: query type: string - name: origincacreatecertificate method: POST description: Cloudflare Create Certificate outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: certificates-certificate_id path: /certificates/{certificate_id} operations: - name: origincarevokecertificate method: DELETE description: Cloudflare Revoke Certificate outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: certificate_id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: origincagetcertificate method: GET description: Cloudflare Get Certificate outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: certificate_id in: path type: string required: true authentication: type: bearer token: '{{env.CLOUDFLARE_API_KEY}}' exposes: - type: rest namespace: cloudflare-certificates-rest port: 8080 description: REST adapter for Cloudflare API — Certificates. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/certificates name: certificates description: REST surface for certificates. operations: - method: GET name: origincalistcertificates description: Cloudflare List Certificates call: cloudflare-certificates.origincalistcertificates with: identifier: rest.identifier outputParameters: - type: object mapping: $. - method: POST name: origincacreatecertificate description: Cloudflare Create Certificate call: cloudflare-certificates.origincacreatecertificate with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/certificates/{certificate-id} name: certificates-certificate-id description: REST surface for certificates-certificate_id. operations: - method: DELETE name: origincarevokecertificate description: Cloudflare Revoke Certificate call: cloudflare-certificates.origincarevokecertificate with: certificate_id: rest.certificate_id body: rest.body outputParameters: - type: object mapping: $. - method: GET name: origincagetcertificate description: Cloudflare Get Certificate call: cloudflare-certificates.origincagetcertificate with: certificate_id: rest.certificate_id outputParameters: - type: object mapping: $. - type: mcp namespace: cloudflare-certificates-mcp port: 9090 transport: http description: MCP adapter for Cloudflare API — Certificates. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: cloudflare-list-certificates description: Cloudflare List Certificates hints: readOnly: true destructive: false idempotent: true call: cloudflare-certificates.origincalistcertificates with: identifier: tools.identifier outputParameters: - type: object mapping: $. - name: cloudflare-create-certificate description: Cloudflare Create Certificate hints: readOnly: false destructive: false idempotent: false call: cloudflare-certificates.origincacreatecertificate with: body: tools.body outputParameters: - type: object mapping: $. - name: cloudflare-revoke-certificate description: Cloudflare Revoke Certificate hints: readOnly: false destructive: true idempotent: true call: cloudflare-certificates.origincarevokecertificate with: certificate_id: tools.certificate_id body: tools.body outputParameters: - type: object mapping: $. - name: cloudflare-get-certificate description: Cloudflare Get Certificate hints: readOnly: true destructive: false idempotent: true call: cloudflare-certificates.origincagetcertificate with: certificate_id: tools.certificate_id outputParameters: - type: object mapping: $.