get_current_user
Retrieve details of the currently authenticated user for integration with ClickUp's task management API, enabling seamless user context in workflows.
Instructions
Get details of the currently authenticated user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/clickup_mcp/tools.py:1371-1383 (handler)The handler function that implements the logic for the 'get_current_user' MCP tool by calling the ClickUp client and formatting the user data.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)The Tool schema definition for 'get_current_user', including name, description, and empty input schema (no parameters required).Tool( name="get_current_user", description="Get details of the currently authenticated user", inputSchema={ "type": "object", "properties": {}, }, ),
- src/clickup_mcp/tools.py:22-57 (registration)Registration of the 'get_current_user' handler in the ClickUpTools class's internal tools dictionary, mapping the tool name to its handler method.self.client = client self._tools: Dict[str, Callable] = { "create_task": self.create_task, "get_task": self.get_task, "update_task": self.update_task, "delete_task": self.delete_task, "list_tasks": self.list_tasks, "search_tasks": self.search_tasks, "get_subtasks": self.get_subtasks, "get_task_comments": self.get_task_comments, "create_task_comment": self.create_task_comment, "get_task_status": self.get_task_status, "update_task_status": self.update_task_status, "get_assignees": self.get_assignees, "assign_task": self.assign_task, "list_spaces": self.list_spaces, "list_folders": self.list_folders, "list_lists": self.list_lists, "find_list_by_name": self.find_list_by_name, # Bulk operations "bulk_update_tasks": self.bulk_update_tasks, "bulk_move_tasks": self.bulk_move_tasks, # Time tracking "get_time_tracked": self.get_time_tracked, "log_time": self.log_time, # Templates "create_task_from_template": self.create_task_from_template, "create_task_chain": self.create_task_chain, # Analytics "get_team_workload": self.get_team_workload, "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 in ClickUpClient that fetches the current user from the ClickUp API endpoint '/user', used by the tool handler.async def get_current_user(self) -> Dict[str, Any]: """Get the current authenticated user.""" data = await self._request("GET", "/user") return data.get("user", {})
- src/clickup_mcp/server.py:41-45 (registration)MCP server registration of tools via the list_tools handler, which returns definitions including 'get_current_user' from ClickUpTools.@self.server.list_tools() async def list_tools() -> List[Tool]: """List all available tools.""" return self.tools.get_tool_definitions()