doppler_projects_create
Create a new Doppler project to organize and manage your application secrets securely. Specify project name and optional description to establish structured secret management.
Instructions
Create a new Doppler project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the project to create | |
| description | No | Optional description for the project |
Implementation Reference
- src/doppler.ts:84-88 (handler)Specific switch case handling the 'doppler_projects_create' tool by building the Doppler CLI command: doppler projects create <name> [--description <desc>] --jsoncase "doppler_projects_create": parts.push("projects", "create", getString("name")!); if (getString("description")) parts.push("--description", getString("description")!); parts.push("--json"); break;
- src/tools.ts:99-116 (schema)Tool definition including name, description, and input schema for validating parameters 'name' (required) and 'description' (optional) for doppler_projects_create{ name: "doppler_projects_create", description: "Create a new Doppler project", inputSchema: { type: "object", properties: { name: { type: "string", description: "The name of the project to create", }, description: { type: "string", description: "Optional description for the project", }, }, required: ["name"], }, },
- src/index.ts:27-31 (registration)Registers the listTools request handler, which provides the tool definitions array including doppler_projects_create to MCP clientsserver.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: toolDefinitions, }; });
- src/index.ts:34-51 (handler)Generic MCP tool call handler that dispatches to executeCommand based on tool name, executing the logic for doppler_projects_create among othersserver.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}`); } });