naftiko: 1.0.0-alpha2 info: label: RapidAPI Hub API — Snippets description: 'RapidAPI Hub API — Snippets. 1 operations. Lead operation: Get code snippets. Self-contained Naftiko capability covering one Rapidapi business surface.' tags: - Rapidapi - Snippets created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: RAPIDAPI_API_KEY: RAPIDAPI_API_KEY capability: consumes: - type: http namespace: hub-snippets baseUri: https://rapidapi.com description: RapidAPI Hub API — Snippets business capability. Self-contained, no shared references. resources: - name: apis-apiSlug-snippets path: /apis/{apiSlug}/snippets operations: - name: getcodesnippets method: GET description: Get code snippets outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: apiSlug in: path type: string description: The URL-friendly slug or identifier of the API required: true - name: endpointId in: query type: string description: The identifier of the specific endpoint required: true - name: language in: query type: string description: The programming language for the code snippet authentication: type: apikey key: X-RapidAPI-Key value: '{{env.RAPIDAPI_API_KEY}}' placement: header exposes: - type: rest namespace: hub-snippets-rest port: 8080 description: REST adapter for RapidAPI Hub API — Snippets. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/apis/{apislug}/snippets name: apis-apislug-snippets description: REST surface for apis-apiSlug-snippets. operations: - method: GET name: getcodesnippets description: Get code snippets call: hub-snippets.getcodesnippets with: apiSlug: rest.apiSlug endpointId: rest.endpointId language: rest.language outputParameters: - type: object mapping: $. - type: mcp namespace: hub-snippets-mcp port: 9090 transport: http description: MCP adapter for RapidAPI Hub API — Snippets. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-code-snippets description: Get code snippets hints: readOnly: true destructive: false idempotent: true call: hub-snippets.getcodesnippets with: apiSlug: tools.apiSlug endpointId: tools.endpointId language: tools.language outputParameters: - type: object mapping: $.