Skip to content

Commit 6589b45

Browse files
committed
coderabbit fixes
1 parent dd92721 commit 6589b45

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

docs/mcp-introduction.mdx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,14 +346,28 @@ Some flags apply only to the running MCP server, not to `install-mcp`. Add these
346346

347347
- `--readonly` — Read-only mode. Hides write tools (`deploy`, `trigger_task`, `cancel_run`) so the AI cannot make changes to your account.
348348

349-
For example, to enable read-only mode together with `--dev-only` and a project ref:
349+
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):
350350

351351
```json
352352
{
353-
"args": ["trigger.dev@latest", "mcp", "--readonly", "--dev-only", "--project-ref", "proj_abc123"]
353+
"mcpServers": {
354+
"trigger": {
355+
"command": "npx",
356+
"args": [
357+
"trigger.dev@latest",
358+
"mcp",
359+
"--readonly",
360+
"--dev-only",
361+
"--project-ref",
362+
"proj_abc123"
363+
]
364+
}
365+
}
354366
}
355367
```
356368

369+
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).
370+
357371
</Accordion>
358372

359373
## Getting Started

0 commit comments

Comments
 (0)