Chef · Capability

Chef Habitat Builder API — Packages

Chef Habitat Builder API — Packages. 2 operations. Lead operation: List packages for an origin. Self-contained Naftiko capability covering one Chef business surface.

Run with Naftiko ChefPackages

What You Can Do

GET
Listoriginpackages — List packages for an origin
/v1/depot/origins/{origin}/pkgs
GET
Getpackage — Get a package
/v1/depot/pkgs/{origin}/{pkg}

MCP Tools

list-packages-origin

List packages for an origin

read-only idempotent
get-package

Get a package

read-only idempotent

Capability Spec

habitat-builder-packages.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Chef Habitat Builder API — Packages
  description: 'Chef Habitat Builder API — Packages. 2 operations. Lead operation: List packages for an origin. Self-contained
    Naftiko capability covering one Chef business surface.'
  tags:
  - Chef
  - Packages
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CHEF_API_KEY: CHEF_API_KEY
capability:
  consumes:
  - type: http
    namespace: habitat-builder-packages
    baseUri: https://bldr.habitat.sh/v1
    description: Chef Habitat Builder API — Packages business capability. Self-contained, no shared references.
    resources:
    - name: depot-origins-origin-pkgs
      path: /depot/origins/{origin}/pkgs
      operations:
      - name: listoriginpackages
        method: GET
        description: List packages for an origin
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: origin
          in: path
          type: string
          required: true
    - name: depot-pkgs-origin-pkg
      path: /depot/pkgs/{origin}/{pkg}
      operations:
      - name: getpackage
        method: GET
        description: Get a package
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: origin
          in: path
          type: string
          required: true
        - name: pkg
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.CHEF_API_KEY}}'
  exposes:
  - type: rest
    namespace: habitat-builder-packages-rest
    port: 8080
    description: REST adapter for Chef Habitat Builder API — Packages. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/depot/origins/{origin}/pkgs
      name: depot-origins-origin-pkgs
      description: REST surface for depot-origins-origin-pkgs.
      operations:
      - method: GET
        name: listoriginpackages
        description: List packages for an origin
        call: habitat-builder-packages.listoriginpackages
        with:
          origin: rest.origin
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/depot/pkgs/{origin}/{pkg}
      name: depot-pkgs-origin-pkg
      description: REST surface for depot-pkgs-origin-pkg.
      operations:
      - method: GET
        name: getpackage
        description: Get a package
        call: habitat-builder-packages.getpackage
        with:
          origin: rest.origin
          pkg: rest.pkg
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: habitat-builder-packages-mcp
    port: 9090
    transport: http
    description: MCP adapter for Chef Habitat Builder API — Packages. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-packages-origin
      description: List packages for an origin
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: habitat-builder-packages.listoriginpackages
      with:
        origin: tools.origin
      outputParameters:
      - type: object
        mapping: $.
    - name: get-package
      description: Get a package
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: habitat-builder-packages.getpackage
      with:
        origin: tools.origin
        pkg: tools.pkg
      outputParameters:
      - type: object
        mapping: $.