Skip to main content
Glama

vault_list

List secrets stored at a specified path in HashiCorp Vault to discover available data and manage access to sensitive information.

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 for the 'vault_list' tool that lists secrets at the given path using vaultClient.list and returns the result as JSON.
    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, providing name, description, and input schema.
    { 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 definition for the 'vault_list' tool, specifying the required 'path' parameter.
    inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to list secrets from (e.g., 'secret/metadata')", }, }, required: ["path"], },
  • src/index.ts:107-111 (registration)
    Registration handler for listing all tools, including 'vault_list', via ListToolsRequestSchema.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: TOOLS, }; });

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