Vagrant · Capability

HCP Vagrant Box Registry API — Boxes

HCP Vagrant Box Registry API — Boxes. 5 operations. Lead operation: Read a box. Self-contained Naftiko capability covering one Vagrant business surface.

Run with Naftiko VagrantBoxes

What You Can Do

GET
Readbox — Read a box
/v1/vagrant/2023-01-01/registry/{registry}/box/{box}
PUT
Updatebox — Update a box
/v1/vagrant/2023-01-01/registry/{registry}/box/{box}
DELETE
Deletebox — Delete a box
/v1/vagrant/2023-01-01/registry/{registry}/box/{box}
GET
Listboxes — List boxes
/v1/vagrant/2023-01-01/registry/{registry}/boxes
POST
Createbox — Create a box
/v1/vagrant/2023-01-01/registry/{registry}/boxes

MCP Tools

read-box

Read a box

read-only idempotent
update-box

Update a box

idempotent
delete-box

Delete a box

idempotent
list-boxes

List boxes

read-only idempotent
create-box

Create a box

Capability Spec

hcp-vagrant-box-registry-boxes.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HCP Vagrant Box Registry API — Boxes
  description: 'HCP Vagrant Box Registry API — Boxes. 5 operations. Lead operation: Read a box. Self-contained Naftiko capability
    covering one Vagrant business surface.'
  tags:
  - Vagrant
  - Boxes
  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-boxes
    baseUri: https://api.cloud.hashicorp.com
    description: HCP Vagrant Box Registry API — Boxes business capability. Self-contained, no shared references.
    resources:
    - name: vagrant-2023-01-01-registry-registry-box-box
      path: /vagrant/2023-01-01/registry/{registry}/box/{box}
      operations:
      - name: readbox
        method: GET
        description: Read a box
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatebox
        method: PUT
        description: Update a box
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletebox
        method: DELETE
        description: Delete a box
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: vagrant-2023-01-01-registry-registry-boxes
      path: /vagrant/2023-01-01/registry/{registry}/boxes
      operations:
      - name: listboxes
        method: GET
        description: List boxes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createbox
        method: POST
        description: Create a box
        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-boxes-rest
    port: 8080
    description: REST adapter for HCP Vagrant Box Registry API — Boxes. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/vagrant/2023-01-01/registry/{registry}/box/{box}
      name: vagrant-2023-01-01-registry-registry-box-box
      description: REST surface for vagrant-2023-01-01-registry-registry-box-box.
      operations:
      - method: GET
        name: readbox
        description: Read a box
        call: hcp-vagrant-box-registry-boxes.readbox
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatebox
        description: Update a box
        call: hcp-vagrant-box-registry-boxes.updatebox
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletebox
        description: Delete a box
        call: hcp-vagrant-box-registry-boxes.deletebox
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/vagrant/2023-01-01/registry/{registry}/boxes
      name: vagrant-2023-01-01-registry-registry-boxes
      description: REST surface for vagrant-2023-01-01-registry-registry-boxes.
      operations:
      - method: GET
        name: listboxes
        description: List boxes
        call: hcp-vagrant-box-registry-boxes.listboxes
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createbox
        description: Create a box
        call: hcp-vagrant-box-registry-boxes.createbox
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hcp-vagrant-box-registry-boxes-mcp
    port: 9090
    transport: http
    description: MCP adapter for HCP Vagrant Box Registry API — Boxes. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: read-box
      description: Read a box
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hcp-vagrant-box-registry-boxes.readbox
      outputParameters:
      - type: object
        mapping: $.
    - name: update-box
      description: Update a box
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: hcp-vagrant-box-registry-boxes.updatebox
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-box
      description: Delete a box
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: hcp-vagrant-box-registry-boxes.deletebox
      outputParameters:
      - type: object
        mapping: $.
    - name: list-boxes
      description: List boxes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hcp-vagrant-box-registry-boxes.listboxes
      outputParameters:
      - type: object
        mapping: $.
    - name: create-box
      description: Create a box
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: hcp-vagrant-box-registry-boxes.createbox
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.