You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DevCycle CLI includes an MCP (Model Context Protocol) server that enables AI coding assistants like Cursor and Claude to manage feature flags directly. This allows you to create, update, and manage feature flags without leaving your coding environment.
151
153
152
-
## Quick Setup
154
+
## Installation
155
+
156
+
### Option 1: Global Installation (Recommended)
157
+
```bash
158
+
npm install -g @devcycle/cli
159
+
# This installs both 'dvc' CLI and 'dvc-mcp' server
160
+
```
161
+
162
+
### Option 2: Project-Specific Installation
163
+
```bash
164
+
npm install --save-dev @devcycle/cli
165
+
# Access via: npx dvc-mcp
166
+
```
167
+
168
+
### Verify Installation
169
+
```bash
170
+
dvc-mcp --version # Should display the DevCycle CLI version
171
+
dvc --version # Verify CLI is also installed
172
+
```
173
+
174
+
## Configuration
153
175
154
176
### For Cursor
155
177
Add to `.cursor/mcp_settings.json`:
@@ -165,6 +187,10 @@ Add to `.cursor/mcp_settings.json`:
@@ -175,9 +201,48 @@ Add to your Claude configuration file:
175
201
}
176
202
```
177
203
178
-
The MCP server uses the same authentication as the CLI. Simply run `dvc login sso` first, then your AI assistant can manage feature flags on your behalf.
204
+
### For Project-Specific Installation
205
+
If you installed locally, update the command path:
206
+
```json
207
+
{
208
+
"mcpServers": {
209
+
"devcycle": {
210
+
"command": "npx",
211
+
"args": ["dvc-mcp"]
212
+
}
213
+
}
214
+
}
215
+
```
216
+
217
+
## Authentication
218
+
219
+
The MCP server uses the same authentication as the CLI:
220
+
221
+
1. **Authenticate with DevCycle:**
222
+
```bash
223
+
dvc login sso
224
+
```
225
+
226
+
2. **Select your project:**
227
+
```bash
228
+
dvc projects select
229
+
```
230
+
231
+
3. **Verify setup:**
232
+
```bash
233
+
dvc status
234
+
```
235
+
236
+
Your AI assistant can now manage feature flags on your behalf.
237
+
238
+
## Troubleshooting
239
+
240
+
- **Command not found:** Ensure the CLI is installed globally or use `npx dvc-mcp`
241
+
- **Authentication errors:** Run `dvc login sso` to re-authenticate
242
+
- **No project selected:** Run `dvc projects select` to choose a project
243
+
- **Permission issues:** On Unix systems, you may need to restart your terminal after global installation
179
244
180
-
For detailed documentation, see [docs/mcp.md](docs/mcp.md).
245
+
For detailed documentation and advanced usage, see [docs/mcp.md](docs/mcp.md).
181
246
182
247
# Repo Configuration
183
248
The following commands can only be run from the root of a configured repository
0 commit comments