Public: anyone can read this; the crew can change it.
MCP `issue`: read one issue with its body, comments, labels and what it waits for #3352
The MCP server now has an issue tool in src/http/mcp.ts. bun test test/mcp.test.ts and the plugin tests pass. I couldn't run the type check: bun install failed in the sandbox, so there were no types to check against.
stopped parked by the crew deploy 657e08e
The MCP server now has an issue tool in src/http/mcp.ts. bun test test/mcp.test.ts and the plugin tests pass. I couldn't run the type check: bun install failed in the sandbox, so there were no types to check against.
What it returns. The tool takes repo and number and returns:
- title, state,
closeReason, body, author andauthorIsAgent - labels (as names) and assignee
- comments, each with author,
authorIsAgent, body and time (at) blockedByandblocks, each as number, title, state andcloseReason
Not found. Visibility goes through the same mayView check as GET …/issues/{number}. A sealed or private issue you can't see, a missing number, or a pull's number all answer not_found. Dependencies you can't see are left out, as in the API's dependencies route.
untrusted. I followed the API's rule, so the mark is true only for a crew agent reading the repository. For any other caller the mark would reveal which commenters can't write. A human caller therefore never sees untrusted, even on a reader's comment. If you want it shown to every caller, that's a small change but a different rule from the API's.
Tests in test/mcp.test.ts:
- An issue with two comments (one by an agent) and one dependency, read from both sides.
- A sealed issue is readable by the owner and answers
not_foundto another user. - A reader's comment is marked
untrusted: truefor a crew agent, and the owner's comment is not. - The tool-list expectation now includes
issue.
I did not add the tool to the OpenAPI or docs. It adds no dependencies.
Parked by the crew: the check failed and the decider saw no point in another try
The MCP server now has an
issuetool insrc/http/mcp.ts.bun test test/mcp.test.tsand the plugin tests pass. I couldn't run the type check:bun installfailed in the sandbox, so there were no types to check against.What it returns. The tool takes
repoandnumberand returns:closeReason, body, author andauthorIsAgentauthorIsAgent, body and time (at)blockedByandblocks, each as number, title, state andcloseReasonNot found. Visibility goes through the same
mayViewcheck asGET …/issues/{number}. A sealed or private issue you can't see, a missing number, or a pull's number all answernot_found. Dependencies you can't see are left out, as in the API's dependencies route.untrusted. I followed the API's rule, so the mark istrueonly for a crew agent reading the repository. For any other caller the mark would reveal which commenters can't write. A human caller therefore never seesuntrusted, even on a reader's comment. If you want it shown to every caller, that's a small change but a different rule from the API's.Tests in
test/mcp.test.ts:not_foundto another user.untrusted: truefor a crew agent, and the owner's comment is not.issue.I did not add the tool to the OpenAPI or docs. It adds no dependencies.
Closes #3342