@featureflip/mcp 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,13 +45,15 @@ checks npm again, so tools added in later releases would never show up in your c
45
45
 
46
46
  CRUD: `list_projects`, `list_environments`, `list_flags`, `get_flag`, `create_flag`, `update_flag`,
47
47
  `delete_flag`, `archive_flag`, `restore_flag`, `set_flag_expiry`, `set_flag_owner`, `set_flag_permanent`,
48
- `toggle_flag`, `update_flag_environment_config`, `get_targeting`, `update_targeting`,
48
+ `toggle_flag`, `update_flag_environment_config`, `copy_flag_config`, `get_targeting`, `update_targeting`,
49
49
  `manage_targeting_rule`, `manage_variation`, `list_segments`, `get_segment`, `manage_segment`,
50
- `manage_project`, `set_default_flag_lifetime`, `manage_environment`, `list_sdk_keys`, `manage_sdk_key`
50
+ `manage_project`, `set_default_flag_lifetime`, `manage_environment`, `list_sdk_keys`, `manage_sdk_key`,
51
+ `list_flag_triggers`, `manage_flag_trigger`
51
52
 
52
53
  Webhooks (Admin token required): `list_webhooks`, `list_webhook_deliveries`, `manage_webhook`, `deliver_webhook`
53
54
 
54
- Workflows: `flag_status` (cross-environment view), `flag_evaluations` (what a flag served in one environment: evaluation counts by variation and rule), `find_stale_flags` (cleanup candidates),
55
+ Workflows: `flag_status` (cross-environment view), `flag_evaluations` (what a flag served in one environment: evaluation counts by variation and rule), `compare_environments` (which flags differ between two environments),
56
+ `find_stale_flags` (cleanup candidates),
55
57
  `list_removal_candidates` (flags safe to remove, with the prerequisite dependents to remove first),
56
58
  `wrap_feature` (create flag + get the SDK snippet for your language)
57
59
 
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, n, o as r, s as i, t as a } from "./org-CRuyqCqx.js";
1
+ import { a as e, i as t, n, o as r, s as i, t as a } from "./org-BDExAaDn.js";
2
2
  import { serveStdio as o } from "@modelcontextprotocol/server/stdio";
3
3
  // src/unconfigured.ts
4
4
  var s = class extends i {
package/dist/errors.d.ts CHANGED
@@ -7,6 +7,10 @@ export interface ToolResult {
7
7
  [key: string]: unknown;
8
8
  }
9
9
  export declare function okJson(data: unknown): ToolResult;
10
- export declare function errorResult(err: unknown): ToolResult;
10
+ export interface ErrorOptions {
11
+ /** Replaces the generic 412 advice (ifMatch / re-read) for tools whose precondition is not an ifMatch. */
12
+ preconditionFailedHint?: string;
13
+ }
14
+ export declare function errorResult(err: unknown, options?: ErrorOptions): ToolResult;
11
15
  export declare function run(fn: () => Promise<ToolResult>): Promise<ToolResult>;
12
16
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU,CAOhD;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,UAAU,CA+BpD;AAED,wBAAsB,GAAG,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAM5E"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,UAAU,CAOhD;AAED,MAAM,WAAW,YAAY;IAC3B,0GAA0G;IAC1G,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAE,YAAiB,GAAG,UAAU,CAgChF;AAED,wBAAsB,GAAG,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAM5E"}