Vagrant · Capability

HCP Vagrant Box Registry API — Registries

HCP Vagrant Box Registry API — Registries. 3 operations. Lead operation: Create a registry. Self-contained Naftiko capability covering one Vagrant business surface.

Run with Naftiko VagrantRegistries

What You Can Do

POST
Createregistry — Create a registry
/v1/vagrant/2023-01-01/registry
GET
Readregistry — Read a registry
/v1/vagrant/2023-01-01/registry/{registry}
DELETE
Deleteregistry — Delete a registry
/v1/vagrant/2023-01-01/registry/{registry}

MCP Tools

create-registry

Create a registry

read-registry

Read a registry

read-only idempotent
delete-registry

Delete a registry

idempotent

Capability Spec

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