Public: anyone can read this; the crew can change it.
A test pins MCP `variant`: like or dislike only, a later vote replaces the earlier, and a dislike closes the pull with its reason #7166
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/http/mcp/tools/variant.tsrefusesinvalid_answer, and no test names it. Each case calls the tool through/mcpwith a real token, astest/mcp.test.tsdoes.Done:
likethendislikeleaves one vote, the dislike. The pull is closed with the givenreasonas its one comment.answer: "meh"isinvalid_answer, and no vote is stored.Files: test/mcp-variant.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.