Skip to main content
Glama

JIRA MCP Server

user-profile.repository.ts964 B
import { logger } from "@core/logging"; import type { HttpClient } from "@features/jira/client/http/jira.http.types"; import type { User } from "../models"; /** * Repository interface for user profile operations * Clear responsibility: managing user information and authentication context */ export interface UserProfileRepository { getCurrentUser(): Promise<User>; } /** * Implementation of UserProfileRepository * Extracted from JiraClient god object - user profile operations only */ export class UserProfileRepositoryImpl implements UserProfileRepository { private readonly logger = logger; constructor(private readonly httpClient: HttpClient) {} /** * Get current user information */ async getCurrentUser(): Promise<User> { this.logger.debug("Getting current user", { prefix: "JIRA:UserProfileRepository", }); return this.httpClient.sendRequest<User>({ endpoint: "myself", method: "GET", }); } }

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/Dsazz/mcp-jira'

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