Skip to main content
Glama

doppler_configs_create

Create a new configuration in a Doppler project for specific environments to organize and manage application settings and secrets.

Instructions

Create a new config in a Doppler project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the config to create
projectYesThe Doppler project name
environmentYesThe environment for the config (e.g., dev, staging, prod)

Implementation Reference

  • Handler logic that builds the specific Doppler CLI command 'doppler configs create --project <project> --environment <env> <name> --json' for creating a config.
    case "doppler_configs_create": parts.push("configs", "create", getString("name")!); parts.push("--project", getString("project")!); parts.push("--environment", getString("environment")!); parts.push("--json"); break;
  • Input schema defining the parameters for the doppler_configs_create tool: name, project (required), environment (required).
    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)
    Tool registration in toolDefinitions array, including name, description, and schema, used by the MCP server for listing tools.
    { 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"], }, },
  • Core handler function that executes the built Doppler CLI command via execSync and parses JSON output or returns raw output.
    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}`); } }

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/aledlie/doppler-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server