get-current-user
Retrieve the authenticated user's information from Shortcut project management to personalize workflows and access control.
Instructions
Get the current user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/user.ts:20-26 (handler)Handler function that executes the tool logic: retrieves current user from client and formats the result.async getCurrentUser() { const user = await this.client.getCurrentUser(); if (!user) throw new Error("Failed to retrieve current user."); return this.toResult(`Current user:`, user); }
- src/tools/user.ts:9-13 (registration)Registers the 'get-current-user' tool with the MCP server, providing description and handler reference.server.tool( "get-current-user", "Get the current user", async () => await tools.getCurrentUser(), );