naftiko: 1.0.0-alpha2 info: label: Envoy AI Gateway API — Text Completions description: 'Envoy AI Gateway API — Text Completions. 1 operations. Lead operation: Envoy Create a text completion. Self-contained Naftiko capability covering one Envoy business surface.' tags: - Envoy - Text Completions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ENVOY_API_KEY: ENVOY_API_KEY capability: consumes: - type: http namespace: ai-gateway-text-completions baseUri: https://{gateway-host} description: Envoy AI Gateway API — Text Completions business capability. Self-contained, no shared references. resources: - name: v1-completions path: /v1/completions operations: - name: createcompletion method: POST description: Envoy Create a text completion outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.ENVOY_API_KEY}}' exposes: - type: rest namespace: ai-gateway-text-completions-rest port: 8080 description: REST adapter for Envoy AI Gateway API — Text Completions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/completions name: v1-completions description: REST surface for v1-completions. operations: - method: POST name: createcompletion description: Envoy Create a text completion call: ai-gateway-text-completions.createcompletion with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: ai-gateway-text-completions-mcp port: 9090 transport: http description: MCP adapter for Envoy AI Gateway API — Text Completions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: envoy-create-text-completion description: Envoy Create a text completion hints: readOnly: false destructive: false idempotent: false call: ai-gateway-text-completions.createcompletion with: body: tools.body outputParameters: - type: object mapping: $.