Skip to content

Commit f470392

Browse files
feat: add fme_feature_flag list with pagination via Split.io API
Adds fme_feature_flag resource type with list operation using GET /internal/api/v2/splits/ws/{wsId}. Supports offset and limit query params (default 20, max 50 per Split.io docs). Parity with harness/mcp-server#34. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 639f88d commit f470392

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/registry/toolsets/feature-flags.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,23 @@ export const featureFlagsToolset: ToolsetDefinition = {
6666
resourceType: "fme_feature_flag",
6767
displayName: "FME Feature Flag",
6868
description:
69-
"Feature flag basic metadata (name, description, traffic type, tags, rollout status) via the Split.io API. Does not require an environment — use feature_flag get for environment-specific definitions.",
69+
"Feature flag via the Split.io API. List flags by workspace with pagination (offset/size, default 20, max 50), or get a single flag's metadata. Does not require an environment.",
7070
toolset: "feature-flags",
7171
scope: "account",
7272
identifierFields: ["workspace_id", "feature_flag_name"],
73+
listFilterFields: ["offset"],
7374
operations: {
75+
list: {
76+
method: "GET",
77+
path: "/internal/api/v2/splits/ws/{wsId}",
78+
pathParams: { workspace_id: "wsId" },
79+
queryParams: {
80+
offset: "offset",
81+
size: "limit",
82+
},
83+
responseExtractor: passthrough,
84+
description: "List feature flags for a workspace with pagination (offset and size params, max 50)",
85+
},
7486
get: {
7587
method: "GET",
7688
path: "/internal/api/v2/splits/ws/{wsId}/{featureFlagName}",

0 commit comments

Comments
 (0)