HashiCorp Vault · Capability

HashiCorp Vault Vault System Backend API — Audit

HashiCorp Vault Vault System Backend API — Audit. 3 operations. Lead operation: HashiCorp Vault List audit devices. Self-contained Naftiko capability covering one Hvault business surface.

Run with Naftiko HvaultAudit

What You Can Do

GET
Listauditdevices — HashiCorp Vault List audit devices
/v1/sys/audit
PUT
Enableauditdevice — HashiCorp Vault Enable audit device
/v1/sys/audit/{path}
DELETE
Disableauditdevice — HashiCorp Vault Disable audit device
/v1/sys/audit/{path}

MCP Tools

hashicorp-vault-list-audit-devices

HashiCorp Vault List audit devices

read-only idempotent
hashicorp-vault-enable-audit-device

HashiCorp Vault Enable audit device

idempotent
hashicorp-vault-disable-audit-device

HashiCorp Vault Disable audit device

idempotent

Capability Spec

system-backend-audit.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: HashiCorp Vault Vault System Backend API — Audit
  description: 'HashiCorp Vault Vault System Backend API — Audit. 3 operations. Lead operation: HashiCorp Vault List audit
    devices. Self-contained Naftiko capability covering one Hvault business surface.'
  tags:
  - Hvault
  - Audit
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HVAULT_API_KEY: HVAULT_API_KEY
capability:
  consumes:
  - type: http
    namespace: system-backend-audit
    baseUri: https://vault.example.com/v1
    description: HashiCorp Vault Vault System Backend API — Audit business capability. Self-contained, no shared references.
    resources:
    - name: sys-audit
      path: /sys/audit
      operations:
      - name: listauditdevices
        method: GET
        description: HashiCorp Vault List audit devices
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: sys-audit-path
      path: /sys/audit/{path}
      operations:
      - name: enableauditdevice
        method: PUT
        description: HashiCorp Vault Enable audit device
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: disableauditdevice
        method: DELETE
        description: HashiCorp Vault Disable audit device
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: X-Vault-Token
      value: '{{env.HVAULT_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: system-backend-audit-rest
    port: 8080
    description: REST adapter for HashiCorp Vault Vault System Backend API — Audit. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/sys/audit
      name: sys-audit
      description: REST surface for sys-audit.
      operations:
      - method: GET
        name: listauditdevices
        description: HashiCorp Vault List audit devices
        call: system-backend-audit.listauditdevices
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/sys/audit/{path}
      name: sys-audit-path
      description: REST surface for sys-audit-path.
      operations:
      - method: PUT
        name: enableauditdevice
        description: HashiCorp Vault Enable audit device
        call: system-backend-audit.enableauditdevice
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: disableauditdevice
        description: HashiCorp Vault Disable audit device
        call: system-backend-audit.disableauditdevice
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: system-backend-audit-mcp
    port: 9090
    transport: http
    description: MCP adapter for HashiCorp Vault Vault System Backend API — Audit. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: hashicorp-vault-list-audit-devices
      description: HashiCorp Vault List audit devices
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: system-backend-audit.listauditdevices
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-enable-audit-device
      description: HashiCorp Vault Enable audit device
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: system-backend-audit.enableauditdevice
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: hashicorp-vault-disable-audit-device
      description: HashiCorp Vault Disable audit device
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: system-backend-audit.disableauditdevice
      outputParameters:
      - type: object
        mapping: $.