Skip to main content
Glama

get_pull_request_comment

Retrieve specific pull request comment details from AtomGit repositories to review feedback and track discussion threads.

Instructions

Get details of a specific pull request comment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYes
repoYes
pull_numberYes
comment_idYes

Implementation Reference

  • The core handler function that executes the tool logic by making an HTTP GET request to the AtomGit API to retrieve the specified pull request comment.
    export async function getPullRequestComment(owner: string, repo: string, pull_number: number, comment_id: number) {
      return atomGitRequest(
        `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/pulls/${encodeURIComponent(pull_number)}/comments/${encodeURIComponent(comment_id)}`,
        {
          method: "GET",
        }
      );
    }
  • Zod schema defining the input parameters for the get_pull_request_comment tool: owner, repo, pull_number, and comment_id.
    export const GetPullRequestCommentSchema = z.object({
      owner: z.string(),
      repo: z.string(),
      pull_number: z.number(),
      comment_id: z.number(),
    });
  • index.ts:152-156 (registration)
    Tool registration in the MCP server's listTools response, specifying name, description, and input schema.
    {
      name: "get_pull_request_comment",
      description: "Get details of a specific pull request comment",
      inputSchema: zodToJsonSchema(pull.GetPullRequestCommentSchema),
    },
  • MCP server request handler case that parses arguments, calls the core handler, and formats the response.
    case "get_pull_request_comment": {
      const args = pull.GetPullRequestCommentSchema.parse(request.params.arguments);
      const result = await pull.getPullRequestComment(args.owner, args.repo, args.pull_number, args.comment_id);
      return {
        content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
      };
    }

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/kaiyuanxiaobing/atomgit-mcp-server'

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