GitHub · Capability

GitHub Auth API — Ssh

GitHub Auth API — Ssh. 2 operations. Lead operation: GitHub Add an Authorized Ssh Key. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubSsh

What You Can Do

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-add-authorized-ssh-key

GitHub Add an Authorized Ssh Key

github-remove-authorized-ssh-key

GitHub Remove an Authorized Ssh Key

idempotent

Capability Spec

auth-ssh.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Auth API — Ssh
  description: 'GitHub Auth API — Ssh. 2 operations. Lead operation: GitHub Add an Authorized Ssh Key. 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: auth-ssh
    baseUri: ''
    description: GitHub Auth API — Ssh business capability. Self-contained, no shared references.
    resources:
    - name: setup-api-settings-authorized-keys
      path: /setup/api/settings/authorized-keys
      operations:
      - 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: auth-ssh-rest
    port: 8080
    description: REST adapter for GitHub Auth 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: POST
        name: addanauthorizedsshkey
        description: GitHub Add an Authorized Ssh Key
        call: auth-ssh.addanauthorizedsshkey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removeanauthorizedsshkey
        description: GitHub Remove an Authorized Ssh Key
        call: auth-ssh.removeanauthorizedsshkey
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: auth-ssh-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Auth API — Ssh. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-add-authorized-ssh-key
      description: GitHub Add an Authorized Ssh Key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: auth-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: auth-ssh.removeanauthorizedsshkey
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.