Home / Fixes

GitHub MCP sub_issue_write: "404 Not Found" when adding a sub-issue

Error: failed to add sub-issue: POST https://api.github.com/repos/OWNER/REPO/issues/3/sub_issues: 404 Not Found

What causes it

sub_issue_write wants the sub-issue's numeric ID (for example 5925682839), not its #number. In our Oct 19, 2026 test, passing the child issue's number returned this bare 404, which reads like a permissions or missing-repo problem. Passing the id from the issue_write create response worked in about 1 s, and issue_read get_sub_issues listed the child right away.

How to fix it

  1. Pass the id field from the issue_write create response (or from issue_read with method get) as sub_issue_id.
  2. Keep issue_number as the parent's #number. Only sub_issue_id takes the ID.
  3. If you only know the child's #number, call issue_read method get first and read its id.

Where we hit it

Related fixes

All MCP fixes | Setup guides | Hit a different error? Request a test