Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions docs/mcp-introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -341,20 +340,34 @@ 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:

- `--readonly` — Read-only mode. Hides write tools (`deploy`, `trigger_task`, `cancel_run`) so the AI cannot make changes to your account.
Comment thread
isshaddad marked this conversation as resolved.

To add these options to a manual config, append them to the `args` array:
For example, to enable read-only mode in Claude Code together with `--dev-only` and a project ref, edit `~/.claude.json` (user) or `.mcp.json` (project):

```json
{
"args": ["trigger.dev@latest", "mcp", "--dev-only", "--project-ref", "proj_abc123"]
"mcpServers": {
"trigger": {
"command": "npx",
"args": [
"trigger.dev@latest",
"mcp",
"--readonly",
"--dev-only",
"--project-ref",
"proj_abc123"
]
}
}
}
```
Comment thread
coderabbitai[bot] marked this conversation as resolved.

For other clients, use the config shape shown in the corresponding tab in [Client Configuration](#client-configuration) and append the same flags to that entry's `args` array (or to the `command` array, for opencode).

</Accordion>

## Getting Started
Expand Down
Loading