Manage feature flags directly from your Xano backend. Retrieve flag configurations and toggle flags on or off to control feature rollouts without redeploying.
| Function | Description |
|---|---|
launchdarkly_get_flag |
Retrieves the configuration of a specific feature flag. |
launchdarkly_toggle_flag |
Enables or disables a feature flag. |
With the Xano MCP enabled in Claude Code, paste this into Claude:
Install the integration at https://github.com/xano-community/integration-launchdarkly-feature-flags into my Xano workspace.
Claude will clone the repo and push the functions to your workspace.
-
Install and authenticate the Xano CLI:
npm install -g @xano/cli xano auth
-
Clone and push this integration:
git clone https://github.com/xano-community/integration-launchdarkly-feature-flags.git cd integration-launchdarkly-feature-flags xano workspace:push . -w <your-workspace-id>
Replace
<your-workspace-id>with the ID fromxano workspace:list.
- Sign up or log in at https://launchdarkly.com.
- Go to Account Settings > Authorization and create a new API access token.
- Copy the token value.
- In your Xano workspace, go to Settings > Environment Variables and add LAUNCHDARKLY_API_KEY with the token value.
Environment variables used by this integration:
LAUNCHDARKLY_API_KEY
See .env.example for a template.
Call any function from another function, task, or API endpoint using function.run:
function.run "launchdarkly_get_flag" {
input = {
// See function signature for required parameters
}
} as $resultFetches the full configuration for a feature flag by its key, including its current status, variations, and targeting rules. Use this to check flag state before making decisions in your backend logic or to display flag details in an admin dashboard.
Toggles a feature flag on or off in a specified environment using a semantic patch update. Provide the flag key and the desired boolean state. Ideal for kill switches, gradual rollouts, or enabling features in response to backend events.
MIT — see LICENSE.