Skip to content

andrewg-orca/launchdarkly-mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaunchDarkly MCP Server

MCP server for working with LaunchDarkly feature flags, written in Go.

✨ Features

  • 🚀 Get feature flag values for specific users
  • 📋 List all feature flags in the project
  • 🔍 Get information about flag variations
  • 🎯 Support for user attributes for targeting
  • ⚡ Fast integration with Kiro through MCP

🛠 Installation

Requirements

  • Go 1.23+ (updated for LaunchDarkly SDK v7 compatibility)
  • LaunchDarkly SDK Key
  • Internet access

Quick Setup

# 1. Navigate to project directory
cd launchdarkly-mcp-server

# 2. Install dependencies
make deps

# 3. Build the project
make build

# 4. Test (optional)
./test.sh

⚙️ Configuration

1. Get LaunchDarkly SDK Key

  1. Login to LaunchDarkly Dashboard
  2. Navigate to Settings → Projects
  3. Select your project
  4. Copy the Server-side SDK key

2. MCP Configuration

Add configuration to ~/.kiro/settings/mcp.json:

{
  "mcpServers": {
    "launchdarkly": {
      "command": "/full/path/to/launchdarkly-mcp-server/build/launchdarkly-mcp-server",
      "args": [],
      "env": {
        "LAUNCHDARKLY_SDK_KEY": "sdk-your-real-key-here"
      },
      "disabled": false,
      "autoApprove": ["get_feature_flag", "list_feature_flags", "get_flag_variations"]
    }
  }
}

3. Restart

Restart Kiro or reconnect MCP servers through the MCP Server view panel.

🔧 Available Tools

get_feature_flag

Gets the value of a feature flag for a specific user.

Parameters:

  • flag_key (string): The feature flag key
  • user_key (string): The user key
  • user_attributes (object, optional): User attributes

Example:

{
  "flag_key": "my-feature-flag",
  "user_key": "user123",
  "user_attributes": {
    "email": "user@example.com",
    "plan": "premium"
  }
}

list_feature_flags

Returns a list of all feature flags in the project.

get_flag_variations

Gets information about variations for a specific feature flag.

Parameters:

  • flag_key (string): The feature flag key

🚀 Usage in Kiro

After setup, you can use these commands:

Get feature flag "new-checkout-flow" for user "user-123"
Get feature flag "premium-features" for user "user-456" with attributes email="test@example.com" and plan="premium"
Show all available feature flags

🛠 Development

For development, you can run the server in debug mode:

go run main.go

📋 Requirements

  • Go 1.23+
  • LaunchDarkly SDK Key
  • Internet access to connect to LaunchDarkly

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published