Bitwarden · Capability

Bitwarden Public API — Collections

Bitwarden Public API — Collections. 4 operations. Lead operation: List all collections.. Self-contained Naftiko capability covering one Bitwarden business surface.

Run with Naftiko BitwardenCollections

What You Can Do

GET
Get — List all collections.
/v1/public/collections
GET
Get — Retrieve a collection.
/v1/public/collections/{id}
PUT
Put — Update a collection.
/v1/public/collections/{id}
DELETE
Delete — Delete a collection.
/v1/public/collections/{id}

MCP Tools

list-all-collections

List all collections.

read-only idempotent
retrieve-collection

Retrieve a collection.

read-only idempotent
update-collection

Update a collection.

idempotent
delete-collection

Delete a collection.

idempotent

Capability Spec

public-swagger-collections.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Bitwarden Public API — Collections
  description: 'Bitwarden Public API — Collections. 4 operations. Lead operation: List all collections.. Self-contained Naftiko
    capability covering one Bitwarden business surface.'
  tags:
  - Bitwarden
  - Collections
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BITWARDEN_API_KEY: BITWARDEN_API_KEY
capability:
  consumes:
  - type: http
    namespace: public-swagger-collections
    baseUri: https://api.bitwarden.com
    description: Bitwarden Public API — Collections business capability. Self-contained, no shared references.
    resources:
    - name: public-collections
      path: /public/collections
      operations:
      - name: get
        method: GET
        description: List all collections.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: public-collections-id
      path: /public/collections/{id}
      operations:
      - name: get
        method: GET
        description: Retrieve a collection.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The identifier of the collection to be retrieved.
          required: true
      - name: put
        method: PUT
        description: Update a collection.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The identifier of the collection to be updated.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: delete
        method: DELETE
        description: Delete a collection.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The identifier of the collection to be deleted.
          required: true
    authentication:
      type: bearer
      token: '{{env.BITWARDEN_API_KEY}}'
  exposes:
  - type: rest
    namespace: public-swagger-collections-rest
    port: 8080
    description: REST adapter for Bitwarden Public API — Collections. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/public/collections
      name: public-collections
      description: REST surface for public-collections.
      operations:
      - method: GET
        name: get
        description: List all collections.
        call: public-swagger-collections.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/public/collections/{id}
      name: public-collections-id
      description: REST surface for public-collections-id.
      operations:
      - method: GET
        name: get
        description: Retrieve a collection.
        call: public-swagger-collections.get
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Update a collection.
        call: public-swagger-collections.put
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a collection.
        call: public-swagger-collections.delete
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: public-swagger-collections-mcp
    port: 9090
    transport: http
    description: MCP adapter for Bitwarden Public API — Collections. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-all-collections
      description: List all collections.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: public-swagger-collections.get
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-collection
      description: Retrieve a collection.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: public-swagger-collections.get
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-collection
      description: Update a collection.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: public-swagger-collections.put
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-collection
      description: Delete a collection.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: public-swagger-collections.delete
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.