naftiko: 1.0.0-alpha2 info: label: GitHub Gists API — Gists description: 'GitHub Gists API — Gists. 17 operations. Lead operation: GitHub List Public Gists. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Gists created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: gists-gists baseUri: '' description: GitHub Gists API — Gists business capability. Self-contained, no shared references. resources: - name: gists-public path: /gists/public operations: - name: listpublicgists method: GET description: GitHub List Public Gists outputRawFormat: json outputParameters: - name: result type: object value: $. - name: gists-starred path: /gists/starred operations: - name: liststarredgists method: GET description: GitHub List Starred Gists outputRawFormat: json outputParameters: - name: result type: object value: $. - name: gists-gist_id path: /gists/{gist_id} operations: - name: getgist method: GET description: GitHub Getgist outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updategist method: PATCH description: GitHub Updategist outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletegist method: DELETE description: GitHub Deletegist outputRawFormat: json outputParameters: - name: result type: object value: $. - name: gists-gist_id-comments path: /gists/{gist_id}/comments operations: - name: listgistcomments method: GET description: GitHub List Gist Comments outputRawFormat: json outputParameters: - name: result type: object value: $. - name: creategistcomment method: POST description: GitHub Creategist Comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: gists-gist_id-comments-comment_id path: /gists/{gist_id}/comments/{comment_id} operations: - name: getgistcomment method: GET description: GitHub Getgist Comment outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updategistcomment method: PATCH description: GitHub Updategist Comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletegistcomment method: DELETE description: GitHub Deletegist Comment outputRawFormat: json outputParameters: - name: result type: object value: $. - name: gists-gist_id-commits path: /gists/{gist_id}/commits operations: - name: listgistcommits method: GET description: GitHub List Gist Commits outputRawFormat: json outputParameters: - name: result type: object value: $. - name: gists-gist_id-forks path: /gists/{gist_id}/forks operations: - name: listgistforks method: GET description: GitHub List Gist Forks outputRawFormat: json outputParameters: - name: result type: object value: $. - name: forkgist method: POST description: GitHub Forkgist outputRawFormat: json outputParameters: - name: result type: object value: $. - name: gists-gist_id-star path: /gists/{gist_id}/star operations: - name: checkifgistisstarred method: GET description: GitHub Check Ifgist is Starred outputRawFormat: json outputParameters: - name: result type: object value: $. - name: stargist method: PUT description: GitHub Stargist outputRawFormat: json outputParameters: - name: result type: object value: $. - name: unstargist method: DELETE description: GitHub Unstargist outputRawFormat: json outputParameters: - name: result type: object value: $. - name: gists-gist_id-sha path: /gists/{gist_id}/{sha} operations: - name: getgistrevision method: GET description: GitHub Getgist Revision outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sha in: path type: string required: true authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: gists-gists-rest port: 8080 description: REST adapter for GitHub Gists API — Gists. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/gists/public name: gists-public description: REST surface for gists-public. operations: - method: GET name: listpublicgists description: GitHub List Public Gists call: gists-gists.listpublicgists outputParameters: - type: object mapping: $. - path: /v1/gists/starred name: gists-starred description: REST surface for gists-starred. operations: - method: GET name: liststarredgists description: GitHub List Starred Gists call: gists-gists.liststarredgists outputParameters: - type: object mapping: $. - path: /v1/gists/{gist-id} name: gists-gist-id description: REST surface for gists-gist_id. operations: - method: GET name: getgist description: GitHub Getgist call: gists-gists.getgist outputParameters: - type: object mapping: $. - method: PATCH name: updategist description: GitHub Updategist call: gists-gists.updategist with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletegist description: GitHub Deletegist call: gists-gists.deletegist outputParameters: - type: object mapping: $. - path: /v1/gists/{gist-id}/comments name: gists-gist-id-comments description: REST surface for gists-gist_id-comments. operations: - method: GET name: listgistcomments description: GitHub List Gist Comments call: gists-gists.listgistcomments outputParameters: - type: object mapping: $. - method: POST name: creategistcomment description: GitHub Creategist Comment call: gists-gists.creategistcomment with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/gists/{gist-id}/comments/{comment-id} name: gists-gist-id-comments-comment-id description: REST surface for gists-gist_id-comments-comment_id. operations: - method: GET name: getgistcomment description: GitHub Getgist Comment call: gists-gists.getgistcomment outputParameters: - type: object mapping: $. - method: PATCH name: updategistcomment description: GitHub Updategist Comment call: gists-gists.updategistcomment with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletegistcomment description: GitHub Deletegist Comment call: gists-gists.deletegistcomment outputParameters: - type: object mapping: $. - path: /v1/gists/{gist-id}/commits name: gists-gist-id-commits description: REST surface for gists-gist_id-commits. operations: - method: GET name: listgistcommits description: GitHub List Gist Commits call: gists-gists.listgistcommits outputParameters: - type: object mapping: $. - path: /v1/gists/{gist-id}/forks name: gists-gist-id-forks description: REST surface for gists-gist_id-forks. operations: - method: GET name: listgistforks description: GitHub List Gist Forks call: gists-gists.listgistforks outputParameters: - type: object mapping: $. - method: POST name: forkgist description: GitHub Forkgist call: gists-gists.forkgist outputParameters: - type: object mapping: $. - path: /v1/gists/{gist-id}/star name: gists-gist-id-star description: REST surface for gists-gist_id-star. operations: - method: GET name: checkifgistisstarred description: GitHub Check Ifgist is Starred call: gists-gists.checkifgistisstarred outputParameters: - type: object mapping: $. - method: PUT name: stargist description: GitHub Stargist call: gists-gists.stargist outputParameters: - type: object mapping: $. - method: DELETE name: unstargist description: GitHub Unstargist call: gists-gists.unstargist outputParameters: - type: object mapping: $. - path: /v1/gists/{gist-id}/{sha} name: gists-gist-id-sha description: REST surface for gists-gist_id-sha. operations: - method: GET name: getgistrevision description: GitHub Getgist Revision call: gists-gists.getgistrevision with: sha: rest.sha outputParameters: - type: object mapping: $. - type: mcp namespace: gists-gists-mcp port: 9090 transport: http description: MCP adapter for GitHub Gists API — Gists. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-public-gists description: GitHub List Public Gists hints: readOnly: true destructive: false idempotent: true call: gists-gists.listpublicgists outputParameters: - type: object mapping: $. - name: github-list-starred-gists description: GitHub List Starred Gists hints: readOnly: true destructive: false idempotent: true call: gists-gists.liststarredgists outputParameters: - type: object mapping: $. - name: github-getgist description: GitHub Getgist hints: readOnly: true destructive: false idempotent: true call: gists-gists.getgist outputParameters: - type: object mapping: $. - name: github-updategist description: GitHub Updategist hints: readOnly: false destructive: false idempotent: true call: gists-gists.updategist with: body: tools.body outputParameters: - type: object mapping: $. - name: github-deletegist description: GitHub Deletegist hints: readOnly: false destructive: true idempotent: true call: gists-gists.deletegist outputParameters: - type: object mapping: $. - name: github-list-gist-comments description: GitHub List Gist Comments hints: readOnly: true destructive: false idempotent: true call: gists-gists.listgistcomments outputParameters: - type: object mapping: $. - name: github-creategist-comment description: GitHub Creategist Comment hints: readOnly: false destructive: false idempotent: false call: gists-gists.creategistcomment with: body: tools.body outputParameters: - type: object mapping: $. - name: github-getgist-comment description: GitHub Getgist Comment hints: readOnly: true destructive: false idempotent: true call: gists-gists.getgistcomment outputParameters: - type: object mapping: $. - name: github-updategist-comment description: GitHub Updategist Comment hints: readOnly: false destructive: false idempotent: true call: gists-gists.updategistcomment with: body: tools.body outputParameters: - type: object mapping: $. - name: github-deletegist-comment description: GitHub Deletegist Comment hints: readOnly: false destructive: true idempotent: true call: gists-gists.deletegistcomment outputParameters: - type: object mapping: $. - name: github-list-gist-commits description: GitHub List Gist Commits hints: readOnly: true destructive: false idempotent: true call: gists-gists.listgistcommits outputParameters: - type: object mapping: $. - name: github-list-gist-forks description: GitHub List Gist Forks hints: readOnly: true destructive: false idempotent: true call: gists-gists.listgistforks outputParameters: - type: object mapping: $. - name: github-forkgist description: GitHub Forkgist hints: readOnly: false destructive: false idempotent: false call: gists-gists.forkgist outputParameters: - type: object mapping: $. - name: github-check-ifgist-is-starred description: GitHub Check Ifgist is Starred hints: readOnly: true destructive: false idempotent: true call: gists-gists.checkifgistisstarred outputParameters: - type: object mapping: $. - name: github-stargist description: GitHub Stargist hints: readOnly: false destructive: false idempotent: true call: gists-gists.stargist outputParameters: - type: object mapping: $. - name: github-unstargist description: GitHub Unstargist hints: readOnly: false destructive: true idempotent: true call: gists-gists.unstargist outputParameters: - type: object mapping: $. - name: github-getgist-revision description: GitHub Getgist Revision hints: readOnly: true destructive: false idempotent: true call: gists-gists.getgistrevision with: sha: tools.sha outputParameters: - type: object mapping: $.