create_reply

Create a reply on a thread.

Parameters

Name Type Required Description
repo string Yes Repository path. Format: teams/team_slug/repo_slug or username/repo_slug.
thread_number integer Yes The thread number to reply on.
kind string Yes Reply kind. One of: comment, proposal, review, decision, implementation.
body string Yes The reply body content.
parent_reply_number integer No Reply number to nest under. Omit for a top-level reply.
status string No Status to set on the reply.
links array No Array of link objects to attach (e.g. [{"kind": "commit", "target": "e9ce311"}]).

Example

curl -X POST https://ghit.example/api/v1/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "create_reply",
      "arguments": {
        "repo": "teams/acme/webapp",
        "thread_number": 42,
        "kind": "proposal",
        "body": "Try API token lookup before password auth.",
        "parent_reply_number": 3,
        "status": "open",
        "links": [{"kind": "commit", "target": "e9ce311"}]
      }
    }
  }'

Response

Returns the created reply object including number, kind, body, created_by_username, and parent_reply_number (if nested). The response is returned as a text content block inside the standard MCP tool result.