get_current_user
Retrieve details of the currently authenticated ClickUp user to verify identity and access permissions for task management operations.
Instructions
Get details of the currently authenticated user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/clickup_mcp/tools.py:1371-1383 (handler)The main tool handler function that fetches and formats the current user data using the ClickUpClient.
async def get_current_user(self) -> Dict[str, Any]: """Get details of the currently authenticated user.""" user = await self.client.get_current_user() return { "id": user.get("id"), "username": user.get("username"), "email": user.get("email"), "initials": user.get("initials"), "color": user.get("color"), "profilePicture": user.get("profilePicture"), "role": user.get("role"), } - src/clickup_mcp/tools.py:482-489 (schema)Input schema definition for the get_current_user tool, which requires no parameters.
Tool( name="get_current_user", description="Get details of the currently authenticated user", inputSchema={ "type": "object", "properties": {}, }, ), - src/clickup_mcp/tools.py:52-56 (registration)Registers the get_current_user method as a tool handler in the internal tools dictionary.
"get_task_analytics": self.get_task_analytics, # User management "list_users": self.list_users, "get_current_user": self.get_current_user, "find_user_by_name": self.find_user_by_name, - src/clickup_mcp/client.py:79-82 (helper)Helper method on ClickUpClient that makes the API request to retrieve the current user data.
async def get_current_user(self) -> Dict[str, Any]: """Get the current authenticated user.""" data = await self._request("GET", "/user") return data.get("user", {})