Flagbearer is an MCP server published by dev.flagbearer, hosted at mcp.flagbearer.dev. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 11 tools, including list_organizations, list_applications, create_application, list_flags, create_flag.
Feature flags for coding agents: create flags, roll them out gradually and write the flag code.
Nothing else in the archive shares these values.
Inferred from the host name and headers: what a server runs on, not who runs it.
List the Flagbearer organizations you belong to. Start here to find an organization's ID. This connection only covers the organizations listed. If the project's application isn't in any of them, tell the user before writing flag code, and ask them to reconnect and approve the right organization.
No parameters.
{
"name": "list_organizations",
"title": "List organizations",
"description": "List the Flagbearer organizations you belong to. Start here to find an organization's ID. This connection only covers the organizations listed. If the project's application isn't in any of them, tell the user before writing flag code, and ask them to reconnect and approve the right organization.",
"inputSchema": {
"type": "object",
"properties": {}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"organizations"
],
"properties": {
"organizations": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"handle"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"handle": {
"type": "string"
}
}
}
}
}
},
"annotations": {
"readOnlyHint": true
}
}None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
List the applications in an organization. Flags belong to an application.
| Parameter | Type | Description |
|---|---|---|
| organizationId * | string |
{
"name": "list_applications",
"title": "List applications",
"description": "List the applications in an organization. Flags belong to an application.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"organizationId"
],
"properties": {
"organizationId": {
"type": "string",
"pattern": "^[1-9]\\d*$"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"applications"
],
"properties": {
"applications": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"name",
"slug"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
}
}
}
}
}
},
"annotations": {
"readOnlyHint": true
}
}Create an application in an organization, usually one per product or codebase, like Storefront. It comes with development, staging and production environments. Ask the user for the name if it isn't obvious from the project. Then create flags in it with create_flag, and a client key with create_client_key for browser and mobile code.
| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| organizationId * | string |
{
"name": "create_application",
"title": "Create an application",
"description": "Create an application in an organization, usually one per product or codebase, like Storefront. It comes with development, staging and production environments. Ask the user for the name if it isn't obvious from the project. Then create flags in it with create_flag, and a client key with create_client_key for browser and mobile code.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"organizationId",
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 100,
"minLength": 1
},
"organizationId": {
"type": "string",
"pattern": "^[1-9]\\d*$"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"application",
"environments"
],
"properties": {
"application": {
"type": "object",
"required": [
"id",
"name",
"slug"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
}
}
},
"environments": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}List an application's feature flags with whether each is on, and its rollout percent, in every environment.
| Parameter | Type | Description |
|---|---|---|
| applicationId * | string |
{
"name": "list_flags",
"title": "List flags",
"description": "List an application's feature flags with whether each is on, and its rollout percent, in every environment.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"applicationId"
],
"properties": {
"applicationId": {
"type": "string",
"pattern": "^[1-9]\\d*$"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"environments",
"flags"
],
"properties": {
"flags": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"key",
"name",
"description",
"environments"
],
"properties": {
"id": {
"type": "string"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"environments": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"required": [
"enabled",
"rolloutPercent"
],
"properties": {
"enabled": {
"type": "boolean"
},
"rolloutPercent": {
"type": "number"
}
}
}
}
}
}
},
"environments": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"annotations": {
"readOnlyHint": true
}
}Create a feature flag in an application. It starts off in every environment; use set_flag to turn it on. The key is what code checks, like new-checkout.
| Parameter | Type | Description |
|---|---|---|
| key * | string | |
| name * | string | |
| description * | any | |
| applicationId * | string |
{
"name": "create_flag",
"title": "Create a flag",
"description": "Create a feature flag in an application. It starts off in every environment; use set_flag to turn it on. The key is what code checks, like new-checkout.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"applicationId",
"name",
"key",
"description"
],
"properties": {
"key": {
"type": "string",
"pattern": "^[a-z0-9]+(?:[-_][a-z0-9]+)*$",
"maxLength": 100,
"minLength": 1
},
"name": {
"type": "string",
"maxLength": 100,
"minLength": 1
},
"description": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
]
},
"applicationId": {
"type": "string",
"pattern": "^[1-9]\\d*$"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"flag"
],
"properties": {
"flag": {
"type": "object",
"required": [
"id",
"key",
"name",
"description",
"environments"
],
"properties": {
"id": {
"type": "string"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"environments": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"required": [
"enabled",
"rolloutPercent"
],
"properties": {
"enabled": {
"type": "boolean"
},
"rolloutPercent": {
"type": "number"
}
}
}
}
}
}
}
}
}Turn a flag on or off in one environment, by flag key and environment key. When turning a flag on, rolloutPercent says who gets it: 100 for everyone, or a percentage of users. Ask the user whether it should be on for everyone. Without rolloutPercent it's 0, which turns it on only for the environment's testers. Changing production needs confirmProduction: true. Only send that after the user has confirmed the change.
| Parameter | Type | Description |
|---|---|---|
| enabled * | boolean | |
| flagKey * | string | |
| environment * | string | |
| applicationId * | string | |
| rolloutPercent | number | |
| confirmProduction | boolean |
{
"name": "set_flag",
"title": "Turn a flag on or off",
"description": "Turn a flag on or off in one environment, by flag key and environment key. When turning a flag on, rolloutPercent says who gets it: 100 for everyone, or a percentage of users. Ask the user whether it should be on for everyone. Without rolloutPercent it's 0, which turns it on only for the environment's testers. Changing production needs confirmProduction: true. Only send that after the user has confirmed the change.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"applicationId",
"flagKey",
"environment",
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
},
"flagKey": {
"type": "string",
"pattern": "^[a-z0-9]+(?:[-_][a-z0-9]+)*$",
"maxLength": 100,
"minLength": 1
},
"environment": {
"type": "string",
"pattern": "^[a-z0-9]+(?:[-_][a-z0-9]+)*$",
"maxLength": 100,
"minLength": 1
},
"applicationId": {
"type": "string",
"pattern": "^[1-9]\\d*$"
},
"rolloutPercent": {
"type": "number",
"maximum": 100,
"minimum": 0
},
"confirmProduction": {
"type": "boolean"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"flagKey",
"environment",
"enabled",
"rolloutPercent"
],
"properties": {
"enabled": {
"type": "boolean"
},
"flagKey": {
"type": "string"
},
"environment": {
"type": "string"
},
"rolloutPercent": {
"type": "number"
}
}
},
"annotations": {
"idempotentHint": true
}
}The text of a TypeScript file listing an application's flag keys, so a misspelled key is a type error and editors autocomplete keys. Write the returned text to the path exactly as it is, and commit it. Only for TypeScript projects using @flagbearer/web (React and browser apps), @flagbearer/node or @flagbearer/react-native. Call it when setting up flags in such a project, and again after creating a flag.
| Parameter | Type | Description |
|---|---|---|
| out | string | |
| sdks * | array | |
| applicationId * | string |
{
"name": "generate_flag_types",
"title": "Generate typed flag keys",
"description": "The text of a TypeScript file listing an application's flag keys, so a misspelled key is a type error and editors autocomplete keys. Write the returned text to the path exactly as it is, and commit it. Only for TypeScript projects using @flagbearer/web (React and browser apps), @flagbearer/node or @flagbearer/react-native. Call it when setting up flags in such a project, and again after creating a flag.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"applicationId",
"sdks"
],
"properties": {
"out": {
"type": "string",
"pattern": "^[^\\r\\n`]{1,200}$"
},
"sdks": {
"type": "array",
"items": {
"enum": [
"web",
"node",
"react-native"
],
"type": "string"
},
"minItems": 1
},
"applicationId": {
"type": "string",
"pattern": "^[1-9]\\d*$"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"path",
"contents",
"flags"
],
"properties": {
"path": {
"type": "string"
},
"flags": {
"type": "array",
"items": {
"type": "string"
}
},
"contents": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}What a user should have got for every flag in one environment, by email or user key, with the reason (off, tester or rollout and their bucket), what their SDK reported that UTC day (seen), and any changes that day that flipped their result. Use it when a bug report says a feature stopped working, or works for some users and not others. times is a list of ISO timestamps to show side by side, like before and after a report; leave it out for now. An email the SDK saw with several user keys gives one entry per key.
| Parameter | Type | Description |
|---|---|---|
| user * | string | |
| times | array | |
| environment * | string | |
| applicationId * | string |
{
"name": "get_user_flags",
"title": "Get a user's flags",
"description": "What a user should have got for every flag in one environment, by email or user key, with the reason (off, tester or rollout and their bucket), what their SDK reported that UTC day (seen), and any changes that day that flipped their result. Use it when a bug report says a feature stopped working, or works for some users and not others. times is a list of ISO timestamps to show side by side, like before and after a report; leave it out for now. An email the SDK saw with several user keys gives one entry per key.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"applicationId",
"environment",
"user"
],
"properties": {
"user": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"times": {
"type": "array",
"items": {
"type": "string",
"format": "date-time"
},
"maxItems": 10,
"minItems": 1
},
"environment": {
"type": "string",
"pattern": "^[a-z0-9]+(?:[-_][a-z0-9]+)*$",
"maxLength": 100,
"minLength": 1
},
"applicationId": {
"type": "string",
"pattern": "^[1-9]\\d*$"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"results"
],
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"at",
"subjects"
],
"properties": {
"at": {
"type": "string"
},
"subjects": {
"type": "array",
"items": {
"type": "object",
"required": [
"userKey",
"email",
"flags"
],
"properties": {
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"flags": {
"type": "array",
"items": {
"type": "object",
"required": [
"key",
"value",
"reason",
"bucketPercent",
"rolloutPercent",
"seen",
"switches"
],
"properties": {
"key": {
"type": "string"
},
"seen": {
"anyOf": [
{
"enum": [
"on",
"off",
"both"
],
"type": "string"
},
{
"type": "null"
}
]
},
"value": {
"type": "boolean"
},
"reason": {
"enum": [
"off",
"tester",
"rollout",
"fallback"
],
"type": "string"
},
"switches": {
"type": "array",
"items": {
"type": "object",
"required": [
"at",
"value",
"userLabel"
],
"properties": {
"at": {
"type": "string"
},
"value": {
"type": "boolean"
},
"userLabel": {
"type": "string"
}
}
}
},
"bucketPercent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"rolloutPercent": {
"type": "number"
}
}
}
},
"userKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
}
}
}
}
}
}
}
},
"annotations": {
"readOnlyHint": true
}
}The current Flagbearer SDK docs for a platform (react, react-native, ios, android, browser, node, python, go, java, dotnet, ruby, rust, cpp or php), plus one environment's SDK address and public client key. Call this before writing code that checks a flag, and follow it.
| Parameter | Type | Description |
|---|---|---|
| platform * | string | one of ["react","react-native","ios","android","browser","node","python","go","java","dotnet","ruby","rust","cpp","php"] |
| environment * | string | |
| applicationId * | string |
{
"name": "get_sdk_docs",
"title": "Get SDK docs",
"description": "The current Flagbearer SDK docs for a platform (react, react-native, ios, android, browser, node, python, go, java, dotnet, ruby, rust, cpp or php), plus one environment's SDK address and public client key. Call this before writing code that checks a flag, and follow it.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"applicationId",
"environment",
"platform"
],
"properties": {
"platform": {
"enum": [
"react",
"react-native",
"ios",
"android",
"browser",
"node",
"python",
"go",
"java",
"dotnet",
"ruby",
"rust",
"cpp",
"php"
],
"type": "string"
},
"environment": {
"type": "string",
"pattern": "^[a-z0-9]+(?:[-_][a-z0-9]+)*$",
"maxLength": 100,
"minLength": 1
},
"applicationId": {
"type": "string",
"pattern": "^[1-9]\\d*$"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Create a public client key for one environment, for browser and mobile SDKs (react, react-native, ios, android, browser). It's safe in app code. Each environment needs its own. Server SDKs need a secret server key instead, which only an admin can create in the Flagbearer dashboard.
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| environment * | string | |
| applicationId * | string |
{
"name": "create_client_key",
"title": "Create a client key",
"description": "Create a public client key for one environment, for browser and mobile SDKs (react, react-native, ios, android, browser). It's safe in app code. Each environment needs its own. Server SDKs need a secret server key instead, which only an admin can create in the Flagbearer dashboard.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"applicationId",
"environment"
],
"properties": {
"name": {
"type": "string",
"default": "Client key",
"maxLength": 100,
"minLength": 1
},
"environment": {
"type": "string",
"pattern": "^[a-z0-9]+(?:[-_][a-z0-9]+)*$",
"maxLength": 100,
"minLength": 1
},
"applicationId": {
"type": "string",
"pattern": "^[1-9]\\d*$"
}
}
},
"outputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"clientKey",
"environment"
],
"properties": {
"clientKey": {
"type": "string"
},
"environment": {
"type": "string"
}
}
}
}What looks wrong with how an application's SDKs are set up, per environment, from what they sent in the last day: flags the code checks that don't exist, wrong or leaked keys, old SDK versions, and environments nothing has connected to. Call this when flags aren't behaving as expected, and after adding flag code and running the app.
| Parameter | Type | Description |
|---|---|---|
| applicationId * | string |
{
"name": "check_sdk_setup",
"title": "Check SDK setup",
"description": "What looks wrong with how an application's SDKs are set up, per environment, from what they sent in the last day: flags the code checks that don't exist, wrong or leaked keys, old SDK versions, and environments nothing has connected to. Call this when flags aren't behaving as expected, and after adding flag code and running the app.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"applicationId"
],
"properties": {
"applicationId": {
"type": "string",
"pattern": "^[1-9]\\d*$"
}
}
},
"annotations": {
"readOnlyHint": true
}
}Flagbearer manages this project's feature flags. When the user asks to put something behind a flag, gate a feature or roll something out gradually, start here, even if the code already has a flag helper to copy. The work isn't done until the flag exists in Flagbearer: a key the code checks but nobody created is always off. Creating a flag is safe: it starts off in every environment, and production only changes through set_flag after the user confirms. If the project's application isn't in any organization list_organizations returns, tell the user before writing flag code. If the organization has no application for this project yet, ask the user what to call it and create it with create_application. Browser and mobile code needs a public client key: get_sdk_docs shows the environment's key, and create_client_key makes one if there's none. To put code behind a flag: create it with create_flag, turn it on with set_flag where the user wants it, then call get_sdk_docs for the platform the code runs on (react, react-native, ios, android, browser, node, python, go, java, dotnet, ruby, rust, cpp or php; java covers server-side Kotlin, and android covers Kotlin apps) and follow those docs when writing the code, including their rules for writing flag code: default to the existing behavior, check the flag once where the old and new behavior part ways, and leave the old path working. Before adding a Flagbearer client, search the code for an existing one and reuse it. Reusing it covers the code only: still create the flag. In TypeScript projects, generate_flag_types gives a file that type-checks flag keys: write it when setting up flags, and again after creating a flag. When a flag doesn't behave as expected, check_sdk_setup lists what looks wrong with an application's SDK setup.
Names, descriptions and schemas were written by the server and are shown as data.