Skip to main content
Glama

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
NameRequiredDescriptionDefault
bodyYes
comment_idYes
ownerYes
pull_numberYes
repoYes

Implementation Reference

  • 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, } ); }
  • 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) }], }; }

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