Skip to main content
Glama

vault_read

Retrieve secrets from HashiCorp Vault by specifying the secret path to access stored sensitive data securely.

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

  • The handler for the vault_read tool. It extracts the path from arguments, reads the secret using vaultClient.read(path), and returns the result data as formatted JSON text content.
    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), }, ], }; }
  • src/index.ts:31-44 (registration)
    Registration of the vault_read tool in the TOOLS array, including its name, description, and input schema definition for the 'path' parameter.
    { 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"], }, },
  • Input schema definition for the vault_read tool, specifying the required 'path' string parameter.
    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