Skip to main content
Glama
aledlie

Doppler MCP Server

by aledlie

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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;
  • 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,
      };
    });
  • 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}`);
      }
    });

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