naftiko: 1.0.0-alpha2 info: label: Hetzner Cloud API — Networks description: 'Hetzner Cloud API — Networks. 5 operations. Lead operation: List Networks. Self-contained Naftiko capability covering one Hetzner business surface.' tags: - Hetzner - Networks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: HETZNER_API_KEY: HETZNER_API_KEY capability: consumes: - type: http namespace: hetzner-networks baseUri: https://api.hetzner.cloud/v1 description: Hetzner Cloud API — Networks business capability. Self-contained, no shared references. resources: - name: networks path: /networks operations: - name: listnetworks method: GET description: List Networks outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sort in: query type: array description: Sort resources by field and direction. May be used multiple times. - 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: 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: createnetwork method: POST description: Create a Network outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: networks-id path: /networks/{id} operations: - name: getnetwork method: GET description: Get a Network outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: ID of the Network. required: true - name: updatenetwork method: PUT description: Update a Network outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: ID of the Network. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletenetwork method: DELETE description: Delete a Network outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: integer description: ID of the Network. required: true authentication: type: bearer token: '{{env.HETZNER_API_KEY}}' exposes: - type: rest namespace: hetzner-networks-rest port: 8080 description: REST adapter for Hetzner Cloud API — Networks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/networks name: networks description: REST surface for networks. operations: - method: GET name: listnetworks description: List Networks call: hetzner-networks.listnetworks with: sort: rest.sort name: rest.name label_selector: rest.label_selector page: rest.page per_page: rest.per_page outputParameters: - type: object mapping: $. - method: POST name: createnetwork description: Create a Network call: hetzner-networks.createnetwork with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/networks/{id} name: networks-id description: REST surface for networks-id. operations: - method: GET name: getnetwork description: Get a Network call: hetzner-networks.getnetwork with: id: rest.id outputParameters: - type: object mapping: $. - method: PUT name: updatenetwork description: Update a Network call: hetzner-networks.updatenetwork with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletenetwork description: Delete a Network call: hetzner-networks.deletenetwork with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: hetzner-networks-mcp port: 9090 transport: http description: MCP adapter for Hetzner Cloud API — Networks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-networks description: List Networks hints: readOnly: true destructive: false idempotent: true call: hetzner-networks.listnetworks with: sort: tools.sort name: tools.name label_selector: tools.label_selector page: tools.page per_page: tools.per_page outputParameters: - type: object mapping: $. - name: create-network description: Create a Network hints: readOnly: false destructive: false idempotent: false call: hetzner-networks.createnetwork with: body: tools.body outputParameters: - type: object mapping: $. - name: get-network description: Get a Network hints: readOnly: true destructive: false idempotent: true call: hetzner-networks.getnetwork with: id: tools.id outputParameters: - type: object mapping: $. - name: update-network description: Update a Network hints: readOnly: false destructive: false idempotent: true call: hetzner-networks.updatenetwork with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: delete-network description: Delete a Network hints: readOnly: false destructive: true idempotent: true call: hetzner-networks.deletenetwork with: id: tools.id outputParameters: - type: object mapping: $.