Skip to main content
Glama
kelleyblackmore

Vault MCP Server

vault_delete

Delete a secret from HashiCorp Vault at a specified path to remove sensitive data and maintain security.

Instructions

Delete a secret from Vault at the specified path

Input Schema

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

Implementation Reference

  • Handler implementation for the vault_delete tool. Extracts the path from arguments, calls vaultClient.delete(path), and returns a success message.
    case "vault_delete": {
      const { path } = args as { path: string };
      await vaultClient.delete(path);
      return {
        content: [
          {
            type: "text",
            text: `Successfully deleted secret at path: ${path}`,
          },
        ],
      };
    }
  • src/index.ts:77-90 (registration)
    Registration of the vault_delete tool in the TOOLS array, defining its name, description, and input schema requiring a 'path' string.
    {
      name: "vault_delete",
      description: "Delete a secret from Vault at the specified path",
      inputSchema: {
        type: "object",
        properties: {
          path: {
            type: "string",
            description: "The path to delete the secret from (e.g., 'secret/data/myapp')",
          },
        },
        required: ["path"],
      },
    },
  • Input schema for vault_delete tool, specifying an object with required 'path' property of type string.
    inputSchema: {
      type: "object",
      properties: {
        path: {
          type: "string",
          description: "The path to delete the secret from (e.g., 'secret/data/myapp')",
        },
      },
      required: ["path"],
    },
Install Server

Other 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