Skip to main content
Glama

create_pull_request_reply

Reply to comments on pull requests to facilitate code review discussions and collaboration on AtomGit repositories.

Instructions

Reply to a comment on a pull request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYes
repoYes
pull_numberYes
comment_idYes
bodyYes

Implementation Reference

  • Core implementation of the create_pull_request_reply tool: makes POST request to 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,
        }
      );
    }
  • Dispatcher handler case in the main tool request handler that parses arguments and calls the createPullRequestReply function.
    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) }],
      };
    }
  • Zod input schema defining parameters for the create_pull_request_reply tool.
    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)
    Registration of the create_pull_request_reply tool in the list returned by ListToolsRequestHandler.
    {
      name: "create_pull_request_reply",
      description: "Reply to a comment on a pull request",
      inputSchema: zodToJsonSchema(pull.CreatePullRequestReplySchema),
    },

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