doppler_me
Retrieve authenticated user details from Doppler's secrets management platform for identity verification and access control.
Instructions
Get information about the current authenticated Doppler user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:187-195 (schema)Schema definition including name, description, and empty input schema for the doppler_me tool.{ name: "doppler_me", description: "Get information about the current authenticated Doppler user", inputSchema: { type: "object", properties: {}, }, }, ];
- src/doppler.ts:117-120 (handler)Specific handler logic for doppler_me within buildDopplerCommand: constructs and prepares the 'doppler me --json' CLI command for execution.case "doppler_me": parts.push("me"); parts.push("--json"); break;
- src/doppler.ts:10-36 (handler)Core handler function that executes the Doppler CLI command built for doppler_me (and other tools) using execSync and parses output as JSON.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/index.ts:27-31 (registration)Registers all tools, including doppler_me, by returning toolDefinitions in response to ListToolsRequest.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: toolDefinitions, }; });
- src/index.ts:34-51 (registration)Registers the generic CallToolRequest handler that dispatches tool execution to executeCommand based on the tool name 'doppler_me'.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}`); } });