GitHub · Capability

GitHub User API — Ssh

GitHub User API — Ssh. 9 operations. Lead operation: GitHub List Public Ssh Keys for the Authenticated User. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubSsh

What You Can Do

GET
Listpublicsshkeysfortheauthenticateduser — GitHub List Public Ssh Keys for the Authenticated User
/v1/user/keys
POST
Createpublicsshkeyfortheauthenticateduser — GitHub Create Public Ssh Key for the Authenticated User
/v1/user/keys
GET
Getpublicsshkeyfortheauthenticateduser — GitHub Get Public Ssh Key for the Authenticated User
/v1/user/keys/{key-id}
DELETE
Deletepublicsshkeyfortheauthenticateduser — GitHub Delete Public Ssh Key for the Authenticated User
/v1/user/keys/{key-id}
GET
Listsshsigningkeysfortheauthenticateduser — GitHub List Ssh Signing Keys for the Authenticated User
/v1/user/ssh-signing-keys
POST
Createsshsigningkeyfortheauthenticateduser — GitHub Create Ssh Signing Key for the Authenticated User
/v1/user/ssh-signing-keys
GET
Getansshsigningkeyfortheauthenticateduser — GitHub Get an Ssh Signing Key for the Authenticated User
/v1/user/ssh-signing-keys/{ssh-signing-key-id}
DELETE
Deleteansshsigningkeyfortheauthenticateduser — GitHub Delete an Ssh Signing Key for the Authenticated User
/v1/user/ssh-signing-keys/{ssh-signing-key-id}
GET
Listsshsigningkeysforuser — GitHub List Ssh Signing Keys for User
/v1/users/{username}/ssh-signing-keys

MCP Tools

github-list-public-ssh-keys

GitHub List Public Ssh Keys for the Authenticated User

read-only idempotent
github-create-public-ssh-key

GitHub Create Public Ssh Key for the Authenticated User

github-get-public-ssh-key

GitHub Get Public Ssh Key for the Authenticated User

read-only idempotent
github-delete-public-ssh-key

GitHub Delete Public Ssh Key for the Authenticated User

idempotent
github-list-ssh-signing-keys

GitHub List Ssh Signing Keys for the Authenticated User

read-only idempotent
github-create-ssh-signing-key

GitHub Create Ssh Signing Key for the Authenticated User

github-get-ssh-signing-key

GitHub Get an Ssh Signing Key for the Authenticated User

read-only idempotent
github-delete-ssh-signing-key

GitHub Delete an Ssh Signing Key for the Authenticated User

idempotent
github-list-ssh-signing-keys-2

GitHub List Ssh Signing Keys for User

read-only idempotent

Capability Spec

users-ssh.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub User API — Ssh
  description: 'GitHub User API — Ssh. 9 operations. Lead operation: GitHub List Public Ssh Keys for the Authenticated User.
    Self-contained Naftiko capability covering one Github business surface.'
  tags:
  - Github
  - Ssh
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: users-ssh
    baseUri: ''
    description: GitHub User API — Ssh business capability. Self-contained, no shared references.
    resources:
    - 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-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-ssh-rest
    port: 8080
    description: REST adapter for GitHub User API — Ssh. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - 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-ssh.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-ssh.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-ssh.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-ssh.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-ssh.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-ssh.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-ssh.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-ssh.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}/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-ssh.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-ssh-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub User API — Ssh. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - 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-ssh.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-ssh.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-ssh.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-ssh.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-ssh.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-ssh.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-ssh.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-ssh.deleteansshsigningkeyfortheauthenticateduser
      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-ssh.listsshsigningkeysforuser
      with:
        Authorization: tools.Authorization
        X-GitHub-Api-Version: tools.X-GitHub-Api-Version
        Accept: tools.Accept
      outputParameters:
      - type: object
        mapping: $.