jira_get_current_user
Retrieve details of the currently authenticated user in Jira, including account ID, display name, email, and active status.
Instructions
Get information about the currently authenticated user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:483-493 (handler)Handler for 'jira_get_current_user' tool. Calls JiraClient.getCurrentUser() and returns the user data as JSON.
case 'jira_get_current_user': { const user = await getJiraClient().getCurrentUser(); return { content: [ { type: 'text', text: JSON.stringify(user, null, 2), }, ], }; } - src/index.ts:289-296 (schema)Registration of 'jira_get_current_user' tool with description and empty input schema.
{ name: 'jira_get_current_user', description: 'Get information about the currently authenticated user', inputSchema: { type: 'object', properties: {}, }, }, - src/jira-client.ts:259-262 (helper)JiraClient.getCurrentUser() method that makes a GET request to /rest/api/2/myself to fetch the current user.
async getCurrentUser(): Promise<any> { const response = await this.client.get('/myself'); return response.data; } - src/index.ts:56-297 (registration)The tools array contains the full list of tool definitions including 'jira_get_current_user' (line 289-296). The server registers them via ListToolsRequestSchema handler at line 313.
const tools: Tool[] = [ { name: 'jira_get_issue', description: 'Get details of a specific Jira issue by its key (e.g., PROJ-123)', inputSchema: { type: 'object', properties: { issueKey: { type: 'string', description: 'The Jira issue key (e.g., PROJ-123)', }, }, required: ['issueKey'], }, }, { name: 'jira_search_issues', description: 'Search for Jira issues using JQL (Jira Query Language). Examples: "project = PROJ AND status = Open", "assignee = currentUser() AND status != Done"', inputSchema: { type: 'object', properties: { jql: { type: 'string', description: 'JQL query string to search for issues', }, maxResults: { type: 'number', description: 'Maximum number of results to return (default: 50)', default: 50, }, }, required: ['jql'], }, }, { name: 'jira_create_issue', description: 'Create a new Jira issue in a specified project', inputSchema: { type: 'object', properties: { projectKey: { type: 'string', description: 'The project key where the issue will be created', }, summary: { type: 'string', description: 'Brief summary/title of the issue', }, description: { type: 'string', description: 'Detailed description of the issue', }, issueType: { type: 'string', description: 'Type of issue (e.g., Bug, Task, Story, Epic)', }, priority: { type: 'string', description: 'Priority level (e.g., High, Medium, Low)', }, assignee: { type: 'string', description: 'Username of the person to assign the issue to', }, labels: { type: 'array', items: { type: 'string', }, description: 'Array of labels to add to the issue', }, components: { type: 'array', items: { type: 'string', }, description: 'Array of component names', }, customFields: { type: 'object', description: 'Map of additional Jira field IDs/keys (e.g., customfield_10211) to include in the fields payload', additionalProperties: true, }, }, required: ['projectKey', 'summary', 'issueType'], }, }, { name: 'jira_update_issue', description: 'Update an existing Jira issue', inputSchema: { type: 'object', properties: { issueKey: { type: 'string', description: 'The Jira issue key to update', }, summary: { type: 'string', description: 'New summary/title for the issue', }, description: { type: 'string', description: 'New description for the issue', }, assignee: { type: 'string', description: 'Username to assign the issue to', }, priority: { type: 'string', description: 'New priority level', }, labels: { type: 'array', items: { type: 'string', }, description: 'New array of labels', }, status: { type: 'string', description: 'New status/workflow state (e.g., "In Progress", "Done")', }, customFields: { type: 'object', description: 'Map of additional Jira field IDs/keys (e.g., customfield_10211) to include in the fields payload', additionalProperties: true, }, }, required: ['issueKey'], }, }, { name: 'jira_add_comment', description: 'Add a comment to a Jira issue', inputSchema: { type: 'object', properties: { issueKey: { type: 'string', description: 'The Jira issue key', }, comment: { type: 'string', description: 'The comment text to add', }, }, required: ['issueKey', 'comment'], }, }, { name: 'jira_get_comments', description: 'Get all comments from a Jira issue', inputSchema: { type: 'object', properties: { issueKey: { type: 'string', description: 'The Jira issue key', }, }, required: ['issueKey'], }, }, { name: 'jira_get_projects', description: 'List all available Jira projects', inputSchema: { type: 'object', properties: {}, }, }, { name: 'jira_get_project', description: 'Get details of a specific Jira project', inputSchema: { type: 'object', properties: { projectKey: { type: 'string', description: 'The project key', }, }, required: ['projectKey'], }, }, { name: 'jira_get_issue_types', description: 'Get available issue types for a project', inputSchema: { type: 'object', properties: { projectKey: { type: 'string', description: 'The project key', }, }, required: ['projectKey'], }, }, { name: 'jira_assign_issue', description: 'Assign a Jira issue to a user', inputSchema: { type: 'object', properties: { issueKey: { type: 'string', description: 'The Jira issue key', }, assignee: { type: 'string', description: 'Username to assign the issue to', }, }, required: ['issueKey', 'assignee'], }, }, { name: 'jira_delete_issue', description: 'Delete a Jira issue permanently', inputSchema: { type: 'object', properties: { issueKey: { type: 'string', description: 'The Jira issue key to delete', }, }, required: ['issueKey'], }, }, { name: 'jira_get_current_user', description: 'Get information about the currently authenticated user', inputSchema: { type: 'object', properties: {}, }, }, ];