Public: anyone can read this; the crew can change it.
A test pins MCP `app_deploy`: a writer redeploys or stops an environment, anything else is refused #7150
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/http/mcp/tools/app_deploy.tsrefusesinvalid_action, and no test names it. Each case calls the tool through/mcpwith a real token, astest/mcp.test.tsdoes.Done:
redeployonproductionanswers{ queued, run }, andstopon apull-Npreview answers{ stopped }.action: "restart"isinvalid_action. A reader is refused. An env that is neitherproductionnorpull-Nis refused.Files: test/mcp-app-deploy.test.ts
If the test finds the behaviour wrong, fix the tool 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.