doppler_projects_list
Retrieve a list of all projects in your Doppler workspace to manage secrets and configurations across applications.
Instructions
List all Doppler projects
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "doppler_projects_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/doppler.ts:79-82 (handler)Switch case within buildDopplerCommand that constructs the Doppler CLI command 'doppler projects list --json' to execute the tool logic for listing Doppler projects.
case "doppler_projects_list": parts.push("projects", "list"); parts.push("--json"); break; - src/tools.ts:91-98 (schema)Tool schema definition for doppler_projects_list, including name, description, and empty input schema (no parameters required).
{ name: "doppler_projects_list", description: "List all Doppler projects", inputSchema: { type: "object", properties: {}, }, }, - src/index.ts:27-31 (registration)Registration of tool list handler that exposes the doppler_projects_list tool via the toolDefinitions array in MCP ListToolsRequest.
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 the execution and response formatting for doppler_projects_list.
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}`); } });