Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}, }, },
  • 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"); }

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/yogeshhrathod/JiraMCP'

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