@@ -310,7 +310,6 @@ The `install-mcp` command supports these options:
310310- ` -p, --project-ref <project ref> ` — Scope the MCP server to a specific project
311311- ` -t, --tag <package tag> ` — CLI package version to use (default: latest)
312312- ` --dev-only ` — Restrict to the dev environment only
313- - ` --readonly ` — Read-only mode. Hides write tools (` deploy ` , ` trigger_task ` , ` cancel_run ` ) so the AI cannot make changes to your account
314313- ` --yolo ` — Install into all supported clients automatically
315314- ` --scope <scope> ` — ` user ` , ` project ` , or ` local `
316315- ` --client <clients...> ` — Install into specific client(s)
@@ -341,17 +340,17 @@ Restrict to dev environment for a specific project:
341340npx trigger.dev@latest install-mcp --dev-only --project-ref proj_abc123
342341```
343342
344- Read -only mode (prevents AI from deploying or triggering tasks):
343+ ** Runtime -only flags **
345344
346- ``` bash
347- npx trigger.dev@latest install-mcp --readonly
348- ```
345+ Some flags apply only to the running MCP server, not to ` install-mcp ` . Add these to the ` args ` array of the generated MCP config after installation:
346+
347+ - ` --readonly ` — Read-only mode. Hides write tools ( ` deploy ` , ` trigger_task ` , ` cancel_run ` ) so the AI cannot make changes to your account.
349348
350- To add these options to a manual config, append them to the ` args ` array :
349+ For example, to enable read-only mode together with ` --dev-only ` and a project ref :
351350
352351``` json
353352{
354- "args" : [" trigger.dev@latest" , " mcp" , " --dev-only" , " --project-ref" , " proj_abc123" ]
353+ "args" : [" trigger.dev@latest" , " mcp" , " --readonly " , " -- dev-only" , " --project-ref" , " proj_abc123" ]
355354}
356355```
357356
0 commit comments