doppler_secrets_delete
Remove a secret from Doppler to manage sensitive data securely. Specify the secret name, and optionally the project and config, to delete it from your workspace.
Instructions
Delete a secret from Doppler
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the secret to delete | |
| project | No | The Doppler project name (optional if set via doppler setup) | |
| config | No | The Doppler config name (optional if set via doppler setup) |
Implementation Reference
- src/doppler.ts:72-77 (handler)Specific case in buildDopplerCommand function that constructs the 'doppler secrets delete' CLI command for the doppler_secrets_delete tool.case "doppler_secrets_delete": parts.push("secrets", "delete", getString("name")!); if (getString("project")) parts.push("--project", getString("project")!); if (getString("config")) parts.push("--config", getString("config")!); parts.push("--json", "--yes"); // --yes to skip confirmation break;
- src/tools.ts:69-90 (schema)Tool definition including name, description, and input schema for doppler_secrets_delete.{ name: "doppler_secrets_delete", description: "Delete a secret from Doppler", inputSchema: { type: "object", properties: { name: { type: "string", description: "The name of the secret to delete", }, project: { type: "string", description: "The Doppler project name (optional if set via doppler setup)", }, config: { type: "string", description: "The Doppler config name (optional if set via doppler setup)", }, }, required: ["name"], }, },
- src/index.ts:27-31 (registration)Registers the ListTools handler that returns the toolDefinitions array, making doppler_secrets_delete available.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: toolDefinitions, }; });
- src/index.ts:34-51 (handler)MCP CallTool request handler that dispatches to executeCommand based on tool name, handling doppler_secrets_delete calls.server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; try { const result = await executeCommand(name, args || {}); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); throw new McpError(ErrorCode.InternalError, `Doppler CLI error: ${errorMessage}`); } });