create_pull_request_reply
Enables users to respond to comments on pull requests within AtomGit repositories by specifying owner, repo, pull number, comment ID, and reply content.
Instructions
Reply to a comment on a pull request
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| comment_id | Yes | ||
| owner | Yes | ||
| pull_number | Yes | ||
| repo | Yes |
Implementation Reference
- operations/pull.ts:87-95 (handler)The core handler function that executes the tool logic by making an HTTP POST request to the AtomGit API to create a reply to a pull request comment.export async function createPullRequestReply(owner: string, repo: string, pull_number: number, comment_id: string, body: string) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/pulls/${encodeURIComponent(pull_number)}/comments/${encodeURIComponent(comment_id)}/replies`, { method: "POST", body, } ); }
- operations/pull.ts:30-36 (schema)Zod schema defining the input parameters for the create_pull_request_reply tool: owner, repo, pull_number, comment_id, and body.export const CreatePullRequestReplySchema = z.object({ owner: z.string(), repo: z.string(), pull_number: z.number(), comment_id: z.string(), body: z.string(), });
- index.ts:147-151 (registration)Tool registration in the MCP server's listTools response, specifying name, description, and input schema.{ name: "create_pull_request_reply", description: "Reply to a comment on a pull request", inputSchema: zodToJsonSchema(pull.CreatePullRequestReplySchema), },
- index.ts:405-411 (registration)Dispatch handler in the MCP server's callTool request handler that parses arguments, invokes the core handler, and formats the response.case "create_pull_request_reply": { const args = pull.CreatePullRequestReplySchema.parse(request.params.arguments); const result = await pull.createPullRequestReply(args.owner, args.repo, args.pull_number, args.comment_id, args.body); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }