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
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to list secrets from (e.g., 'secret/metadata') |
Implementation Reference
- src/index.ts:146-157 (handler)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"], }, },
- src/index.ts:66-75 (schema)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, }; });