Flagsmith MCP by usefulapi
Read flags, segments and audit logs; switch flags on or off in Flagsmith.
사용해야 할까요
품질 및 안전성
발견 사항 (1)
- LOWflagsmith_set_feature_state_enabled에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"flagsmith": {
"url": "https://flagsmith.usefulapi.io/mcp"
}
}
}원격 엔드포인트
https://flagsmith.usefulapi.io/mcpstreamable-http할 수 있는 일
도구 목록
도구 (13)
🟢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/.
입력 스키마
{
"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/.
입력 스키마
{
"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}/.
입력 스키마
{
"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/.
입력 스키마
{
"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}/.
입력 스키마
{
"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/.
입력 스키마
{
"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}/.
입력 스키마
{
"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/.
입력 스키마
{
"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/.
입력 스키마
{
"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}/.
입력 스키마
{
"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/.
입력 스키마
{
"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/.
입력 스키마
{
"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}/.
입력 스키마
{
"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"
}커뮤니티
증거