naftiko: 1.0.0-alpha2 info: label: Battle.net OAuth API — Authorization description: 'Battle.net OAuth API — Authorization. 1 operations. Lead operation: Start Authorization Code Flow. Self-contained Naftiko capability covering one Blizzard Entertainment business surface.' tags: - Blizzard Entertainment - Authorization created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BLIZZARD_ENTERTAINMENT_API_KEY: BLIZZARD_ENTERTAINMENT_API_KEY capability: consumes: - type: http namespace: blizzard-oauth-authorization baseUri: https://oauth.battle.net description: Battle.net OAuth API — Authorization business capability. Self-contained, no shared references. resources: - name: authorize path: /authorize operations: - name: authorize method: GET description: Start Authorization Code Flow outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: client_id in: query type: string required: true - name: response_type in: query type: string required: true - name: scope in: query type: string - name: redirect_uri in: query type: string required: true - name: state in: query type: string authentication: type: bearer token: '{{env.BLIZZARD_ENTERTAINMENT_API_KEY}}' exposes: - type: rest namespace: blizzard-oauth-authorization-rest port: 8080 description: REST adapter for Battle.net OAuth API — Authorization. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/authorize name: authorize description: REST surface for authorize. operations: - method: GET name: authorize description: Start Authorization Code Flow call: blizzard-oauth-authorization.authorize with: client_id: rest.client_id response_type: rest.response_type scope: rest.scope redirect_uri: rest.redirect_uri state: rest.state outputParameters: - type: object mapping: $. - type: mcp namespace: blizzard-oauth-authorization-mcp port: 9090 transport: http description: MCP adapter for Battle.net OAuth API — Authorization. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: start-authorization-code-flow description: Start Authorization Code Flow hints: readOnly: true destructive: false idempotent: true call: blizzard-oauth-authorization.authorize with: client_id: tools.client_id response_type: tools.response_type scope: tools.scope redirect_uri: tools.redirect_uri state: tools.state outputParameters: - type: object mapping: $.