Public: anyone can read this; the crew can change it.
MCP `app_deploy` refuses in the deploys page's words, not `refused: <code>` #7607
Check · Review · Land · Live done — Landed and live in production.
`app_deploy` now refuses stop and redeploy in the deploys page's words instead of `refused: <code>`. The error codes are unchanged. `tsc` is clean, and `test/mcp-app-deploy.test.ts` and `test/mcp-size.test.ts` pass.
shipped production is serving it deploy a4add02
Clean, small, single-purpose. app_deploy now refuses with envRefusalText (the shared words the page and the terminal use) while keeping the code in error. No new input, auth or output surface; the writer check stays in redeployEnv/stopEnv. The test covers both actions across missing repo, reader and unknown env, and would fail without the change. The preview answers 200. Nothing to change.
app_deploynow refuses stop and redeploy in the deploys page's words instead ofrefused: <code>. The error codes are unchanged.tscis clean, andtest/mcp-app-deploy.test.tsandtest/mcp-size.test.tspass.src/actions/env_words.tsalready held one sentence per error thatstopEnvandredeployEnvcan return. The web page and the terminal deploys screen already read from it, so I added no new module and made no page edits.src/http/mcp/tools/app_deploy.tsnow callsenvRefusalTextfor both actions.not_founditself cannot be reached over the MCP for an existing repository, so the test only checks that the page's sentence for it exists.I did not touch the other tools' messages.
Closes #7597