Skip to main content
Glama

vault_list

Lists secrets stored at a specified path in HashiCorp Vault to view available secret data.

Instructions

List secrets at the specified path in Vault

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe path to list secrets from (e.g., 'secret/metadata')

Implementation Reference

  • Handler logic for the 'vault_list' tool within the CallToolRequestSchema handler. It extracts the 'path' argument, calls vaultClient.list(path), and returns the result data as a JSON-formatted text content block.
    case "vault_list": { const { path } = args as { path: string }; const result = await vaultClient.list(path); return { content: [ { type: "text", text: JSON.stringify(result.data, null, 2), }, ], }; }
  • src/index.ts:63-76 (registration)
    Registration of the 'vault_list' tool in the TOOLS array, which is returned by ListToolsRequestHandler. Includes name, description, and inputSchema.
    { name: "vault_list", description: "List secrets at the specified path in Vault", inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to list secrets from (e.g., 'secret/metadata')", }, }, required: ["path"], }, },
  • Input schema for the 'vault_list' tool, defining a required 'path' string property.
    inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to list secrets from (e.g., 'secret/metadata')", }, }, required: ["path"], },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kelleyblackmore/vault-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server