GitHub · Capability

GitHub Setup API — Ssh

GitHub Setup API — Ssh. 3 operations. Lead operation: GitHub Get All Authorized Ssh Keys. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubSsh

What You Can Do

GET
Getallauthorizedsshkeys — GitHub Get All Authorized Ssh Keys
/v1/setup/api/settings/authorized-keys
POST
Addanauthorizedsshkey — GitHub Add an Authorized Ssh Key
/v1/setup/api/settings/authorized-keys
DELETE
Removeanauthorizedsshkey — GitHub Remove an Authorized Ssh Key
/v1/setup/api/settings/authorized-keys

MCP Tools

github-get-all-authorized-ssh

GitHub Get All Authorized Ssh Keys

read-only idempotent
github-add-authorized-ssh-key

GitHub Add an Authorized Ssh Key

github-remove-authorized-ssh-key

GitHub Remove an Authorized Ssh Key

idempotent

Capability Spec

setup-ssh.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Setup API — Ssh
  description: 'GitHub Setup API — Ssh. 3 operations. Lead operation: GitHub Get All Authorized Ssh Keys. 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: setup-ssh
    baseUri: ''
    description: GitHub Setup API — Ssh business capability. Self-contained, no shared references.
    resources:
    - name: setup-api-settings-authorized-keys
      path: /setup/api/settings/authorized-keys
      operations:
      - name: getallauthorizedsshkeys
        method: GET
        description: GitHub Get All Authorized Ssh Keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: addanauthorizedsshkey
        method: POST
        description: GitHub Add an Authorized Ssh Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: removeanauthorizedsshkey
        method: DELETE
        description: GitHub Remove an Authorized Ssh Key
        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: setup-ssh-rest
    port: 8080
    description: REST adapter for GitHub Setup API — Ssh. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/setup/api/settings/authorized-keys
      name: setup-api-settings-authorized-keys
      description: REST surface for setup-api-settings-authorized-keys.
      operations:
      - method: GET
        name: getallauthorizedsshkeys
        description: GitHub Get All Authorized Ssh Keys
        call: setup-ssh.getallauthorizedsshkeys
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addanauthorizedsshkey
        description: GitHub Add an Authorized Ssh Key
        call: setup-ssh.addanauthorizedsshkey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeanauthorizedsshkey
        description: GitHub Remove an Authorized Ssh Key
        call: setup-ssh.removeanauthorizedsshkey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: setup-ssh-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Setup API — Ssh. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-get-all-authorized-ssh
      description: GitHub Get All Authorized Ssh Keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: setup-ssh.getallauthorizedsshkeys
      outputParameters:
      - type: object
        mapping: $.
    - name: github-add-authorized-ssh-key
      description: GitHub Add an Authorized Ssh Key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: setup-ssh.addanauthorizedsshkey
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-remove-authorized-ssh-key
      description: GitHub Remove an Authorized Ssh Key
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: setup-ssh.removeanauthorizedsshkey
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.