naftiko: 1.0.0-alpha2 info: label: Stack Overflow API — Badges description: 'Stack Overflow API — Badges. 1 operations. Lead operation: Get All Badges. Self-contained Naftiko capability covering one Stack Overflow business surface.' tags: - Stack Overflow - Badges created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STACK_OVERFLOW_API_KEY: STACK_OVERFLOW_API_KEY capability: consumes: - type: http namespace: stack-overflow-badges baseUri: https://api.stackexchange.com/2.3 description: Stack Overflow API — Badges business capability. Self-contained, no shared references. resources: - name: badges path: /badges operations: - name: getbadges method: GET description: Get All Badges outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: inname in: query type: string description: Filter badges whose name contains this string authentication: type: bearer token: '{{env.STACK_OVERFLOW_API_KEY}}' exposes: - type: rest namespace: stack-overflow-badges-rest port: 8080 description: REST adapter for Stack Overflow API — Badges. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/badges name: badges description: REST surface for badges. operations: - method: GET name: getbadges description: Get All Badges call: stack-overflow-badges.getbadges with: inname: rest.inname outputParameters: - type: object mapping: $. - type: mcp namespace: stack-overflow-badges-mcp port: 9090 transport: http description: MCP adapter for Stack Overflow API — Badges. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-all-badges description: Get All Badges hints: readOnly: true destructive: false idempotent: true call: stack-overflow-badges.getbadges with: inname: tools.inname outputParameters: - type: object mapping: $.