SSH · Capability

SSH Key Management API — Known Hosts

SSH Key Management API — Known Hosts. 2 operations. Lead operation: List Known Hosts. Self-contained Naftiko capability covering one Ssh business surface.

Run with Naftiko SshKnown Hosts

What You Can Do

GET
Listknownhosts — List Known Hosts
/v1/known-hosts
POST
Addknownhost — Add Known Host
/v1/known-hosts

MCP Tools

list-known-hosts

List Known Hosts

read-only idempotent
add-known-host

Add Known Host

Capability Spec

key-management-known-hosts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SSH Key Management API — Known Hosts
  description: 'SSH Key Management API — Known Hosts. 2 operations. Lead operation: List Known Hosts. Self-contained Naftiko
    capability covering one Ssh business surface.'
  tags:
  - Ssh
  - Known Hosts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SSH_API_KEY: SSH_API_KEY
capability:
  consumes:
  - type: http
    namespace: key-management-known-hosts
    baseUri: https://api.openssh.example.com/v1
    description: SSH Key Management API — Known Hosts business capability. Self-contained, no shared references.
    resources:
    - name: known-hosts
      path: /known-hosts
      operations:
      - name: listknownhosts
        method: GET
        description: List Known Hosts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hostname
          in: query
          type: string
          description: Filter by hostname
      - name: addknownhost
        method: POST
        description: Add Known Host
        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.SSH_API_KEY}}'
  exposes:
  - type: rest
    namespace: key-management-known-hosts-rest
    port: 8080
    description: REST adapter for SSH Key Management API — Known Hosts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/known-hosts
      name: known-hosts
      description: REST surface for known-hosts.
      operations:
      - method: GET
        name: listknownhosts
        description: List Known Hosts
        call: key-management-known-hosts.listknownhosts
        with:
          hostname: rest.hostname
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addknownhost
        description: Add Known Host
        call: key-management-known-hosts.addknownhost
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: key-management-known-hosts-mcp
    port: 9090
    transport: http
    description: MCP adapter for SSH Key Management API — Known Hosts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-known-hosts
      description: List Known Hosts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: key-management-known-hosts.listknownhosts
      with:
        hostname: tools.hostname
      outputParameters:
      - type: object
        mapping: $.
    - name: add-known-host
      description: Add Known Host
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: key-management-known-hosts.addknownhost
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.