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
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | ||
| repo | Yes | ||
| pull_number | Yes | ||
| comment_id | Yes |
Implementation Reference
- operations/pull.ts:97-104 (handler)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", } ); } - operations/pull.ts:38-43 (schema)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), }, - index.ts:413-419 (handler)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) }], }; }