doppler_me
Retrieve current authenticated user information from Doppler's secrets management platform to verify identity and access permissions.
Instructions
Get information about the current authenticated Doppler user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/doppler.ts:10-36 (handler)Core handler function that builds and executes the Doppler CLI command for the tool name 'doppler_me', parses JSON output, and handles errors.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}`); } }
- src/doppler.ts:117-120 (helper)Specific logic in buildDopplerCommand to construct the CLI arguments for doppler_me: 'doppler me --json'.case "doppler_me": parts.push("me"); parts.push("--json"); break;
- src/tools.ts:188-194 (schema)Schema definition for the doppler_me tool, specifying no input parameters.name: "doppler_me", description: "Get information about the current authenticated Doppler user", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:27-31 (registration)MCP server request handler for listing tools, which includes the doppler_me tool from toolDefinitions.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: toolDefinitions, }; });
- src/index.ts:34-51 (registration)MCP server request handler for calling tools, which dispatches doppler_me calls to executeCommand based on name.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}`); } });