Skip to main content
Glama
ddukbg

GitHub Enterprise MCP Server

list-issue-comments

Retrieve comments from a specific GitHub Enterprise issue using repository details, issue number, and pagination options to streamline issue management and collaboration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_numberYesIssue number
ownerYesRepository owner (user or organization)
pageNoPage number
per_pageNoItems per page
repoYesRepository name

Implementation Reference

  • The core handler function that implements the logic to list comments for a specific issue in a GitHub repository. It uses the GitHubClient to make a GET request to the issues/{issue_number}/comments endpoint.
    export async function listIssueComments( client: GitHubClient, params: ListIssueCommentsParams ): Promise<IssueComment[]> { const { owner, repo, issue_number, ...rest } = params; const queryParams = new URLSearchParams(); // Add additional parameters Object.entries(rest).forEach(([key, value]) => { if (value !== undefined) { queryParams.append(key, String(value)); } }); const queryString = queryParams.toString() ? `?${queryParams.toString()}` : ''; return client.get<IssueComment[]>(`/repos/${owner}/${repo}/issues/${issue_number}/comments${queryString}`); }
  • Input parameter type definition (schema) for the listIssueComments handler, including required fields owner, repo, issue_number and optional pagination parameters.
    export interface ListIssueCommentsParams { owner: string; repo: string; issue_number: number; page?: number; per_page?: number; }
  • Output type definition (schema) for individual issue comments returned by the listIssueComments handler.
    export interface IssueComment { id: number; body: string; user: { login: string; id: number; avatar_url: string; }; created_at: string; updated_at: string; html_url: string; }

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/ddukbg/github-enterprise-mcp'

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