naftiko: 1.0.0-alpha2 info: label: Twitch Helix API — Search description: 'Twitch Helix API — Search. 2 operations. Lead operation: Twitch Search Categories. Self-contained Naftiko capability covering one Twitch business surface.' tags: - Twitch - Search created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TWITCH_API_KEY: TWITCH_API_KEY capability: consumes: - type: http namespace: helix-search baseUri: https://api.twitch.tv/helix description: Twitch Helix API — Search business capability. Self-contained, no shared references. resources: - name: search-categories path: /search/categories operations: - name: searchcategories method: GET description: Twitch Search Categories outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: query in: query type: string required: true - name: search-channels path: /search/channels operations: - name: searchchannels method: GET description: Twitch Search Channels outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: query in: query type: string required: true - name: live_only in: query type: boolean authentication: type: bearer token: '{{env.TWITCH_API_KEY}}' exposes: - type: rest namespace: helix-search-rest port: 8080 description: REST adapter for Twitch Helix API — Search. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/search/categories name: search-categories description: REST surface for search-categories. operations: - method: GET name: searchcategories description: Twitch Search Categories call: helix-search.searchcategories with: query: rest.query outputParameters: - type: object mapping: $. - path: /v1/search/channels name: search-channels description: REST surface for search-channels. operations: - method: GET name: searchchannels description: Twitch Search Channels call: helix-search.searchchannels with: query: rest.query live_only: rest.live_only outputParameters: - type: object mapping: $. - type: mcp namespace: helix-search-mcp port: 9090 transport: http description: MCP adapter for Twitch Helix API — Search. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: twitch-search-categories description: Twitch Search Categories hints: readOnly: true destructive: false idempotent: true call: helix-search.searchcategories with: query: tools.query outputParameters: - type: object mapping: $. - name: twitch-search-channels description: Twitch Search Channels hints: readOnly: true destructive: false idempotent: true call: helix-search.searchchannels with: query: tools.query live_only: tools.live_only outputParameters: - type: object mapping: $.