feat: Add Model Context Protocol (MCP) Server#487
Merged
jonathannorris merged 12 commits intomainfrom Aug 13, 2025
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
devcycle-mcp-server | 40f415d | Aug 12 2025, 09:02 PM |
There was a problem hiding this comment.
Pull Request Overview
This PR adds Model Context Protocol (MCP) server functionality to enable AI coding assistants like Cursor and Claude to interact directly with DevCycle's feature flag management system.
Key changes include:
- Local MCP Server implementation (
dvc-mcp) using CLI authentication - Remote MCP Server via Cloudflare Worker with OAuth authentication
- Comprehensive DevCycle API Tools for managing projects, features, variables, environments, and targeting
- Enhanced CLI Commands with MCP integration support
- Complete documentation and setup guides
Reviewed Changes
Copilot reviewed 48 out of 55 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
src/mcp/utils/headers.ts |
MCP-specific header management for API request tracking |
src/mcp/utils/errorHandling.ts |
Comprehensive error categorization and user-friendly suggestions |
src/mcp/utils/auth.ts |
Authentication abstraction supporting CLI tokens and environment variables |
src/mcp/utils/api.ts |
API client utilities with Zodios validation error handling |
src/mcp/types.ts |
Zod schemas for all MCP tool arguments and validation |
src/mcp/tools/*.ts |
Tool implementations for features, variables, environments, etc. |
src/mcp/server.ts |
Core MCP server implementation with tool registration |
src/mcp/index.ts |
Local MCP server entry point with CLI integration |
mcp-worker/* |
Cloudflare Worker implementation for remote MCP server |
package.json |
Updated dependencies and new dvc-mcp binary |
… common utilities
- Add project selection tool for local MCP (localProjectTools.ts) - Extract shared config management utility (configManager.ts) - Consolidate dashboard link generation (dashboardLinks.ts) - Update all MCP tools to use centralized dashboard links - Enhance DevCycleAuth with project persistence methods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add MCP Server for AI Coding Assistant Integration
This PR adds Model Context Protocol (MCP) server functionality to enable AI coding assistants like Cursor and Claude to interact directly with DevCycle's feature flag management system.
What's Added
dvc-mcp): Runs locally using CLI authentication or API keyshttps://mcp.devcycle.com)docs/mcp.md)Key Features
Technical Notes
This is a clean recreation of the original
feat-mcp-serverbranch (#467).Dependencies