docs(mcp): clarify --readonly is a runtime flag, not an install-mcp option

This commit is contained in:
isshaddad
2026-04-28 09:15:02 -04:00
parent c69e939c34
commit dd92721b9d
+6 -7
View File
@@ -310,7 +310,6 @@ The `install-mcp` command supports these options:
- `-p, --project-ref <project ref>` — Scope the MCP server to a specific project
- `-t, --tag <package tag>` — CLI package version to use (default: latest)
- `--dev-only` — Restrict to the dev environment only
- `--readonly` — Read-only mode. Hides write tools (`deploy`, `trigger_task`, `cancel_run`) so the AI cannot make changes to your account
- `--yolo` — Install into all supported clients automatically
- `--scope <scope>` — `user`, `project`, or `local`
- `--client <clients...>` — Install into specific client(s)
@@ -341,17 +340,17 @@ Restrict to dev environment for a specific project:
npx trigger.dev@latest install-mcp --dev-only --project-ref proj_abc123
```
Read-only mode (prevents AI from deploying or triggering tasks):
**Runtime-only flags**
```bash
npx trigger.dev@latest install-mcp --readonly
```
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:
To add these options to a manual config, append them to the `args` array:
- `--readonly` — Read-only mode. Hides write tools (`deploy`, `trigger_task`, `cancel_run`) so the AI cannot make changes to your account.
For example, to enable read-only mode together with `--dev-only` and a project ref:
```json
{
"args": ["trigger.dev@latest", "mcp", "--dev-only", "--project-ref", "proj_abc123"]
"args": ["trigger.dev@latest", "mcp", "--readonly", "--dev-only", "--project-ref", "proj_abc123"]
}
```