Skip to content

Commit 565ad7c

Browse files
docs: update MCP docs to match available tools
1 parent d7c3e68 commit 565ad7c

File tree

1 file changed

+28
-101
lines changed

1 file changed

+28
-101
lines changed

docs/mcp.md

Lines changed: 28 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Both implementations share the same underlying tools, schemas, and utilities, en
1818
- [Available Tools](#available-tools)
1919
- [Feature Management](#feature-management)
2020
- [Variable Management](#variable-management)
21-
- [Environment Management](#environment-management)
2221
- [Project Management](#project-management)
22+
- [SDK Installation](#sdk-installation)
2323
- [Self-Targeting & Overrides](#self-targeting--overrides)
2424
- [Results & Analytics](#results--analytics)
2525
- [Error Handling](#error-handling)
@@ -218,66 +218,13 @@ Delete a feature flag from ALL environments.
218218

219219
- `key`: Feature key to delete
220220

221-
#### `fetch_feature_variations`
221+
#### `cleanup_feature`
222222

223-
Get all variations for a feature.
223+
Fetch the DevCycle Feature Cleanup prompt and return its markdown content to guide safe cleanup of a completed feature and its variables in codebases.
224224

225225
**Parameters:**
226226

227-
- `feature_key`: Feature key
228-
229-
#### `create_feature_variation`
230-
231-
Create a new variation within a feature.
232-
233-
**Parameters:**
234-
235-
- `feature_key`: Feature key
236-
- `key`: Unique variation key
237-
- `name`: Variation name
238-
- `variables`: Key-value map of variable keys to their values for this variation
239-
240-
#### `update_feature_variation`
241-
242-
Update an existing variation by key. ⚠️ WARNING: Updating a feature variation may affect production environments.
243-
244-
**Parameters:**
245-
246-
- `feature_key`: Feature key
247-
- `variation_key`: Variation to update
248-
- `key` (optional): New variation key
249-
- `name` (optional): New variation name
250-
- `variables` (optional): Updated variable values
251-
252-
#### `set_feature_targeting` ⚠️
253-
254-
Set targeting status (enable or disable) for a feature in an environment.
255-
256-
**Parameters:**
257-
258-
- `feature_key`: Feature key
259-
- `environment_key`: Environment key
260-
- `enabled`: Boolean - true to enable targeting, false to disable
261-
262-
#### `list_feature_targeting`
263-
264-
List targeting rules for a feature.
265-
266-
**Parameters:**
267-
268-
- `feature_key`: Feature key
269-
- `environment_key` (optional): Specific environment (returns all if omitted)
270-
271-
#### `update_feature_targeting` ⚠️
272-
273-
Update targeting rules for a feature in an environment.
274-
275-
**Parameters:**
276-
277-
- `feature_key`: Feature key
278-
- `environment_key`: Environment key
279-
- `status` (optional): Targeting status (`active`, `inactive`, `archived`)
280-
- `targets` (optional): Array of targeting rules with audience filters and distributions
227+
- `featureKey`: The feature key you plan to clean up (used for context in the prompt)
281228

282229
#### `get_feature_audit_log_history`
283230

@@ -347,45 +294,8 @@ Delete a variable from ALL environments.
347294

348295
- `key`: Variable key to delete
349296

350-
### Environment Management
351-
352-
#### `list_environments`
353-
354-
List all environments in the current project.
355-
356-
**Parameters:**
357-
358-
- `search` (optional): Search query (min 3 chars)
359-
- `page` (optional): Page number
360-
- `perPage` (optional): Items per page
361-
- `sortBy` (optional): Sort field
362-
- `sortOrder` (optional): Sort order (`asc`, `desc`)
363-
- `createdBy` (optional): Filter by creator user ID
364-
365-
#### `get_sdk_keys`
366-
367-
Get SDK keys for an environment.
368-
369-
**Parameters:**
370-
371-
- `environmentKey`: Environment key
372-
- `keyType` (optional): Specific key type (`mobile`, `server`, `client`)
373-
374297
### Project Management
375298

376-
#### `list_projects`
377-
378-
List all projects in the organization.
379-
380-
**Parameters:**
381-
382-
- `search` (optional): Search query
383-
- `page` (optional): Page number (default: 1)
384-
- `perPage` (optional): Items per page (default: 100, max: 1000)
385-
- `sortBy` (optional): Sort field (`createdAt`, `updatedAt`, `name`, `key`, `createdBy`)
386-
- `sortOrder` (optional): Sort order (`asc`, `desc`)
387-
- `createdBy` (optional): Filter by creator user ID
388-
389299
#### `get_current_project`
390300

391301
Get details of the currently selected project.
@@ -397,14 +307,31 @@ Returns the project defined by your current MCP context. If no project is select
397307

398308
**Parameters:** None
399309

400-
#### `select_project` (Local MCP only)
310+
#### `select_project`
311+
312+
Select a project to use for subsequent MCP operations.
401313

402-
Select a project to use for subsequent MCP operations. This tool is only available in the local MCP server, not the remote worker.
314+
- Local MCP: updates your local DevCycle configuration at `~/.config/devcycle/user.yml`
315+
- Remote MCP: stores the selection in the worker state for your session
403316

404317
**Parameters:**
405318

406319
- `projectKey` (optional): The project key to select. If not provided, lists available projects
407320

321+
### SDK Installation
322+
323+
#### `install_devcycle_sdk`
324+
325+
Fetch DevCycle SDK installation instructions for your platform/language and follow the steps to install. Returns the corresponding guide markdown.
326+
327+
**Parameters:**
328+
329+
- `guide`: Install guide identifier
330+
331+
Supported guide identifiers:
332+
333+
- `android`, `android-openfeature`, `angular`, `dotnet`, `dotnet-openfeature`, `flutter`, `go`, `go-openfeature`, `ios`, `ios-openfeature`, `java`, `java-openfeature`, `javascript`, `javascript-openfeature`, `nestjs`, `nestjs-openfeature`, `nextjs`, `nodejs`, `nodejs-openfeature`, `php`, `php-openfeature`, `python`, `python-openfeature`, `react`, `react-native`, `react-openfeature`, `roku`, `ruby`, `ruby-openfeature`
334+
408335
### Self-Targeting & Overrides
409336

410337
#### `get_self_targeting_identity`
@@ -530,10 +457,7 @@ Create a feature flag for the new checkout flow with variations for A/B testing
530457

531458
The AI assistant will use:
532459

533-
1. `create_feature` to create the feature with guided setup
534-
2. `create_variable` to associate a variable with the feature
535-
3. `create_feature_variation` to add variations
536-
4. `set_feature_targeting` to enable targeting in development
460+
1. `create_feature` to create the feature, providing variables, variations, and initial environment configurations in one step
537461

538462
### Viewing Analytics
539463

@@ -566,7 +490,6 @@ Show me the recent changes to the checkout_flow feature
566490
The AI assistant will use:
567491

568492
1. `get_feature_audit_log_history` to retrieve change history
569-
2. `list_feature_targeting` to show current configuration
570493

571494
## Best Practices
572495

@@ -620,6 +543,10 @@ Key differences:
620543
- **Transport**: Local uses stdio, Remote uses SSE/HTTP
621544
- **State Storage**: Local uses file system, Remote uses Durable Objects
622545

546+
### Notes on Environments
547+
548+
- Dedicated environment tools are not exposed via MCP. Use `get_current_project` or `select_project` to retrieve environments and SDK keys for the selected project.
549+
623550
## Development & Local Testing
624551

625552
For local development and testing of the MCP server:

0 commit comments

Comments
 (0)