@@ -27,23 +27,17 @@ npx trigger.dev@latest install-mcp
27
27
```
28
28
29
29
This command will guide you through:
30
+
30
31
1 . Selecting which MCP clients to configure
31
32
2 . Choosing installation scope (user, project, or local)
32
33
3 . Automatically configuring the selected clients
33
34
34
- ### Manual Installation
35
-
36
- If you prefer manual installation or your client isn't automatically supported, you can configure it manually using:
37
-
38
- ``` bash
39
- npx trigger.dev@latest mcp
40
- ```
41
-
42
35
## Command Line Options
43
36
44
37
The ` install-mcp ` command supports the following options:
45
38
46
39
### Core Options
40
+
47
41
- ` -p, --project-ref <project ref> ` - Scope the MCP server to a specific Trigger.dev project by providing its project ref
48
42
- ` -t, --tag <package tag> ` - The version of the trigger.dev CLI package to use for the MCP server (default: latest or v4-beta)
49
43
- ` --dev-only ` - Restrict the MCP server to the dev environment only
@@ -52,23 +46,27 @@ The `install-mcp` command supports the following options:
52
46
- ` --client <clients...> ` - Choose specific client(s) to install into
53
47
54
48
### Configuration Options
49
+
55
50
- ` --log-file <log file> ` - Configure the MCP server to write logs to a file
56
51
- ` -a, --api-url <value> ` - Configure a custom Trigger.dev API URL
57
52
- ` -l, --log-level <level> ` - Set CLI log level (debug, info, log, warn, error, none)
58
53
59
54
### Examples
60
55
61
56
Install for all supported clients:
57
+
62
58
``` bash
63
59
npx trigger.dev@latest install-mcp --yolo
64
60
```
65
61
66
62
Install for specific clients:
63
+
67
64
``` bash
68
65
npx trigger.dev@latest install-mcp --client claude-code cursor --scope user
69
66
```
70
67
71
68
Install with development environment restriction:
69
+
72
70
``` bash
73
71
npx trigger.dev@latest install-mcp --dev-only --project-ref proj_abc123
74
72
```
@@ -77,19 +75,19 @@ npx trigger.dev@latest install-mcp --dev-only --project-ref proj_abc123
77
75
78
76
The Trigger.dev MCP Server supports the following clients:
79
77
80
- | Client | Configuration File | Documentation |
81
- | --------| -------------------| ---------------|
82
- | ** Claude Code** | ` ~/.claude.json ` or ` ./.mcp.json ` | [ Claude Code MCP Docs] ( https://docs.anthropic.com/en/docs/claude-code/mcp ) |
83
- | ** Cursor** | ` ~/.cursor/mcp.json ` or ` ./.cursor/mcp.json ` | [ Cursor MCP Docs] ( https://docs.cursor.com/features/mcp ) |
84
- | ** VSCode** | ` ~/Library/Application Support/Code/User/mcp.json ` or ` ./.vscode/mcp.json ` | [ VSCode MCP Docs] ( https://code.visualstudio.com/docs/copilot/chat/mcp-servers ) |
85
- | ** Zed** | ` ~/.config/zed/settings.json ` | [ Zed Context Servers Docs] ( https://zed.dev/docs/context-servers ) |
86
- | ** Windsurf** | ` ~/.codeium/windsurf/mcp_config.json ` | [ Windsurf MCP Docs] ( https://docs.codeium.com/windsurf/mcp ) |
87
- | ** Gemini CLI** | ` ~/.gemini/settings.json ` or ` ./.gemini/settings.json ` | [ Gemini CLI MCP Tutorial] ( https://medium.com/@joe.njenga/gemini-cli-mcp-tutorial-setup-commands-practical-use-step-by-step-example-b57f55db5f4a ) |
88
- | ** Charm Crush** | ` ~/.config/crush/crush.json ` or ` ./crush.json ` | [ Charm MCP Docs] ( https://github.com/charmbracelet/mcp ) |
89
- | ** Cline** | ` ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json ` | [ Cline MCP Docs] ( https://github.com/saoudrizwan/claude-dev#mcp ) |
90
- | ** OpenAI Codex CLI** | ` ~/.codex/config.toml ` | See OpenAI Codex CLI documentation for MCP configuration |
91
- | ** Sourcegraph AMP** | ` ~/.config/amp/settings.json ` | [ Sourcegraph AMP MCP Docs] ( https://docs.sourcegraph.com/amp/mcp ) |
92
- | ** opencode** | ` ~/.config/opencode/opencode.json ` or ` ./opencode.json ` | [ opencode MCP Docs] ( https://opencode.ai/docs/mcp-servers/ ) |
78
+ | Client | Configuration File | Documentation |
79
+ | -------------------- | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
80
+ | ** Claude Code** | ` ~/.claude.json ` or ` ./.mcp.json ` | [ Claude Code MCP Docs] ( https://docs.anthropic.com/en/docs/claude-code/mcp ) |
81
+ | ** Cursor** | ` ~/.cursor/mcp.json ` or ` ./.cursor/mcp.json ` | [ Cursor MCP Docs] ( https://docs.cursor.com/features/mcp ) |
82
+ | ** VSCode** | ` ~/Library/Application Support/Code/User/mcp.json ` or ` ./.vscode/mcp.json ` | [ VSCode MCP Docs] ( https://code.visualstudio.com/docs/copilot/chat/mcp-servers ) |
83
+ | ** Zed** | ` ~/.config/zed/settings.json ` | [ Zed Context Servers Docs] ( https://zed.dev/docs/context-servers ) |
84
+ | ** Windsurf** | ` ~/.codeium/windsurf/mcp_config.json ` | [ Windsurf MCP Docs] ( https://docs.codeium.com/windsurf/mcp ) |
85
+ | ** Gemini CLI** | ` ~/.gemini/settings.json ` or ` ./.gemini/settings.json ` | [ Gemini CLI MCP Tutorial] ( https://medium.com/@joe.njenga/gemini-cli-mcp-tutorial-setup-commands-practical-use-step-by-step-example-b57f55db5f4a ) |
86
+ | ** Charm Crush** | ` ~/.config/crush/crush.json ` or ` ./crush.json ` | [ Charm MCP Docs] ( https://github.com/charmbracelet/mcp ) |
87
+ | ** Cline** | ` ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json ` | [ Cline MCP Docs] ( https://github.com/saoudrizwan/claude-dev#mcp ) |
88
+ | ** OpenAI Codex CLI** | ` ~/.codex/config.toml ` | See OpenAI Codex CLI documentation for MCP configuration |
89
+ | ** Sourcegraph AMP** | ` ~/.config/amp/settings.json ` | [ Sourcegraph AMP MCP Docs] ( https://docs.sourcegraph.com/amp/mcp ) |
90
+ | ** opencode** | ` ~/.config/opencode/opencode.json ` or ` ./opencode.json ` | [ opencode MCP Docs] ( https://opencode.ai/docs/mcp-servers/ ) |
93
91
94
92
## Manual Configuration
95
93
@@ -102,6 +100,7 @@ If your client isn't directly supported by the installer, you can configure it m
102
100
** Arguments:** ` ["trigger.dev@latest", "mcp"] `
103
101
104
102
### Example JSON Configuration
103
+
105
104
``` json
106
105
{
107
106
"mcpServers" : {
@@ -114,13 +113,15 @@ If your client isn't directly supported by the installer, you can configure it m
114
113
```
115
114
116
115
### Example TOML Configuration (for Codex CLI)
116
+
117
117
``` toml
118
118
[mcp_servers .trigger ]
119
119
command = " npx"
120
120
args = [" trigger.dev@latest" , " mcp" ]
121
121
```
122
122
123
123
### Additional Options
124
+
124
125
You can add these optional arguments to customize the server behavior:
125
126
126
127
- ` --log-file <path> ` - Log to a specific file
@@ -131,6 +132,7 @@ You can add these optional arguments to customize the server behavior:
131
132
## Environment-Specific Configuration
132
133
133
134
### Development Only
135
+
134
136
To restrict the MCP server to only work with the development environment:
135
137
136
138
``` json
@@ -145,6 +147,7 @@ To restrict the MCP server to only work with the development environment:
145
147
```
146
148
147
149
### Project-Scoped
150
+
148
151
To scope the server to a specific project:
149
152
150
153
``` json
@@ -175,6 +178,4 @@ Once installed, you can start using the MCP server by asking your AI assistant q
175
178
176
179
## Next Steps
177
180
178
- - [ Explore available MCP tools] ( /docs/mcp-tools )
179
- - [ Trigger.dev Documentation] ( https://trigger.dev/docs )
180
- - [ Join our Discord] ( https://trigger.dev/discord ) for support
181
+ - [ Explore available MCP tools] ( /mcp-tools )
0 commit comments