naftiko: 1.0.0-alpha2 info: label: GitHub Auth API — Get description: 'GitHub Auth API — Get. 3 operations. Lead operation: GitHub Get or Create an Authorization Forspecific App. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Get created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: auth-get baseUri: '' description: GitHub Auth API — Get business capability. Self-contained, no shared references. resources: - name: authorizations-clients-client_id path: /authorizations/clients/{client_id} operations: - name: getorcreateanauthorizationforspecificapp method: PUT description: GitHub Get or Create an Authorization Forspecific App outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: authorizations-clients-client_id-fingerprint path: /authorizations/clients/{client_id}/{fingerprint} operations: - name: getorcreateanauthorizationforspecificappandfingerprint method: PUT description: GitHub Get or Create an Authorization Forspecific App and Fingerprint outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: fingerprint in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: authorizations-authorization_id path: /authorizations/{authorization_id} operations: - name: getsingleauthorization method: GET description: GitHub Getsingle Authorization outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: auth-get-rest port: 8080 description: REST adapter for GitHub Auth API — Get. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/authorizations/clients/{client-id} name: authorizations-clients-client-id description: REST surface for authorizations-clients-client_id. operations: - method: PUT name: getorcreateanauthorizationforspecificapp description: GitHub Get or Create an Authorization Forspecific App call: auth-get.getorcreateanauthorizationforspecificapp with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/authorizations/clients/{client-id}/{fingerprint} name: authorizations-clients-client-id-fingerprint description: REST surface for authorizations-clients-client_id-fingerprint. operations: - method: PUT name: getorcreateanauthorizationforspecificappandfingerprint description: GitHub Get or Create an Authorization Forspecific App and Fingerprint call: auth-get.getorcreateanauthorizationforspecificappandfingerprint with: fingerprint: rest.fingerprint body: rest.body outputParameters: - type: object mapping: $. - path: /v1/authorizations/{authorization-id} name: authorizations-authorization-id description: REST surface for authorizations-authorization_id. operations: - method: GET name: getsingleauthorization description: GitHub Getsingle Authorization call: auth-get.getsingleauthorization outputParameters: - type: object mapping: $. - type: mcp namespace: auth-get-mcp port: 9090 transport: http description: MCP adapter for GitHub Auth API — Get. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-get-create-authorization-forspecific description: GitHub Get or Create an Authorization Forspecific App hints: readOnly: false destructive: false idempotent: true call: auth-get.getorcreateanauthorizationforspecificapp with: body: tools.body outputParameters: - type: object mapping: $. - name: github-get-create-authorization-forspecific-2 description: GitHub Get or Create an Authorization Forspecific App and Fingerprint hints: readOnly: false destructive: false idempotent: true call: auth-get.getorcreateanauthorizationforspecificappandfingerprint with: fingerprint: tools.fingerprint body: tools.body outputParameters: - type: object mapping: $. - name: github-getsingle-authorization description: GitHub Getsingle Authorization hints: readOnly: true destructive: false idempotent: true call: auth-get.getsingleauthorization outputParameters: - type: object mapping: $.