Porter · Capability

Porter Bundle API — Bundles

Porter Bundle API — Bundles. 2 operations. Lead operation: Porter List bundles. Self-contained Naftiko capability covering one Porter business surface.

Run with Naftiko PorterBundles

What You Can Do

GET
Listbundles — Porter List bundles
/v1/v1/bundles
GET
Getbundle — Porter Get a bundle
/v1/v1/bundles/{namespace}/{name}

MCP Tools

porter-list-bundles

Porter List bundles

read-only idempotent
porter-get-bundle

Porter Get a bundle

read-only idempotent

Capability Spec

bundle-bundles.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Porter Bundle API — Bundles
  description: 'Porter Bundle API — Bundles. 2 operations. Lead operation: Porter List bundles. Self-contained Naftiko capability
    covering one Porter business surface.'
  tags:
  - Porter
  - Bundles
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTER_API_KEY: PORTER_API_KEY
capability:
  consumes:
  - type: http
    namespace: bundle-bundles
    baseUri: http://localhost:3000
    description: Porter Bundle API — Bundles business capability. Self-contained, no shared references.
    resources:
    - name: v1-bundles
      path: /v1/bundles
      operations:
      - name: listbundles
        method: GET
        description: Porter List bundles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-bundles-namespace-name
      path: /v1/bundles/{namespace}/{name}
      operations:
      - name: getbundle
        method: GET
        description: Porter Get a bundle
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: version
          in: query
          type: string
          description: Specific version of the bundle to retrieve. Defaults to latest.
    authentication:
      type: bearer
      token: '{{env.PORTER_API_KEY}}'
  exposes:
  - type: rest
    namespace: bundle-bundles-rest
    port: 8080
    description: REST adapter for Porter Bundle API — Bundles. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/bundles
      name: v1-bundles
      description: REST surface for v1-bundles.
      operations:
      - method: GET
        name: listbundles
        description: Porter List bundles
        call: bundle-bundles.listbundles
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/bundles/{namespace}/{name}
      name: v1-bundles-namespace-name
      description: REST surface for v1-bundles-namespace-name.
      operations:
      - method: GET
        name: getbundle
        description: Porter Get a bundle
        call: bundle-bundles.getbundle
        with:
          version: rest.version
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: bundle-bundles-mcp
    port: 9090
    transport: http
    description: MCP adapter for Porter Bundle API — Bundles. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: porter-list-bundles
      description: Porter List bundles
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bundle-bundles.listbundles
      outputParameters:
      - type: object
        mapping: $.
    - name: porter-get-bundle
      description: Porter Get a bundle
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: bundle-bundles.getbundle
      with:
        version: tools.version
      outputParameters:
      - type: object
        mapping: $.