naftiko: 1.0.0-alpha2 info: label: HashiCorp Vault System Backend API — Policies description: 'HashiCorp Vault System Backend API — Policies. 4 operations. Lead operation: HashiCorp Vault List ACL Policies. Self-contained Naftiko capability covering one Vault business surface.' tags: - Vault - Policies created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: VAULT_API_KEY: VAULT_API_KEY capability: consumes: - type: http namespace: sys-policies baseUri: https://vault.example.com/v1 description: HashiCorp Vault System Backend API — Policies business capability. Self-contained, no shared references. resources: - name: sys-policies-acl path: /sys/policies/acl operations: - name: listpolicies method: GET description: HashiCorp Vault List ACL Policies outputRawFormat: json outputParameters: - name: result type: object value: $. - name: sys-policies-acl-name path: /sys/policies/acl/{name} operations: - name: readpolicy method: GET description: HashiCorp Vault Read ACL Policy outputRawFormat: json outputParameters: - name: result type: object value: $. - name: writepolicy method: POST description: HashiCorp Vault Write ACL Policy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletepolicy method: DELETE description: HashiCorp Vault Delete ACL Policy outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: X-Vault-Token value: '{{env.VAULT_API_KEY}}' placement: header exposes: - type: rest namespace: sys-policies-rest port: 8080 description: REST adapter for HashiCorp Vault System Backend API — Policies. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/sys/policies/acl name: sys-policies-acl description: REST surface for sys-policies-acl. operations: - method: GET name: listpolicies description: HashiCorp Vault List ACL Policies call: sys-policies.listpolicies outputParameters: - type: object mapping: $. - path: /v1/sys/policies/acl/{name} name: sys-policies-acl-name description: REST surface for sys-policies-acl-name. operations: - method: GET name: readpolicy description: HashiCorp Vault Read ACL Policy call: sys-policies.readpolicy outputParameters: - type: object mapping: $. - method: POST name: writepolicy description: HashiCorp Vault Write ACL Policy call: sys-policies.writepolicy with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletepolicy description: HashiCorp Vault Delete ACL Policy call: sys-policies.deletepolicy outputParameters: - type: object mapping: $. - type: mcp namespace: sys-policies-mcp port: 9090 transport: http description: MCP adapter for HashiCorp Vault System Backend API — Policies. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: hashicorp-vault-list-acl-policies description: HashiCorp Vault List ACL Policies hints: readOnly: true destructive: false idempotent: true call: sys-policies.listpolicies outputParameters: - type: object mapping: $. - name: hashicorp-vault-read-acl-policy description: HashiCorp Vault Read ACL Policy hints: readOnly: true destructive: false idempotent: true call: sys-policies.readpolicy outputParameters: - type: object mapping: $. - name: hashicorp-vault-write-acl-policy description: HashiCorp Vault Write ACL Policy hints: readOnly: false destructive: false idempotent: false call: sys-policies.writepolicy with: body: tools.body outputParameters: - type: object mapping: $. - name: hashicorp-vault-delete-acl-policy description: HashiCorp Vault Delete ACL Policy hints: readOnly: false destructive: true idempotent: true call: sys-policies.deletepolicy outputParameters: - type: object mapping: $.