naftiko: 1.0.0-alpha2 info: label: Twitch Extensions API — Configuration description: 'Twitch Extensions API — Configuration. 3 operations. Lead operation: Twitch Get Extension Configuration Segment. Self-contained Naftiko capability covering one Twitch business surface.' tags: - Twitch - Configuration created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TWITCH_API_KEY: TWITCH_API_KEY capability: consumes: - type: http namespace: extensions-configuration baseUri: https://api.twitch.tv/helix description: Twitch Extensions API — Configuration business capability. Self-contained, no shared references. resources: - name: extensions-configurations path: /extensions/configurations operations: - name: getextensionconfigurationsegment method: GET description: Twitch Get Extension Configuration Segment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: broadcaster_id in: query type: string - name: extension_id in: query type: string required: true - name: segment in: query type: string required: true - name: setextensionconfigurationsegment method: PUT description: Twitch Set Extension Configuration Segment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: extensions-required_configuration path: /extensions/required_configuration operations: - name: setextensionrequiredconfiguration method: PUT description: Twitch Set Extension Required Configuration outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: broadcaster_id in: query type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.TWITCH_API_KEY}}' exposes: - type: rest namespace: extensions-configuration-rest port: 8080 description: REST adapter for Twitch Extensions API — Configuration. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/extensions/configurations name: extensions-configurations description: REST surface for extensions-configurations. operations: - method: GET name: getextensionconfigurationsegment description: Twitch Get Extension Configuration Segment call: extensions-configuration.getextensionconfigurationsegment with: broadcaster_id: rest.broadcaster_id extension_id: rest.extension_id segment: rest.segment outputParameters: - type: object mapping: $. - method: PUT name: setextensionconfigurationsegment description: Twitch Set Extension Configuration Segment call: extensions-configuration.setextensionconfigurationsegment with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/extensions/required-configuration name: extensions-required-configuration description: REST surface for extensions-required_configuration. operations: - method: PUT name: setextensionrequiredconfiguration description: Twitch Set Extension Required Configuration call: extensions-configuration.setextensionrequiredconfiguration with: broadcaster_id: rest.broadcaster_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: extensions-configuration-mcp port: 9090 transport: http description: MCP adapter for Twitch Extensions API — Configuration. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: twitch-get-extension-configuration-segment description: Twitch Get Extension Configuration Segment hints: readOnly: true destructive: false idempotent: true call: extensions-configuration.getextensionconfigurationsegment with: broadcaster_id: tools.broadcaster_id extension_id: tools.extension_id segment: tools.segment outputParameters: - type: object mapping: $. - name: twitch-set-extension-configuration-segment description: Twitch Set Extension Configuration Segment hints: readOnly: false destructive: false idempotent: true call: extensions-configuration.setextensionconfigurationsegment with: body: tools.body outputParameters: - type: object mapping: $. - name: twitch-set-extension-required-configuration description: Twitch Set Extension Required Configuration hints: readOnly: false destructive: false idempotent: true call: extensions-configuration.setextensionrequiredconfiguration with: broadcaster_id: tools.broadcaster_id body: tools.body outputParameters: - type: object mapping: $.