Flagsmith MCP by usefulapi

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

使うべきか

品質と安全性

A
説明の品質
100%
スキーマの完全性
93%
命名の品質
78%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(1)

  • LOWTool 'flagsmith_set_feature_state_enabled' name length outside 3-30 rangeflagsmith_set_feature_state_enabled 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~2,189トークン数(ツール定義)
~1.2 KB一般的なレスポンスサイズ
注意への影響は中程度(128k コンテキストの 1.71%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `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"
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 13 件