naftiko: 1.0.0-alpha2 info: label: GitHub User API — Keys description: 'GitHub User API — Keys. 15 operations. Lead operation: GitHub List Gpg Keys for the Authenticated User. Self-contained Naftiko capability covering one Github business surface.' tags: - Github - Keys created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GITHUB_API_KEY: GITHUB_API_KEY capability: consumes: - type: http namespace: users-keys baseUri: '' description: GitHub User API — Keys business capability. Self-contained, no shared references. resources: - name: user-gpg_keys path: /user/gpg_keys operations: - name: listgpgkeysfortheauthenticateduser method: GET description: GitHub List Gpg Keys for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: creategpgkeyfortheauthenticateduser method: POST description: GitHub Create Gpg Key for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: body in: body type: object description: Request body (JSON). required: true - name: user-gpg_keys-gpg_key_id path: /user/gpg_keys/{gpg_key_id} operations: - name: getgpgkeyfortheauthenticateduser method: GET description: GitHub Get Gpg Key for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: deletegpgkeyfortheauthenticateduser method: DELETE description: GitHub Delete Gpg Key for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: user-keys path: /user/keys operations: - name: listpublicsshkeysfortheauthenticateduser method: GET description: GitHub List Public Ssh Keys for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: createpublicsshkeyfortheauthenticateduser method: POST description: GitHub Create Public Ssh Key for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: body in: body type: object description: Request body (JSON). required: true - name: user-keys-key_id path: /user/keys/{key_id} operations: - name: getpublicsshkeyfortheauthenticateduser method: GET description: GitHub Get Public Ssh Key for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: deletepublicsshkeyfortheauthenticateduser method: DELETE description: GitHub Delete Public Ssh Key for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: user-ssh_signing_keys path: /user/ssh_signing_keys operations: - name: listsshsigningkeysfortheauthenticateduser method: GET description: GitHub List Ssh Signing Keys for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: createsshsigningkeyfortheauthenticateduser method: POST description: GitHub Create Ssh Signing Key for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: body in: body type: object description: Request body (JSON). required: true - name: user-ssh_signing_keys-ssh_signing_key_id path: /user/ssh_signing_keys/{ssh_signing_key_id} operations: - name: getansshsigningkeyfortheauthenticateduser method: GET description: GitHub Get an Ssh Signing Key for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: deleteansshsigningkeyfortheauthenticateduser method: DELETE description: GitHub Delete an Ssh Signing Key for the Authenticated User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: users-username-gpg_keys path: /users/{username}/gpg_keys operations: - name: listgpgkeysforuser method: GET description: GitHub List Gpg Keys for User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: users-username-keys path: /users/{username}/keys operations: - name: listpublickeysforuser method: GET description: GitHub List Public Keys for User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string - name: users-username-ssh_signing_keys path: /users/{username}/ssh_signing_keys operations: - name: listsshsigningkeysforuser method: GET description: GitHub List Ssh Signing Keys for User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string - name: X-GitHub-Api-Version in: header type: string - name: Accept in: header type: string authentication: type: bearer token: '{{env.GITHUB_API_KEY}}' exposes: - type: rest namespace: users-keys-rest port: 8080 description: REST adapter for GitHub User API — Keys. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/user/gpg-keys name: user-gpg-keys description: REST surface for user-gpg_keys. operations: - method: GET name: listgpgkeysfortheauthenticateduser description: GitHub List Gpg Keys for the Authenticated User call: users-keys.listgpgkeysfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: POST name: creategpgkeyfortheauthenticateduser description: GitHub Create Gpg Key for the Authenticated User call: users-keys.creategpgkeyfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - path: /v1/user/gpg-keys/{gpg-key-id} name: user-gpg-keys-gpg-key-id description: REST surface for user-gpg_keys-gpg_key_id. operations: - method: GET name: getgpgkeyfortheauthenticateduser description: GitHub Get Gpg Key for the Authenticated User call: users-keys.getgpgkeyfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: DELETE name: deletegpgkeyfortheauthenticateduser description: GitHub Delete Gpg Key for the Authenticated User call: users-keys.deletegpgkeyfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/user/keys name: user-keys description: REST surface for user-keys. operations: - method: GET name: listpublicsshkeysfortheauthenticateduser description: GitHub List Public Ssh Keys for the Authenticated User call: users-keys.listpublicsshkeysfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: POST name: createpublicsshkeyfortheauthenticateduser description: GitHub Create Public Ssh Key for the Authenticated User call: users-keys.createpublicsshkeyfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - path: /v1/user/keys/{key-id} name: user-keys-key-id description: REST surface for user-keys-key_id. operations: - method: GET name: getpublicsshkeyfortheauthenticateduser description: GitHub Get Public Ssh Key for the Authenticated User call: users-keys.getpublicsshkeyfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: DELETE name: deletepublicsshkeyfortheauthenticateduser description: GitHub Delete Public Ssh Key for the Authenticated User call: users-keys.deletepublicsshkeyfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/user/ssh-signing-keys name: user-ssh-signing-keys description: REST surface for user-ssh_signing_keys. operations: - method: GET name: listsshsigningkeysfortheauthenticateduser description: GitHub List Ssh Signing Keys for the Authenticated User call: users-keys.listsshsigningkeysfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: POST name: createsshsigningkeyfortheauthenticateduser description: GitHub Create Ssh Signing Key for the Authenticated User call: users-keys.createsshsigningkeyfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept body: rest.body outputParameters: - type: object mapping: $. - path: /v1/user/ssh-signing-keys/{ssh-signing-key-id} name: user-ssh-signing-keys-ssh-signing-key-id description: REST surface for user-ssh_signing_keys-ssh_signing_key_id. operations: - method: GET name: getansshsigningkeyfortheauthenticateduser description: GitHub Get an Ssh Signing Key for the Authenticated User call: users-keys.getansshsigningkeyfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - method: DELETE name: deleteansshsigningkeyfortheauthenticateduser description: GitHub Delete an Ssh Signing Key for the Authenticated User call: users-keys.deleteansshsigningkeyfortheauthenticateduser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/users/{username}/gpg-keys name: users-username-gpg-keys description: REST surface for users-username-gpg_keys. operations: - method: GET name: listgpgkeysforuser description: GitHub List Gpg Keys for User call: users-keys.listgpgkeysforuser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/users/{username}/keys name: users-username-keys description: REST surface for users-username-keys. operations: - method: GET name: listpublickeysforuser description: GitHub List Public Keys for User call: users-keys.listpublickeysforuser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - path: /v1/users/{username}/ssh-signing-keys name: users-username-ssh-signing-keys description: REST surface for users-username-ssh_signing_keys. operations: - method: GET name: listsshsigningkeysforuser description: GitHub List Ssh Signing Keys for User call: users-keys.listsshsigningkeysforuser with: Authorization: rest.Authorization X-GitHub-Api-Version: rest.X-GitHub-Api-Version Accept: rest.Accept outputParameters: - type: object mapping: $. - type: mcp namespace: users-keys-mcp port: 9090 transport: http description: MCP adapter for GitHub User API — Keys. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: github-list-gpg-keys-authenticated description: GitHub List Gpg Keys for the Authenticated User hints: readOnly: true destructive: false idempotent: true call: users-keys.listgpgkeysfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-create-gpg-key-authenticated description: GitHub Create Gpg Key for the Authenticated User hints: readOnly: false destructive: false idempotent: false call: users-keys.creategpgkeyfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: github-get-gpg-key-authenticated description: GitHub Get Gpg Key for the Authenticated User hints: readOnly: true destructive: false idempotent: true call: users-keys.getgpgkeyfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-gpg-key-authenticated description: GitHub Delete Gpg Key for the Authenticated User hints: readOnly: false destructive: true idempotent: true call: users-keys.deletegpgkeyfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-public-ssh-keys description: GitHub List Public Ssh Keys for the Authenticated User hints: readOnly: true destructive: false idempotent: true call: users-keys.listpublicsshkeysfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-create-public-ssh-key description: GitHub Create Public Ssh Key for the Authenticated User hints: readOnly: false destructive: false idempotent: false call: users-keys.createpublicsshkeyfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: github-get-public-ssh-key description: GitHub Get Public Ssh Key for the Authenticated User hints: readOnly: true destructive: false idempotent: true call: users-keys.getpublicsshkeyfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-public-ssh-key description: GitHub Delete Public Ssh Key for the Authenticated User hints: readOnly: false destructive: true idempotent: true call: users-keys.deletepublicsshkeyfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-ssh-signing-keys description: GitHub List Ssh Signing Keys for the Authenticated User hints: readOnly: true destructive: false idempotent: true call: users-keys.listsshsigningkeysfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-create-ssh-signing-key description: GitHub Create Ssh Signing Key for the Authenticated User hints: readOnly: false destructive: false idempotent: false call: users-keys.createsshsigningkeyfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept body: tools.body outputParameters: - type: object mapping: $. - name: github-get-ssh-signing-key description: GitHub Get an Ssh Signing Key for the Authenticated User hints: readOnly: true destructive: false idempotent: true call: users-keys.getansshsigningkeyfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-delete-ssh-signing-key description: GitHub Delete an Ssh Signing Key for the Authenticated User hints: readOnly: false destructive: true idempotent: true call: users-keys.deleteansshsigningkeyfortheauthenticateduser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-gpg-keys-user description: GitHub List Gpg Keys for User hints: readOnly: true destructive: false idempotent: true call: users-keys.listgpgkeysforuser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-public-keys-user description: GitHub List Public Keys for User hints: readOnly: true destructive: false idempotent: true call: users-keys.listpublickeysforuser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $. - name: github-list-ssh-signing-keys-2 description: GitHub List Ssh Signing Keys for User hints: readOnly: true destructive: false idempotent: true call: users-keys.listsshsigningkeysforuser with: Authorization: tools.Authorization X-GitHub-Api-Version: tools.X-GitHub-Api-Version Accept: tools.Accept outputParameters: - type: object mapping: $.