get-current-user
Retrieve the authenticated user's information from Shortcut project management to personalize workflows and access control.
Instructions
Get the current user
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-current-user"
}
}Input 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(), );