jira_get_current_user
Retrieve the authenticated user's identity and details from a Jira instance to verify access permissions and personalize interactions.
Instructions
Get the current authenticated user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1082-1087 (handler)Handler for the jira_get_current_user tool in the MCP server switch statement. Parses no arguments (empty input), calls jiraClient.getCurrentUser(), and returns JSON stringified user.case "jira_get_current_user": { const user = await jiraClient.getCurrentUser(); return { content: [{ type: "text", text: JSON.stringify(user, null, 2) }], }; }
- src/index.ts:402-408 (registration)Tool registration in ListToolsResponse, including name, description, and empty input schema.name: "jira_get_current_user", description: "Get the current authenticated user", inputSchema: { type: "object", properties: {}, }, },
- src/jira-client.ts:201-203 (helper)Core implementation in JiraClient: makes authenticated GET request to Jira REST API /myself endpoint to fetch current user details.async getCurrentUser(): Promise<JiraUser> { return this.request<JiraUser>("/myself"); }