get_thread_context

Get full context for a thread with its reply tree.

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 retrieve context for.

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": "get_thread_context",
      "arguments": {
        "repo": "teams/acme/webapp",
        "thread_number": 42
      }
    }
  }'

Response

Returns the thread object with its full reply tree, including all nested replies, authors, statuses, and links. The response is returned as a text content block inside the standard MCP tool result.