doppler_configs_create
Create a new configuration in a Doppler project for managing environment-specific secrets and settings.
Instructions
Create a new config in a Doppler project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the config to create | |
| project | Yes | The Doppler project name | |
| environment | Yes | The environment for the config (e.g., dev, staging, prod) |
Implementation Reference
- src/doppler.ts:96-101 (handler)The switch case in buildDopplerCommand function that handles the "doppler_configs_create" tool by constructing the Doppler CLI command: doppler configs create <name> --project <project> --environment <environment> --jsoncase "doppler_configs_create": parts.push("configs", "create", getString("name")!); parts.push("--project", getString("project")!); parts.push("--environment", getString("environment")!); parts.push("--json"); break;
- src/tools.ts:133-150 (schema)Input schema for the doppler_configs_create tool, specifying required parameters: name, project, and environment.inputSchema: { type: "object", properties: { name: { type: "string", description: "The name of the config to create", }, project: { type: "string", description: "The Doppler project name", }, environment: { type: "string", description: "The environment for the config (e.g., dev, staging, prod)", }, }, required: ["name", "project", "environment"], },
- src/tools.ts:130-151 (registration)The tool definition object for "doppler_configs_create" included in the exported toolDefinitions array, used for MCP tool registration.{ name: "doppler_configs_create", description: "Create a new config in a Doppler project", inputSchema: { type: "object", properties: { name: { type: "string", description: "The name of the config to create", }, project: { type: "string", description: "The Doppler project name", }, environment: { type: "string", description: "The environment for the config (e.g., dev, staging, prod)", }, }, required: ["name", "project", "environment"], }, },
- src/index.ts:27-31 (registration)MCP server request handler for listing tools, which returns the toolDefinitions array including doppler_configs_create.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: toolDefinitions, }; });
- src/index.ts:34-51 (handler)MCP server request handler for calling tools, which invokes executeCommand with the tool name and arguments, handling the execution for all tools including doppler_configs_create.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}`); } });