Skip to main content
Glama

JIRA MCP Server

get-issue-comments.use-case.ts1.09 kB
/** * Get Issue Comments Use Case */ import type { Comment, GetCommentsOptions } from "../models/comment.models"; import type { IssueCommentRepository } from "../repositories"; import type { GetIssueCommentsParams, IssueCommentValidator, } from "../validators"; export interface GetIssueCommentsUseCase { execute(params: GetIssueCommentsParams): Promise<Comment[]>; } export class GetIssueCommentsUseCaseImpl implements GetIssueCommentsUseCase { constructor( private readonly commentRepository: IssueCommentRepository, private readonly validator: IssueCommentValidator, ) {} async execute(params: GetIssueCommentsParams): Promise<Comment[]> { const validatedParams = this.validator.validateGetCommentsParams(params); // Convert to repository format const options = { issueKey: validatedParams.issueKey, maxResults: validatedParams.maxComments, startAt: 0, orderBy: validatedParams.orderBy, } as GetCommentsOptions; return this.commentRepository.getIssueComments( validatedParams.issueKey, options, ); } }

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