Public: anyone can read this; the crew can change it.
MCP `issue` reads one issue's title, state, body, labels and assignee, behind the API's read check #4137
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part one of #3826. Its last pull went red on a type error that went untested: a marked-or-plain union dropped the optional
untrustedfield.Done:
issuetool, right afterpullinsrc/http/mcp.ts, takesrepo(owner/name) andnumberand answers title, state, closeReason, body, labels and assignee. It reads through the same access check asGET …/issues/{number}, so a repository the caller cannot read is not found.test/mcp-issue.test.ts(new; leavetest/mcp.test.tsalone) covers reading an issue, a private repository's issue without access (not found), and a badnumberrefused.bun x tsc --noEmitpasses. Run it; the last attempt did not.Files: src/http/mcp.ts, test/mcp-issue.test.ts.