Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
GB_USER | Yes | Your name. Used when creating a feature flag. | |
GB_API_KEY | Yes | A GrowthBook API key. | |
GB_API_URL | No | Your GrowthBook API URL. | https://api.growthbook.io |
GB_APP_ORIGIN | No | Your GrowthBook app URL. | https://app.growthbook.io |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
get_environments | Fetches all environments from the GrowthBook API. GrowthBook comes with one environment by default (production), but you can add as many as you need. Feature flags can be enabled and disabled on a per-environment basis. You can also set the default feature state for any new environment. Additionally, you can scope environments to only be available in specific projects, allowing for further control and segmentation over feature delivery. |
get_projects | Fetches all projects from the GrowthBook API |
get_sdk_connections | Get all SDK connections, which are how GrowthBook connects to an app. Importantly, users need the key, which is a public client key that allows the app to fetch features and experiments the API |
create_sdk_connection | Create an SDK connection for a user. Returns an SDK clientKey that can be used to fetch features and experiments. |
create_feature_flag | Create, add, or wrap an element with a feature flag. |
get_feature_flags | Fetches all feature flags from the GrowthBook API. Flags are returned in the order they were created, from oldest to newest. |
get_single_feature_flag | Fetches a specific feature flag from the GrowthBook API |
get_stale_safe_rollouts | Fetches all complete safe rollouts (rolled-back or released) from the GrowthBook API |
generate_flag_types | Generate types for feature flags |
get_experiments | Fetches all experiments from the GrowthBook API |
create_force_rule | Create a new force rule on an existing feature. If the existing feature isn't apparent, create a new feature using create_feature_flag first. A force rule sets a feature to a specific value for a specific environment based on a condition. For A/B tests and experiments, use create_experiment instead. |
get_experiment | Gets a single experiment from GrowthBook |
get_attributes | Get all attributes |
search_growthbook_docs | Search the GrowthBook docs on how to use a feature |