naftiko: 1.0.0-alpha2 info: label: Hetzner Cloud API — Primary IPs description: 'Hetzner Cloud API — Primary IPs. 5 operations. Lead operation: List Primary IPs. Self-contained Naftiko capability covering one Hetzner business surface.' tags: - Hetzner - Primary IPs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HETZNER_API_KEY: HETZNER_API_KEY capability: consumes: - type: http namespace: hetzner-primary-ips baseUri: https://api.hetzner.cloud/v1 description: Hetzner Cloud API — Primary IPs business capability. Self-contained, no shared references. resources: - name: primary_ips path: /primary_ips operations: - name: listprimaryips method: GET description: List Primary IPs outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: query type: string description: Filter resources by their name. - name: label_selector in: query type: string description: Filter resources by labels. - name: ip in: query type: string description: Filter results by IP address. - name: page in: query type: integer description: Page number to return. For more information, see "[Pagination](#description/pagination)". - name: per_page in: query type: integer description: Maximum number of entries returned per page. For more information, see "[Pagination](#description/pagination)". - name: sort in: query type: array description: Sort resources by field and direction. May be used multiple times. - name: createprimaryip method: POST description: Create a Primary IP outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: primary_ips-id path: /primary_ips/{id} operations: - name: getprimaryip method: GET description: Get a Primary IP outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: ID of the Primary IP. required: true - name: updateprimaryip method: PUT description: Update a Primary IP outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: ID of the Primary IP. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteprimaryip method: DELETE description: Delete a Primary IP outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: ID of the Primary IP. required: true authentication: type: bearer token: '{{env.HETZNER_API_KEY}}' exposes: - type: rest namespace: hetzner-primary-ips-rest port: 8080 description: REST adapter for Hetzner Cloud API — Primary IPs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/primary-ips name: primary-ips description: REST surface for primary_ips. operations: - method: GET name: listprimaryips description: List Primary IPs call: hetzner-primary-ips.listprimaryips with: name: rest.name label_selector: rest.label_selector ip: rest.ip page: rest.page per_page: rest.per_page sort: rest.sort outputParameters: - type: object mapping: $. - method: POST name: createprimaryip description: Create a Primary IP call: hetzner-primary-ips.createprimaryip with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/primary-ips/{id} name: primary-ips-id description: REST surface for primary_ips-id. operations: - method: GET name: getprimaryip description: Get a Primary IP call: hetzner-primary-ips.getprimaryip with: id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: updateprimaryip description: Update a Primary IP call: hetzner-primary-ips.updateprimaryip with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteprimaryip description: Delete a Primary IP call: hetzner-primary-ips.deleteprimaryip with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: hetzner-primary-ips-mcp port: 9090 transport: http description: MCP adapter for Hetzner Cloud API — Primary IPs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-primary-ips description: List Primary IPs hints: readOnly: true destructive: false idempotent: true call: hetzner-primary-ips.listprimaryips with: name: tools.name label_selector: tools.label_selector ip: tools.ip page: tools.page per_page: tools.per_page sort: tools.sort outputParameters: - type: object mapping: $. - name: create-primary-ip description: Create a Primary IP hints: readOnly: false destructive: false idempotent: false call: hetzner-primary-ips.createprimaryip with: body: tools.body outputParameters: - type: object mapping: $. - name: get-primary-ip description: Get a Primary IP hints: readOnly: true destructive: false idempotent: true call: hetzner-primary-ips.getprimaryip with: id: tools.id outputParameters: - type: object mapping: $. - name: update-primary-ip description: Update a Primary IP hints: readOnly: false destructive: false idempotent: true call: hetzner-primary-ips.updateprimaryip with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: delete-primary-ip description: Delete a Primary IP hints: readOnly: false destructive: true idempotent: true call: hetzner-primary-ips.deleteprimaryip with: id: tools.id outputParameters: - type: object mapping: $.