npx skills add ...
npx skills add launchdarkly/agent-skills --skill mcp-configure
Configure the LaunchDarkly hosted MCP server during onboarding. Use when the parent LaunchDarkly onboarding skill reaches the MCP offer, after the first flag works. Supports Cursor, Claude Code, Windsurf, GitHub Copilot, and other MCP-compatible agents. OAuth authentication; no API keys for the hosted server.
This repo is now called launchdarkly/ai-tooling. Both names install the same content, but the install count here only covers this one.
npx skills add launchdarkly/agent-skills --skill mcp-configure
Configures the LaunchDarkly hosted MCP server so flag management skills and onboarding can use MCP tools. Uses OAuth for authentication — no API keys needed for the hosted server.
This skill is nested under LaunchDarkly onboarding; the parent skill hands off here once the first flag works.
https://app.launchdarkly.com/signup?source=agent)LaunchDarkly provides a unified hosted MCP server for all functionality:
| Server | URL | Purpose |
|---|---|---|
| LaunchDarkly (unified) | https://mcp.launchdarkly.com/mcp/launchdarkly | Feature flags and AgentControl |
The legacy mcp/fm and mcp/aiconfigs URLs are deprecated — migrate any existing usage to the unified server (see Edge Cases).
For onboarding, the unified server is all that's needed.
If the parent onboarding skill already identified the agent, use that context. Otherwise infer from agent-specific directories, config files, and the tools available to you at runtime. Do not ask the user — pick the strongest match.
The fastest path is the quick install link. Present it to the user:
LaunchDarkly MCP: https://mcp.launchdarkly.com/mcp/launchdarkly/install
Important: tell the user what to expect after clicking the link. The install link may open in the browser, but the authorization or "add server" prompt typically appears back in the coding environment (the editor or host app where the agent runs), not in the browser. Immediately after presenting the link, include guidance like:
If the quick install link doesn't work (agent doesn't support it, or user prefers manual setup), proceed to Step 3.
Locate the MCP config file for the detected agent and add the hosted server entry. See MCP Config Templates for the exact JSON per agent.
| Agent | Config file location |
|---|---|
| Cursor | .cursor/mcp.json (project) or global Cursor settings |
| Claude Code | .mcp.json (project) or ~/.claude.json (global) |
| GitHub Copilot | Repo Settings on GitHub.com → Copilot → Cloud agent → MCP (see MCP UI links) |
| Windsurf | Agent-specific MCP config |
Add the unified LaunchDarkly server for onboarding. This single server handles feature flags and AgentControl.
After writing the config, some agents need extra steps. Do not send users through long manual menu paths only—use MCP UI links (HTTPS docs + command: shortcuts for VS Code / Cursor).
Cursor:
command: link when clickable).VS Code (when applicable):
mcp.json / Settings links; trust or start the server if prompted.Claude Code:
GitHub Copilot:
Restart is no longer required for Cursor or Claude Code after enabling an MCP server. Probe for tools immediately after the user confirms they've enabled and authorized the server.
Tell the user to enable and authorize the server. In Cursor: toggle on the LaunchDarkly server in MCP settings and click Connect. In Claude Code: the OAuth prompt appears on first tool call. Do not tell them to restart yet.
Probe immediately. After the user confirms the server is enabled, call a lightweight MCP tool (e.g. list-feature-flags with the user's project key). Do not ask the user whether MCP is working — just try it.
3a. Auth failure path. The MCP server is reachable but OAuth is incomplete or expired — restarting the editor won't help.
3b. Server-not-found path. The editor likely hasn't loaded the new MCP config yet.
On resume after restart: The parent onboarding skill detects live state, so no log file is needed. When the next turn starts:
If the failure looks like a config issue (wrong file path, server not enabled), mention the likely cause so the user can fix it on their own time — but do not block progress.
mcp/launchdarkly) is present and working, skip configuration. If the deprecated mcp/fm or mcp/aiconfigs is present, see below.mcp/aiconfigs or mcp/fm server: These URLs are deprecated. Do not auto-migrate. Use a blocking question:If yes: remove the deprecated entry, ensure the unified mcp/launchdarkly server is present (do not duplicate if it's already there), and continue.
If no: leave the config untouched and continue with onboarding — the deprecated server may still work for now.
User has the old npx-based local server: Migrate them to the hosted server. Remove the old npx @launchdarkly/mcp-server entry and any LD_ACCESS_TOKEN env vars. Replace with the hosted server config.
Agent not in known list: Provide the generic pattern: the user needs to add an MCP server entry pointing to https://mcp.launchdarkly.com/mcp/launchdarkly using whatever format their agent expects.
User opts out of MCP during onboarding: Document that choice and continue; do not block SDK work.
mcp/aiconfigs — always ask via the blocking question.command: links to open MCP settings (Cursor, VS Code, Claude Code, Windsurf, GitHub)