KosmoKrator

productivity

HashiCorp Vault MCP, CLI, and Lua Integration for AI Agents

HashiCorp Vault integration docs for AI agents: MCP gateway setup, HashiCorp Vault CLI commands, Lua API reference, credentials, and function schemas.

7 functions 5 read 2 write API token auth

HashiCorp Vault for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
vault
route_slug
vault
package
vault
auth_strategy
api_token API token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

HashiCorp Vault MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for HashiCorp Vault.

HashiCorp Vault CLI Matrix

Use these pages for direct HashiCorp Vault CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
vault.vault_list_secrets Read read 2 List secrets at a given path in a HashiCorp Vault KV v2 secrets engine. Returns the keys (directory entries) at the specified path.
vault.vault_get_secret Read read 3 Get the latest version of a secret from a HashiCorp Vault KV v2 secrets engine. Optionally specify a version number to retrieve a specific version.
vault.vault_create_secret Write write 3 Create or update a secret in a HashiCorp Vault KV v2 secrets engine. Provide the secret path and a key-value data object.
vault.vault_delete_secret Write write 2 Permanently delete all versions and metadata of a secret from a HashiCorp Vault KV v2 secrets engine. This action is irreversible.
vault.vault_list_policies Read read 0 List all ACL policies configured in HashiCorp Vault. Returns an array of policy names.
vault.vault_get_policy Read read 1 Get details of a specific ACL policy in HashiCorp Vault, including its name and HCL rules.
vault.vault_get_current_user Read read 0 Look up the current Vault token's information, including display name, policies, TTL, and metadata.