HashiCorp Vault · Capability

HashiCorp Vault KV Secrets Engine API — Secrets Data

HashiCorp Vault KV Secrets Engine API — Secrets Data. 6 operations. Lead operation: HashiCorp Vault Read Secret. Self-contained Naftiko capability covering one Vault business surface.

Run with Naftiko VaultSecrets Data

What You Can Do

GET
Readsecret — HashiCorp Vault Read Secret
/v1/secret/data/{path}
POST
Writesecret — HashiCorp Vault Write Secret
/v1/secret/data/{path}
DELETE
Deletelatestsecretversion — HashiCorp Vault Delete Latest Secret Version
/v1/secret/data/{path}
POST
Deletesecretversions — HashiCorp Vault Delete Secret Versions
/v1/secret/delete/{path}
PUT
Destroysecretversions — HashiCorp Vault Destroy Secret Versions
/v1/secret/destroy/{path}
POST
Undeletesecretversions — HashiCorp Vault Undelete Secret Versions
/v1/secret/undelete/{path}

MCP Tools

hashicorp-vault-read-secret

HashiCorp Vault Read Secret

read-only idempotent
hashicorp-vault-write-secret

HashiCorp Vault Write Secret

hashicorp-vault-delete-latest-secret

HashiCorp Vault Delete Latest Secret Version

idempotent
hashicorp-vault-delete-secret-versions

HashiCorp Vault Delete Secret Versions

hashicorp-vault-destroy-secret-versions

HashiCorp Vault Destroy Secret Versions

idempotent
hashicorp-vault-undelete-secret-versions

HashiCorp Vault Undelete Secret Versions

Capability Spec

kv-secrets-data.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HashiCorp Vault KV Secrets Engine API — Secrets Data
  description: 'HashiCorp Vault KV Secrets Engine API — Secrets Data. 6 operations. Lead operation: HashiCorp Vault Read Secret.
    Self-contained Naftiko capability covering one Vault business surface.'
  tags:
  - Vault
  - Secrets Data
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VAULT_API_KEY: VAULT_API_KEY
capability:
  consumes:
  - type: http
    namespace: kv-secrets-data
    baseUri: https://vault.example.com/v1
    description: HashiCorp Vault KV Secrets Engine API — Secrets Data business capability. Self-contained, no shared references.
    resources:
    - name: secret-data-path
      path: /secret/data/{path}
      operations:
      - name: readsecret
        method: GET
        description: HashiCorp Vault Read Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: version
          in: query
          type: integer
          description: Specifies the version to return. If not set the latest version is returned.
      - name: writesecret
        method: POST
        description: HashiCorp Vault Write Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletelatestsecretversion
        method: DELETE
        description: HashiCorp Vault Delete Latest Secret Version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: secret-delete-path
      path: /secret/delete/{path}
      operations:
      - name: deletesecretversions
        method: POST
        description: HashiCorp Vault Delete Secret Versions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: secret-destroy-path
      path: /secret/destroy/{path}
      operations:
      - name: destroysecretversions
        method: PUT
        description: HashiCorp Vault Destroy Secret Versions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: secret-undelete-path
      path: /secret/undelete/{path}
      operations:
      - name: undeletesecretversions
        method: POST
        description: HashiCorp Vault Undelete Secret Versions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: X-Vault-Token
      value: '{{env.VAULT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: kv-secrets-data-rest
    port: 8080
    description: REST adapter for HashiCorp Vault KV Secrets Engine API — Secrets Data. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/secret/data/{path}
      name: secret-data-path
      description: REST surface for secret-data-path.
      operations:
      - method: GET
        name: readsecret
        description: HashiCorp Vault Read Secret
        call: kv-secrets-data.readsecret
        with:
          version: rest.version
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: writesecret
        description: HashiCorp Vault Write Secret
        call: kv-secrets-data.writesecret
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelatestsecretversion
        description: HashiCorp Vault Delete Latest Secret Version
        call: kv-secrets-data.deletelatestsecretversion
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/secret/delete/{path}
      name: secret-delete-path
      description: REST surface for secret-delete-path.
      operations:
      - method: POST
        name: deletesecretversions
        description: HashiCorp Vault Delete Secret Versions
        call: kv-secrets-data.deletesecretversions
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/secret/destroy/{path}
      name: secret-destroy-path
      description: REST surface for secret-destroy-path.
      operations:
      - method: PUT
        name: destroysecretversions
        description: HashiCorp Vault Destroy Secret Versions
        call: kv-secrets-data.destroysecretversions
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/secret/undelete/{path}
      name: secret-undelete-path
      description: REST surface for secret-undelete-path.
      operations:
      - method: POST
        name: undeletesecretversions
        description: HashiCorp Vault Undelete Secret Versions
        call: kv-secrets-data.undeletesecretversions
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: kv-secrets-data-mcp
    port: 9090
    transport: http
    description: MCP adapter for HashiCorp Vault KV Secrets Engine API — Secrets Data. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: hashicorp-vault-read-secret
      description: HashiCorp Vault Read Secret
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: kv-secrets-data.readsecret
      with:
        version: tools.version
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-write-secret
      description: HashiCorp Vault Write Secret
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kv-secrets-data.writesecret
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-delete-latest-secret
      description: HashiCorp Vault Delete Latest Secret Version
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: kv-secrets-data.deletelatestsecretversion
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-delete-secret-versions
      description: HashiCorp Vault Delete Secret Versions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kv-secrets-data.deletesecretversions
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-destroy-secret-versions
      description: HashiCorp Vault Destroy Secret Versions
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: kv-secrets-data.destroysecretversions
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-undelete-secret-versions
      description: HashiCorp Vault Undelete Secret Versions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: kv-secrets-data.undeletesecretversions
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.