@featureflip/mcp 0.1.2 → 0.1.4

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/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, n, r, t as i } from "./org-BURaaUzS.js";
1
+ import { a as e, i as t, n, r, t as i } from "./org-DsA8PUrd.js";
2
2
  import { serveStdio as a } from "@modelcontextprotocol/server/stdio";
3
3
  //#region src/cli.ts
4
4
  async function o() {
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "./org-BURaaUzS.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./org-DsA8PUrd.js";
2
2
  export { t as ApiError, e as FeatureflipApi, r as PKG_VERSION, i as createServer, n as loadConfig, a as resolveOrg };
@@ -4,7 +4,8 @@ import * as t from "zod/v4";
4
4
  //#region src/version.ts
5
5
  var n = {
6
6
  name: "@featureflip/mcp",
7
- version: "0.1.2",
7
+ version: "0.1.4",
8
+ mcpName: "io.github.canopy-labs/featureflip",
8
9
  description: "MCP server for managing Featureflip feature flags from AI agents and editors",
9
10
  license: "Apache-2.0",
10
11
  repository: {
@@ -34,11 +35,11 @@ var n = {
34
35
  },
35
36
  devDependencies: {
36
37
  "@modelcontextprotocol/client": "2.0.0",
37
- "@types/node": "^26.1.2",
38
+ "@types/node": "^26.2.0",
38
39
  typescript: "^7.0.2",
39
- vite: "^8.2.0",
40
+ vite: "^8.2.2",
40
41
  "vite-plugin-dts": "^5.0.3",
41
- vitest: "^4.1.10"
42
+ vitest: "^4.1.11"
42
43
  },
43
44
  engines: { node: ">=20.19.0" }
44
45
  }.version, r = class extends Error {
@@ -230,7 +231,7 @@ function m(e, n) {
230
231
  })).optional(),
231
232
  idempotency_key: t.string().optional().describe("Idempotency-Key header for safe retries")
232
233
  }),
233
- annotations: {}
234
+ annotations: { destructiveHint: !1 }
234
235
  }, async ({ project: e, idempotency_key: t, ...i }) => c(async () => o(await n.api.request("POST", r(e), {
235
236
  body: i,
236
237
  idempotencyKey: t
@@ -245,7 +246,7 @@ function m(e, n) {
245
246
  tags: t.array(t.string()).optional(),
246
247
  clientSideVisible: t.boolean().optional()
247
248
  }),
248
- annotations: {}
249
+ annotations: { destructiveHint: !0 }
249
250
  }, async ({ project: e, flag: t, ...a }) => c(async () => (await n.api.request("PUT", `${r(e)}/${i(t)}`, { body: a }), o({
250
251
  project: e,
251
252
  flag: t,
@@ -276,7 +277,7 @@ function m(e, n) {
276
277
  project: t.string(),
277
278
  flag: t.string()
278
279
  }),
279
- annotations: {}
280
+ annotations: { destructiveHint: !1 }
280
281
  }, async ({ project: e, flag: t }) => c(async () => (await n.api.request("POST", `${r(e)}/${i(t)}/restore`), o({
281
282
  flag: t,
282
283
  archived: !1
@@ -620,7 +621,7 @@ $enabled = $client->boolVariation('${t}', ['user_id' => $userId], false);
620
621
  if ($enabled) {
621
622
  // new code path
622
623
  }`,
623
- notes: "Uses a SERVER-side SDK key (Featureflip dashboard → environment → SDK keys). Requires PSR-16 cache and PSR-18 HTTP implementations."
624
+ notes: E + " Requires PSR-16 cache and PSR-18 HTTP implementations."
624
625
  };
625
626
  case "ruby": return {
626
627
  install: "gem \"featureflip\"",
@@ -663,7 +664,7 @@ function k(e, n) {
663
664
  language: t.enum(C).describe("SDK language of the codebase being edited"),
664
665
  idempotency_key: t.string().optional()
665
666
  }),
666
- annotations: {}
667
+ annotations: { destructiveHint: !1 }
667
668
  }, async ({ project: e, key: t, name: r, description: a, tags: s, language: l, idempotency_key: u }) => c(async () => {
668
669
  let c = await n.api.request("POST", `/api/v1/orgs/${i(n.org)}/projects/${i(e)}/flags`, {
669
670
  body: {
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@featureflip/mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
+ "mcpName": "io.github.canopy-labs/featureflip",
4
5
  "description": "MCP server for managing Featureflip feature flags from AI agents and editors",
5
6
  "license": "Apache-2.0",
6
7
  "repository": {
@@ -39,11 +40,11 @@
39
40
  },
40
41
  "devDependencies": {
41
42
  "@modelcontextprotocol/client": "2.0.0",
42
- "@types/node": "^26.1.2",
43
+ "@types/node": "^26.2.0",
43
44
  "typescript": "^7.0.2",
44
- "vite": "^8.2.0",
45
+ "vite": "^8.2.2",
45
46
  "vite-plugin-dts": "^5.0.3",
46
- "vitest": "^4.1.10"
47
+ "vitest": "^4.1.11"
47
48
  },
48
49
  "engines": {
49
50
  "node": ">=20.19.0"