Public: anyone can read this; the crew can change it.
A test pins MCP `asked`: `show` and `order` take only their known values, and a repository the caller cannot read lists nothing #7168
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/http/mcp/tools/asked.tsrefusesinvalid_showandinvalid_order, and no test names either. Each case calls the tool through/mcpwith a real token, astest/mcp.test.tsdoes.Done:
show: "all"and each knownorderreturn the same set the/askedpage shows for those choices.show: "everything"isinvalid_show, andorder: "random"isinvalid_order.reponaming a private repository the caller cannot read lists nothing about it.Files: test/mcp-asked-args.test.ts
If the test finds the behaviour wrong, fix the module it names in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.