naftiko: 1.0.0-alpha2 info: label: GitHub Application API — Create description: 'GitHub Application API — Create. 3 operations. Lead operation: GitHub Creategithub App Frommanifest. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Create created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: app-create baseUri: '' description: GitHub Application API — Create business capability. Self-contained, no shared references. resources: - name: app-manifests-code-conversions path: /app-manifests/{code}/conversions operations: - name: creategithubappfrommanifest method: POST description: GitHub Creategithub App Frommanifest outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: code in: path type: string required: true - name: app-installations-installation_id-access_tokens path: /app/installations/{installation_id}/access_tokens operations: - name: createaninstallationaccesstokenforanapp method: POST description: GitHub Create an Installation Access Token for an App outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: applications-client_id-token-scoped path: /applications/{client_id}/token/scoped operations: - name: createscopedaccesstoken method: POST description: GitHub Createscoped Access Token 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.GITHUB_API_KEY}}' exposes: - type: rest namespace: app-create-rest port: 8080 description: REST adapter for GitHub Application API — Create. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/app-manifests/{code}/conversions name: app-manifests-code-conversions description: REST surface for app-manifests-code-conversions. operations: - method: POST name: creategithubappfrommanifest description: GitHub Creategithub App Frommanifest call: app-create.creategithubappfrommanifest with: code: rest.code outputParameters: - type: object mapping: $. - path: /v1/app/installations/{installation-id}/access-tokens name: app-installations-installation-id-access-tokens description: REST surface for app-installations-installation_id-access_tokens. operations: - method: POST name: createaninstallationaccesstokenforanapp description: GitHub Create an Installation Access Token for an App call: app-create.createaninstallationaccesstokenforanapp with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/applications/{client-id}/token/scoped name: applications-client-id-token-scoped description: REST surface for applications-client_id-token-scoped. operations: - method: POST name: createscopedaccesstoken description: GitHub Createscoped Access Token call: app-create.createscopedaccesstoken with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: app-create-mcp port: 9090 transport: http description: MCP adapter for GitHub Application API — Create. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-creategithub-app-frommanifest description: GitHub Creategithub App Frommanifest hints: readOnly: false destructive: false idempotent: false call: app-create.creategithubappfrommanifest with: code: tools.code outputParameters: - type: object mapping: $. - name: github-create-installation-access-token description: GitHub Create an Installation Access Token for an App hints: readOnly: false destructive: false idempotent: false call: app-create.createaninstallationaccesstokenforanapp with: body: tools.body outputParameters: - type: object mapping: $. - name: github-createscoped-access-token description: GitHub Createscoped Access Token hints: readOnly: false destructive: false idempotent: false call: app-create.createscopedaccesstoken with: body: tools.body outputParameters: - type: object mapping: $.