Skip to main content
Glama

vault_read

Retrieve secrets from HashiCorp Vault using secure token authentication. Access stored credentials and sensitive data by specifying the Vault path.

Instructions

Read a secret from Vault at the specified path

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe path to read the secret from (e.g., 'secret/data/myapp')

Implementation Reference

  • Handler implementation for the 'vault_read' tool. It extracts the 'path' argument, calls vaultClient.read(path) to fetch the secret, and returns the data as a JSON-formatted text content block.
    case "vault_read": { const { path } = args as { path: string }; const result = await vaultClient.read(path); return { content: [ { type: "text", text: JSON.stringify(result.data, null, 2), }, ], }; }
  • Input schema definition for the 'vault_read' tool, specifying a required 'path' parameter of type string with description.
    inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to read the secret from (e.g., 'secret/data/myapp')", }, }, required: ["path"], },
  • src/index.ts:31-44 (registration)
    Registration of the 'vault_read' tool in the TOOLS array, which is used by the ListToolsRequestSchema handler to advertise available tools.
    { name: "vault_read", description: "Read a secret from Vault at the specified path", inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to read the secret from (e.g., 'secret/data/myapp')", }, }, 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