Flagsmith MCP by usefulapi

Read flags, segments and audit logs; switch flags on or off in Flagsmith.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
100%
Integridad del esquema
93%
Calidad de los nombres
78%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Hallazgos (1)

  • LOWTool 'flagsmith_set_feature_state_enabled' name length outside 3-30 rangeen flagsmith_set_feature_state_enabled

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~2,189Tokens (definiciones de herramientas)
~1.2 KBTamaño de respuesta típico
Impacto moderado en la atención (1.71% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "flagsmith": {
      "url": "https://flagsmith.usefulapi.io/mcp"
    }
  }
}

Puntos de conexión remotos

https://flagsmith.usefulapi.io/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (13)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢flagsmith_list_organisations(page)

List the organisations this API token can access. Good first call to find the organisation scope. Management API: GET /api/v1/organisations/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_projects

List the projects in the organisations this token can access, with their settings. Management API: GET /api/v1/projects/.

Esquema de entrada

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_get_project(project_id)

Get one project's settings (name, organisation, migration status, edge identities). Management API: GET /api/v1/projects/{id}/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    }
  },
  "required": [
    "project_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_environments(project_id, page)

List environments (for example Development, Staging, Production), optionally for one project. Each item has an api_key you pass to the other environment tools. Management API: GET /api/v1/environments/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "project_id": {
      "description": "Only environments of this project.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_get_environment(environment_api_key)

Get one environment's settings and its project, by environment API key. Management API: GET /api/v1/environments/{api_key}/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "environment_api_key": {
      "type": "string",
      "minLength": 1,
      "description": "Environment API key (the api_key field from flagsmith_list_environments)."
    }
  },
  "required": [
    "environment_api_key"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_features(project_id, search, page, page_size)

List the feature flags in one project, with type, default state and tags. Use search to filter by name. Management API: GET /api/v1/projects/{project_pk}/features/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    },
    "search": {
      "description": "Filter flags whose name matches this text.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "page_size": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "project_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_get_feature(project_id, feature_id)

Get one feature flag: its name, type, default value, description and tags. Management API: GET /api/v1/projects/{project_pk}/features/{id}/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    },
    "feature_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Feature id (from flagsmith_list_features)."
    }
  },
  "required": [
    "project_id",
    "feature_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_feature_states(environment_api_key, feature_id, feature_name, page)

List the on/off state and value of each flag in one environment. Filter by feature id or feature name. Each item has an id you can pass to flagsmith_set_feature_state_enabled. Management API: GET /api/v1/environments/{environment_api_key}/featurestates/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "environment_api_key": {
      "type": "string",
      "minLength": 1,
      "description": "Environment API key (the api_key field from flagsmith_list_environments)."
    },
    "feature_id": {
      "description": "Only the state of this feature id.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "feature_name": {
      "description": "Only the state of the feature with this exact name.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "environment_api_key"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_segments(project_id, q, page, page_size)

List the segments (rule-based groups of identities) in one project. Use q to search by name. Management API: GET /api/v1/projects/{project_pk}/segments/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    },
    "q": {
      "description": "Search text for segment names.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "page_size": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "project_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_get_segment(project_id, segment_id)

Get one segment with its rules, description and membership counts. Management API: GET /api/v1/projects/{project_pk}/segments/{id}/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    },
    "segment_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Segment id (from flagsmith_list_segments)."
    }
  },
  "required": [
    "project_id",
    "segment_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_identities(environment_api_key, page, page_size)

List the identities (end users or devices with traits) known to one environment. Management API: GET /api/v1/environments/{environment_api_key}/identities/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "environment_api_key": {
      "type": "string",
      "minLength": 1,
      "description": "Environment API key (the api_key field from flagsmith_list_environments)."
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "page_size": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "environment_api_key"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢flagsmith_list_audit_log(project_id, search, page, page_size)

List the audit log of one project: who changed which flag, segment or setting, and when. Management API: GET /api/v1/projects/{project_pk}/audit/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "project_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Project id (from flagsmith_list_projects)."
    },
    "search": {
      "description": "Search text in the audit log messages.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "page_size": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "project_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴flagsmith_set_feature_state_enabled(environment_api_key, feature_state_id, enabled)

Set a flag on or off in one environment. This changes live behaviour for every SDK that reads that environment, so check the environment first (use Production with care). Use the id from flagsmith_list_feature_states. Management API: PATCH /api/v1/environments/{environment_api_key}/featurestates/{id}/.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "environment_api_key": {
      "type": "string",
      "minLength": 1,
      "description": "Environment API key (the api_key field from flagsmith_list_environments)."
    },
    "feature_state_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Feature state id (from flagsmith_list_feature_states)."
    },
    "enabled": {
      "type": "boolean",
      "description": "true turns the flag on, false turns it off."
    }
  },
  "required": [
    "environment_api_key",
    "feature_state_id",
    "enabled"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada13 herramientas