get-current-user
Retrieve the currently authenticated user details within the Shortcut MCP Server, enabling quick access to user-specific data for project management and AI tool integrations.
Instructions
Get the current user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/tools/user.ts:9-13 (registration)Registration of the MCP tool 'users-get-current' which calls the getCurrentUser handlerserver.addToolWithReadAccess( "users-get-current", "Get the current user", async () => await tools.getCurrentUser(), );
- src/tools/user.ts:30-36 (handler)The handler function that executes the logic for getting the current user by calling the Shortcut client and formatting the result using toResultasync getCurrentUser() { const user = await this.client.getCurrentUser(); if (!user) throw new Error("Failed to retrieve current user."); return this.toResult(`Current user:`, user); }