Skip to main content
Glama

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

NameRequiredDescriptionDefault

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 handler
    server.addToolWithReadAccess( "users-get-current", "Get the current user", async () => await tools.getCurrentUser(), );
  • The handler function that executes the logic for getting the current user by calling the Shortcut client and formatting the result using toResult
    async getCurrentUser() { const user = await this.client.getCurrentUser(); if (!user) throw new Error("Failed to retrieve current user."); return this.toResult(`Current user:`, user); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/useshortcut/mcp-server-shortcut'

If you have feedback or need assistance with the MCP directory API, please join our Discord server