naftiko: 1.0.0-alpha2 info: label: HCP Vagrant Box Registry API — Versions description: 'HCP Vagrant Box Registry API — Versions. 4 operations. Lead operation: Read a version. Self-contained Naftiko capability covering one Vagrant business surface.' tags: - Vagrant - Versions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: VAGRANT_API_KEY: VAGRANT_API_KEY capability: consumes: - type: http namespace: hcp-vagrant-box-registry-versions baseUri: https://api.cloud.hashicorp.com description: HCP Vagrant Box Registry API — Versions business capability. Self-contained, no shared references. resources: - name: vagrant-2023-01-01-registry-registry-box-box-version-version path: /vagrant/2023-01-01/registry/{registry}/box/{box}/version/{version} operations: - name: readversion method: GET description: Read a version outputRawFormat: json outputParameters: - name: result type: object value: $. - name: deleteversion method: DELETE description: Delete a version outputRawFormat: json outputParameters: - name: result type: object value: $. - name: vagrant-2023-01-01-registry-registry-box-box-versions path: /vagrant/2023-01-01/registry/{registry}/box/{box}/versions operations: - name: listversions method: GET description: List versions outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createversion method: POST description: Create a version 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.VAGRANT_API_KEY}}' exposes: - type: rest namespace: hcp-vagrant-box-registry-versions-rest port: 8080 description: REST adapter for HCP Vagrant Box Registry API — Versions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/vagrant/2023-01-01/registry/{registry}/box/{box}/version/{version} name: vagrant-2023-01-01-registry-registry-box-box-version-version description: REST surface for vagrant-2023-01-01-registry-registry-box-box-version-version. operations: - method: GET name: readversion description: Read a version call: hcp-vagrant-box-registry-versions.readversion outputParameters: - type: object mapping: $. - method: DELETE name: deleteversion description: Delete a version call: hcp-vagrant-box-registry-versions.deleteversion outputParameters: - type: object mapping: $. - path: /v1/vagrant/2023-01-01/registry/{registry}/box/{box}/versions name: vagrant-2023-01-01-registry-registry-box-box-versions description: REST surface for vagrant-2023-01-01-registry-registry-box-box-versions. operations: - method: GET name: listversions description: List versions call: hcp-vagrant-box-registry-versions.listversions outputParameters: - type: object mapping: $. - method: POST name: createversion description: Create a version call: hcp-vagrant-box-registry-versions.createversion with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: hcp-vagrant-box-registry-versions-mcp port: 9090 transport: http description: MCP adapter for HCP Vagrant Box Registry API — Versions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: read-version description: Read a version hints: readOnly: true destructive: false idempotent: true call: hcp-vagrant-box-registry-versions.readversion outputParameters: - type: object mapping: $. - name: delete-version description: Delete a version hints: readOnly: false destructive: true idempotent: true call: hcp-vagrant-box-registry-versions.deleteversion outputParameters: - type: object mapping: $. - name: list-versions description: List versions hints: readOnly: true destructive: false idempotent: true call: hcp-vagrant-box-registry-versions.listversions outputParameters: - type: object mapping: $. - name: create-version description: Create a version hints: readOnly: false destructive: false idempotent: false call: hcp-vagrant-box-registry-versions.createversion with: body: tools.body outputParameters: - type: object mapping: $.