ld_get_flag
Pack: launchdarkly · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ld_get_flag for the schema, then POST the same URL with its arguments for the data.
Return one LaunchDarkly feature flag with variations, maintainer, experiment links, and optional environment targeting or rollout configuration. Answers exactly how a feature is configured for release or experimentation.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
project_key | string | yes | |
flag_key | string | yes | |
environment_key | string | no |
Example call
Arguments
{
"_apiKey": "your-launchdarkly-reader-token",
"project_key": "web-app",
"flag_key": "new-checkout",
"environment_key": "production"
}
curl
curl -X POST https://gateway.pipeworx.io/launchdarkly/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ld_get_flag","arguments":{"_apiKey":"your-launchdarkly-reader-token","project_key":"web-app","flag_key":"new-checkout","environment_key":"production"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ld_get_flag', {
"_apiKey": "your-launchdarkly-reader-token",
"project_key": "web-app",
"flag_key": "new-checkout",
"environment_key": "production"
});
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the launchdarkly pack
{
"mcpServers": {
"launchdarkly": {
"url": "https://gateway.pipeworx.io/launchdarkly/mcp"
}
}
}
See Getting Started for client-specific install steps.