doppler_configs_list
Retrieve all configuration sets from a Doppler project to manage secrets across environments.
Instructions
List all configs in a Doppler project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | The Doppler project name (optional if set via doppler setup) |
Implementation Reference
- src/doppler.ts:90-94 (handler)Specific switch case implementing the logic for the 'doppler_configs_list' tool by building the corresponding Doppler CLI command.case "doppler_configs_list": parts.push("configs", "list"); if (getString("project")) parts.push("--project", getString("project")!); parts.push("--json"); break;
- src/tools.ts:120-128 (schema)Input schema defining the parameters (project) for the 'doppler_configs_list' tool.inputSchema: { type: "object", properties: { project: { type: "string", description: "The Doppler project name (optional if set via doppler setup)", }, }, },
- src/tools.ts:117-129 (registration)Tool registration object defining name, description, and input schema for 'doppler_configs_list' in the toolDefinitions array.{ name: "doppler_configs_list", description: "List all configs in a Doppler project", inputSchema: { type: "object", properties: { project: { type: "string", description: "The Doppler project name (optional if set via doppler setup)", }, }, }, },
- src/doppler.ts:10-36 (handler)Core handler function that executes the Doppler CLI command built for any tool, including 'doppler_configs_list', and handles output parsing and errors.export async function executeCommand( toolName: string, args: DopplerArgs ): Promise<any> { const command = buildDopplerCommand(toolName, args); try { const output = execSync(command, { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"], maxBuffer: 10 * 1024 * 1024, // 10MB buffer }); // Try to parse as JSON, if it fails return raw output try { return JSON.parse(output); } catch { return { output: output.trim() }; } } catch (error: any) { // Handle execution errors const stderr = error.stderr?.toString() || ""; const stdout = error.stdout?.toString() || ""; const message = stderr || stdout || error.message; throw new Error(`Doppler CLI command failed: ${message}`); } }