HashiCorp Vault · Capability

HashiCorp Vault Vault Identity API — Entity

HashiCorp Vault Vault Identity API — Entity. 10 operations. Lead operation: HashiCorp Vault Create entity. Self-contained Naftiko capability covering one Hvault business surface.

Run with Naftiko HvaultEntity

What You Can Do

POST
Createentity — HashiCorp Vault Create entity
/v1/identity/entity
GET
Listentities — HashiCorp Vault List entities
/v1/identity/entity
POST
Batchdeleteentities — HashiCorp Vault Batch delete entities
/v1/identity/entity/batch-delete
GET
Readentitybyid — HashiCorp Vault Read entity by ID
/v1/identity/entity/id/{id}
POST
Updateentitybyid — HashiCorp Vault Update entity by ID
/v1/identity/entity/id/{id}
DELETE
Deleteentitybyid — HashiCorp Vault Delete entity by ID
/v1/identity/entity/id/{id}
POST
Mergeentities — HashiCorp Vault Merge entities
/v1/identity/entity/merge
GET
Readentitybyname — HashiCorp Vault Read entity by name
/v1/identity/entity/name/{name}
POST
Updateentitybyname — HashiCorp Vault Update entity by name
/v1/identity/entity/name/{name}
DELETE
Deleteentitybyname — HashiCorp Vault Delete entity by name
/v1/identity/entity/name/{name}

MCP Tools

hashicorp-vault-create-entity

HashiCorp Vault Create entity

hashicorp-vault-list-entities

HashiCorp Vault List entities

read-only idempotent
hashicorp-vault-batch-delete-entities

HashiCorp Vault Batch delete entities

hashicorp-vault-read-entity-id

HashiCorp Vault Read entity by ID

read-only idempotent
hashicorp-vault-update-entity-id

HashiCorp Vault Update entity by ID

hashicorp-vault-delete-entity-id

HashiCorp Vault Delete entity by ID

idempotent
hashicorp-vault-merge-entities

HashiCorp Vault Merge entities

hashicorp-vault-read-entity-name

HashiCorp Vault Read entity by name

read-only idempotent
hashicorp-vault-update-entity-name

HashiCorp Vault Update entity by name

hashicorp-vault-delete-entity-name

HashiCorp Vault Delete entity by name

idempotent

Capability Spec

identity-entity.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HashiCorp Vault Vault Identity API — Entity
  description: 'HashiCorp Vault Vault Identity API — Entity. 10 operations. Lead operation: HashiCorp Vault Create entity.
    Self-contained Naftiko capability covering one Hvault business surface.'
  tags:
  - Hvault
  - Entity
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HVAULT_API_KEY: HVAULT_API_KEY
capability:
  consumes:
  - type: http
    namespace: identity-entity
    baseUri: https://vault.example.com/v1
    description: HashiCorp Vault Vault Identity API — Entity business capability. Self-contained, no shared references.
    resources:
    - name: identity-entity
      path: /identity/entity
      operations:
      - name: createentity
        method: POST
        description: HashiCorp Vault Create entity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listentities
        method: GET
        description: HashiCorp Vault List entities
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: identity-entity-batch-delete
      path: /identity/entity/batch-delete
      operations:
      - name: batchdeleteentities
        method: POST
        description: HashiCorp Vault Batch delete entities
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: identity-entity-id-id
      path: /identity/entity/id/{id}
      operations:
      - name: readentitybyid
        method: GET
        description: HashiCorp Vault Read entity by ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateentitybyid
        method: POST
        description: HashiCorp Vault Update entity by ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteentitybyid
        method: DELETE
        description: HashiCorp Vault Delete entity by ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: identity-entity-merge
      path: /identity/entity/merge
      operations:
      - name: mergeentities
        method: POST
        description: HashiCorp Vault Merge entities
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: identity-entity-name-name
      path: /identity/entity/name/{name}
      operations:
      - name: readentitybyname
        method: GET
        description: HashiCorp Vault Read entity by name
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the entity
          required: true
      - name: updateentitybyname
        method: POST
        description: HashiCorp Vault Update entity by name
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the entity
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteentitybyname
        method: DELETE
        description: HashiCorp Vault Delete entity by name
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          description: Name of the entity
          required: true
    authentication:
      type: apikey
      key: X-Vault-Token
      value: '{{env.HVAULT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: identity-entity-rest
    port: 8080
    description: REST adapter for HashiCorp Vault Vault Identity API — Entity. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/identity/entity
      name: identity-entity
      description: REST surface for identity-entity.
      operations:
      - method: POST
        name: createentity
        description: HashiCorp Vault Create entity
        call: identity-entity.createentity
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listentities
        description: HashiCorp Vault List entities
        call: identity-entity.listentities
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/identity/entity/batch-delete
      name: identity-entity-batch-delete
      description: REST surface for identity-entity-batch-delete.
      operations:
      - method: POST
        name: batchdeleteentities
        description: HashiCorp Vault Batch delete entities
        call: identity-entity.batchdeleteentities
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/identity/entity/id/{id}
      name: identity-entity-id-id
      description: REST surface for identity-entity-id-id.
      operations:
      - method: GET
        name: readentitybyid
        description: HashiCorp Vault Read entity by ID
        call: identity-entity.readentitybyid
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: updateentitybyid
        description: HashiCorp Vault Update entity by ID
        call: identity-entity.updateentitybyid
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteentitybyid
        description: HashiCorp Vault Delete entity by ID
        call: identity-entity.deleteentitybyid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/identity/entity/merge
      name: identity-entity-merge
      description: REST surface for identity-entity-merge.
      operations:
      - method: POST
        name: mergeentities
        description: HashiCorp Vault Merge entities
        call: identity-entity.mergeentities
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/identity/entity/name/{name}
      name: identity-entity-name-name
      description: REST surface for identity-entity-name-name.
      operations:
      - method: GET
        name: readentitybyname
        description: HashiCorp Vault Read entity by name
        call: identity-entity.readentitybyname
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: updateentitybyname
        description: HashiCorp Vault Update entity by name
        call: identity-entity.updateentitybyname
        with:
          name: rest.name
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteentitybyname
        description: HashiCorp Vault Delete entity by name
        call: identity-entity.deleteentitybyname
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: identity-entity-mcp
    port: 9090
    transport: http
    description: MCP adapter for HashiCorp Vault Vault Identity API — Entity. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: hashicorp-vault-create-entity
      description: HashiCorp Vault Create entity
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: identity-entity.createentity
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-list-entities
      description: HashiCorp Vault List entities
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: identity-entity.listentities
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-batch-delete-entities
      description: HashiCorp Vault Batch delete entities
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: identity-entity.batchdeleteentities
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-read-entity-id
      description: HashiCorp Vault Read entity by ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: identity-entity.readentitybyid
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-update-entity-id
      description: HashiCorp Vault Update entity by ID
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: identity-entity.updateentitybyid
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-delete-entity-id
      description: HashiCorp Vault Delete entity by ID
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: identity-entity.deleteentitybyid
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-merge-entities
      description: HashiCorp Vault Merge entities
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: identity-entity.mergeentities
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-read-entity-name
      description: HashiCorp Vault Read entity by name
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: identity-entity.readentitybyname
      with:
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-update-entity-name
      description: HashiCorp Vault Update entity by name
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: identity-entity.updateentitybyname
      with:
        name: tools.name
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-delete-entity-name
      description: HashiCorp Vault Delete entity by name
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: identity-entity.deleteentitybyname
      with:
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.