naftiko: 1.0.0-alpha2 info: label: Sitecore Discover API — Search and Recommendations description: 'Sitecore Discover API — Search and Recommendations. 2 operations. Lead operation: Search and recommend products. Self-contained Naftiko capability covering one Sitecore business surface.' tags: - Sitecore - Search and Recommendations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SITECORE_API_KEY: SITECORE_API_KEY capability: consumes: - type: http namespace: discover-search-and-recommendations baseUri: https://{subdomain}.rfksrv.com description: Sitecore Discover API — Search and Recommendations business capability. Self-contained, no shared references. resources: - name: api-search-rec-3 path: /api/search-rec/3 operations: - name: searchandrecommend method: GET description: Search and recommend products outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: key in: query type: string description: URL-encoded JSON object containing the search query parameters including keyword, widget ID, page context, and filter facets required: true - name: searchandrecommendpost method: POST description: Search and recommend products (POST) 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.SITECORE_API_KEY}}' exposes: - type: rest namespace: discover-search-and-recommendations-rest port: 8080 description: REST adapter for Sitecore Discover API — Search and Recommendations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/search-rec/3 name: api-search-rec-3 description: REST surface for api-search-rec-3. operations: - method: GET name: searchandrecommend description: Search and recommend products call: discover-search-and-recommendations.searchandrecommend with: key: rest.key outputParameters: - type: object mapping: $. - method: POST name: searchandrecommendpost description: Search and recommend products (POST) call: discover-search-and-recommendations.searchandrecommendpost with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: discover-search-and-recommendations-mcp port: 9090 transport: http description: MCP adapter for Sitecore Discover API — Search and Recommendations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: search-and-recommend-products description: Search and recommend products hints: readOnly: true destructive: false idempotent: true call: discover-search-and-recommendations.searchandrecommend with: key: tools.key outputParameters: - type: object mapping: $. - name: search-and-recommend-products-post description: Search and recommend products (POST) hints: readOnly: true destructive: false idempotent: false call: discover-search-and-recommendations.searchandrecommendpost with: body: tools.body outputParameters: - type: object mapping: $.