get_pull_request_comment
Retrieve detailed information about a specific comment on a pull request in an AtomGit repository using the provided owner, repo, pull number, and comment ID.
Instructions
Get details of a specific pull request comment
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | ||
| owner | Yes | ||
| pull_number | Yes | ||
| repo | Yes |
Implementation Reference
- operations/pull.ts:97-104 (handler)The core handler function that performs the HTTP GET request to retrieve a specific pull request comment from the AtomGit API.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 validation 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)Registration of the get_pull_request_comment tool in the MCP server's tool list, including name, description, and schema reference.{ name: "get_pull_request_comment", description: "Get details of a specific pull request comment", inputSchema: zodToJsonSchema(pull.GetPullRequestCommentSchema), },
- index.ts:413-419 (handler)MCP CallToolRequest handler that validates input arguments using the schema and delegates to the pull.getPullRequestComment function, formatting 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) }], }; }