get_pull_request_details
Retrieve comprehensive details of a specific pull request from an AtomGit repository by providing the owner, repository name, and pull request number.
Instructions
Get details of a specific pull request
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | ||
| pull_number | Yes | ||
| repo | Yes |
Implementation Reference
- operations/pull.ts:68-75 (handler)Core handler function that executes the API request to fetch pull request details from AtomGit.export async function getPullRequestDetails(owner: string, repo: string, pull_number: number) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/pulls/${encodeURIComponent(pull_number)}`, { method: "GET", } ); }
- operations/pull.ts:17-21 (schema)Zod schema defining the input parameters for the get_pull_request_details tool.export const GetPullRequestDetailsSchema = z.object({ owner: z.string(), repo: z.string(), pull_number: z.number(), });
- index.ts:138-141 (registration)Tool registration in the MCP server's listTools response, specifying name, description, and input schema.name: "get_pull_request_details", description: "Get details of a specific pull request", inputSchema: zodToJsonSchema(pull.GetPullRequestDetailsSchema), },
- index.ts:389-395 (handler)Dispatch handler in the MCP CallToolRequest that parses arguments and calls the core getPullRequestDetails function.case "get_pull_request_details": { const args = pull.GetPullRequestDetailsSchema.parse(request.params.arguments); const result = await pull.getPullRequestDetails(args.owner, args.repo, args.pull_number); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }