update_thread

Update a repo thread from MCP, including status closeout fields such as done.

Parameters

Name Type Required Description
repo string Yes Repository path. Format: teams/team_slug/repo_slug or username/repo_slug.
thread_number integer Yes Thread number within the repo.
title string No Updated thread title.
body string No Updated thread body.
kind string No discussion, change, or task.
status string No open, draft, closed, or done.
priority string No now or later.
size string No small or large.

Example

curl -X POST https://pearing.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": "update_thread",
      "arguments": {
        "repo": "teams/acme/webapp",
        "thread_number": 42,
        "status": "done"
      }
    }
  }'

Response

Returns the updated thread object inside the standard MCP tool result.