About Devcycle
Devcycle is the DevCycle MCP server, deployed as a hosted Cloudflare Worker, that lets assistants such as Claude manage DevCycle feature flags after OAuth sign-in. It suits teams who want to handle feature flags in natural language during development.
Key features
- 01OAuth sign-in with a consent screen
- 02Remote setup with no local installation
- 03Project selection kept in Durable Objects
- 04Tools for features, targeting, variables and analytics
Use cases
- 01Creating or updating feature flags from natural language
- 02Checking evaluation counts and audit logs for a feature
- 03Retrieving SDK keys for an environment
MCP support
This is a remote MCP server that offers both /sse and /mcp endpoints and exposes DevCycle feature management tools to MCP clients.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.devcycle.com/mcpclaude mcp add --transport http cli-devcyclehq https://mcp.devcycle.com/mcp{"mcpServers":{"cli-devcyclehq":{"type":"http","url":"https://mcp.devcycle.com/mcp"}}}Open in Cursor{"servers":{"cli-devcyclehq":{"type":"http","url":"https://mcp.devcycle.com/mcp"}}}Open in VS Code{"mcpServers":{"cli-devcyclehq":{"type":"http","url":"https://mcp.devcycle.com/mcp"}}}{"mcpServers":{"cli-devcyclehq":{"serverUrl":"https://mcp.devcycle.com/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://mcp.devcycle.com/mcphttps://mcp.devcycle.com/sseTools
Details
From the project READMEDevCycle MCP Cloudflare Worker
This package provides the DevCycle MCP (Model Context Protocol) server as a hosted Cloudflare Worker service. It enables AI assistants like Claude to manage DevCycle feature flags through OAuth authentication.
Key Features
- OAuth Authentication: Secure Auth0 integration with user consent flow
- Zero Installation: Configure once in AI assistant, no local setup required
- Auto-Updates: Always use the latest features without manual updates
- State Persistence: Durable Objects maintain session and project selection
Production: https://mcp.devcycle.com
Staging: https://devcycle-mcp-server-staging.devcycle.workers.dev
Architecture
- Base Class: Extends
McpAgentfrom theagentspackage for MCP protocol handling - Main Class:
DevCycleMCP- Manages tool registration and state - Authentication: OAuth 2.0 flow with Auth0 integration and consent screen
- Transport: Both SSE (
/sse) and standard HTTP (/mcp) endpoints for MCP protocol - API Client:
WorkerApiClient- OAuth-based API client with state management - State Management: Durable Objects for session and project selection persistence
- Tool Registration: Shared tools from CLI with Worker-specific adaptations
Production Configuration
The MCP Worker is deployed to Cloudflare Workers on the devcycle.com zone at mcp.devcycle.com.
Infrastructure
- Worker Name:
devcycle-mcp-server - Production URL:
https://mcp.devcycle.com - Zone:
devcycle.com - Route Pattern:
mcp.devcycle.com/*
Storage
- KV Namespace:
OAUTH_KV- Stores OAuth session data - Durable Objects:
DevCycleMCPclass - Maintains per-session state including project selection
Secrets (Configured in Cloudflare Dashboard)
AUTH0_CLIENT_ID: DevCycle's Auth0 application client IDAUTH0_CLIENT_SECRET: DevCycle's Auth0 application client secret
Local Development
Setup
# Install dependencies
yarn install
# Start development server (runs on http://localhost:8787)
yarn dev
Available Endpoints
/sse- MCP Server-Sent Events endpoint/mcp- Standard HTTP MCP endpoint/oauth/*- OAuth flow endpoints (authorize, callback, consent)/health- Health check endpoint
Testing with Claude Desktop
{
"mcpServers": {
"devcycle-local": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:8787/mcp"]
}
}
}
User Flow
- Configure AI assistant with endpoint
- Authenticate via OAuth on first connection
- Select project with
select_projecttool - Use DevCycle feature flag tools
Deployment
Production Deployment
The production worker is deployed via:
yarn deploy
This deploys to the devcycle-mcp-server worker with route mcp.devcycle.com/*.
Important: Production deployments should be done through the CI/CD pipeline, not manually.
Authentication
The Worker uses OAuth 2.0 with DevCycle's Auth0 tenant. On first connection:
- User sees DevCycle consent screen with requested permissions
- Authenticates via Auth0
- Worker receives OAuth tokens with JWT claims:
org_id: DevCycle organization IDproject_key: Default project (if configured)email: User emailname: Display name
- Access token is used for all DevCycle API calls
Available Tools
All DevCycle CLI MCP tools are available. See complete reference for detailed parameters.
Project: select_project, list_projects, get_current_project
Features: list_features, create_feature, update_feature, update_feature_status, delete_feature
Targeting: set_feature_targeting, list_feature_targeting, update_feature_targeting
Variables: list_variables, create_variable, update_variable, delete_variable
Environments: list_environments, get_sdk_keys
Self-Targeting: get_self_targeting_identity, update_self_targeting_identity, list_self_targeting_overrides, set_self_targeting_override, clear_feature_self_targeting_overrides
Analytics: get_feature_total_evaluations, get_project_total_evaluations, get_feature_audit_log_history
Events
When a user completes OAuth on the hosted MCP Worker, the worker emits a single Ably event for first-time installs.
- Channel:
${orgId}-mcp-install - Event name:
mcp-install
MCP Tool Token Counts
Measure how many AI tokens our MCP tool descriptions and schemas consume. Run the measurement script (from repo root):
yarn install &&
yarn measure:mcp-tokens
What it does:
- Uses
gpt-tokenizer(OpenAI-style) and@anthropic-ai/tokenizer(Anthropic) to count tokens in each tool'sdescriptionandinputSchema.
Current token totals:
{
"totals": {
"anthropic": 10428,
"openai": 10746
}
}
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.