Subchapter 45.1
references/mcp-config-templates.mdMarkdown3 KBView on GitHub
Per-agent JSON snippets for configuring the LaunchDarkly hosted MCP server. All configurations use OAuth — no API keys required.
Source: https://launchdarkly.com/docs/home/getting-started/mcp-hosted (opens in a new tab)
Config file: .cursor/mcp.json in the project root.
{
"mcpServers": {
"LaunchDarkly": {
"url": "https://mcp.launchdarkly.com/mcp/launchdarkly",
"headers": {}
}
}
}After adding the config: enable the server and complete OAuth in Cursor’s MCP UI. Use MCP UI links — Cursor (HTTPS doc + optional command: links); do not rely only on nested Settings menu paths.
Config file: .mcp.json in the project root, or ~/.claude.json for global config.
{
"mcpServers": {
"LaunchDarkly": {
"type": "http",
"url": "https://mcp.launchdarkly.com/mcp/launchdarkly"
}
}
}Authorization happens automatically via OAuth prompt on first MCP tool call.
Configured via the GitHub web UI, not a local config file.
{
"mcpServers": {
"LaunchDarkly": {
"url": "https://mcp.launchdarkly.com/mcp/launchdarkly",
"headers": {}
}
}
}Windsurf uses a similar MCP configuration format. Add to the agent’s MCP config:
{
"mcpServers": {
"LaunchDarkly": {
"url": "https://mcp.launchdarkly.com/mcp/launchdarkly"
}
}
}Consult Windsurf’s documentation for the exact config file location.
If the user has the old npx-based server configured, replace it:
Remove this:
{
"mcpServers": {
"LaunchDarkly": {
"command": "npx",
"args": [
"-y", "--package", "@launchdarkly/mcp-server",
"--", "mcp", "start",
"--api-key", "api-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
]
}
}
}Replace with the hosted config for the relevant agent (see sections above).
Also remove any LD_ACCESS_TOKEN or LAUNCHDARKLY_API_KEY environment variables that were used for the local server. The hosted server handles authentication via OAuth.
Both mcp/fm and mcp/aiconfigs are deprecated. All functionality is now in the unified server (mcp/launchdarkly).
If the user has either endpoint configured, ask before removing — see the edge case flow in SKILL.md. The user should confirm the migration.
Entries to remove (after user confirms):
{
"mcpServers": {
"LaunchDarkly Feature Management": {
"url": "https://mcp.launchdarkly.com/mcp/fm"
},
"LaunchDarkly AgentControl": {
"url": "https://mcp.launchdarkly.com/mcp/aiconfigs"
}
}
}Replace with the single unified server (see sections above).