Skip to content

Commit ca3e960

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 dd95e0a commit ca3e960

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/registry/toolsets/feature-flags.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,29 @@ export const featureFlagsToolset: ToolsetDefinition = {
5757
},
5858
},
5959
},
60+
{
61+
resourceType: "fme_feature_flag",
62+
displayName: "FME Feature Flag",
63+
description:
64+
"Feature flag via the Split.io API. List flags by workspace with pagination (offset/size, default 20, max 50). Does not require an environment.",
65+
toolset: "feature-flags",
66+
scope: "account",
67+
identifierFields: ["workspace_id", "feature_flag_name"],
68+
listFilterFields: ["offset"],
69+
operations: {
70+
list: {
71+
method: "GET",
72+
path: "/internal/api/v2/splits/ws/{wsId}",
73+
pathParams: { workspace_id: "wsId" },
74+
queryParams: {
75+
offset: "offset",
76+
size: "limit",
77+
},
78+
responseExtractor: passthrough,
79+
description: "List feature flags for a workspace with pagination (offset and size params, max 50)",
80+
},
81+
},
82+
},
6083
{
6184
resourceType: "feature_flag",
6285
displayName: "Feature Flag",

0 commit comments

Comments
 (0)