@featureflip/mcp 0.3.0 → 0.5.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 +6 -3
- package/dist/cli.mjs +4 -7
- package/dist/generated/api-types.d.ts +508 -143
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/generated/output-schemas.json.d.ts +398 -1
- package/dist/index.mjs +1 -1
- package/dist/{org-DFNWkYpr.js → org-DBlVdsb4.js} +50 -53
- package/dist/tools/flag-environments.d.ts.map +1 -1
- package/dist/tools/targeting.d.ts.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ from AI coding assistants (Claude Code, Cursor, Copilot, Cline) and autonomous a
|
|
|
13
13
|
### Claude Code
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
claude mcp add featureflip -e FEATUREFLIP_TOKEN=ffp_your_token -- npx -y @featureflip/mcp
|
|
16
|
+
claude mcp add featureflip -e FEATUREFLIP_TOKEN=ffp_your_token -- npx -y @featureflip/mcp@latest
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
### Cursor / Cline / generic JSON config
|
|
@@ -23,13 +23,16 @@ claude mcp add featureflip -e FEATUREFLIP_TOKEN=ffp_your_token -- npx -y @featur
|
|
|
23
23
|
"mcpServers": {
|
|
24
24
|
"featureflip": {
|
|
25
25
|
"command": "npx",
|
|
26
|
-
"args": ["-y", "@featureflip/mcp"],
|
|
26
|
+
"args": ["-y", "@featureflip/mcp@latest"],
|
|
27
27
|
"env": { "FEATUREFLIP_TOKEN": "ffp_your_token" }
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
Keep the `@latest`. Without a version, npx reuses the copy it downloaded the first time and never
|
|
34
|
+
checks npm again, so tools added in later releases would never show up in your client.
|
|
35
|
+
|
|
33
36
|
## Configuration
|
|
34
37
|
|
|
35
38
|
| Env var | Required | Default | Purpose |
|
|
@@ -48,7 +51,7 @@ CRUD: `list_projects`, `list_environments`, `list_flags`, `get_flag`, `create_fl
|
|
|
48
51
|
|
|
49
52
|
Webhooks (Admin token required): `list_webhooks`, `list_webhook_deliveries`, `manage_webhook`, `deliver_webhook`
|
|
50
53
|
|
|
51
|
-
Workflows: `flag_status` (cross-environment view), `find_stale_flags` (cleanup candidates),
|
|
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),
|
|
52
55
|
`list_removal_candidates` (flags safe to remove, with the prerequisite dependents to remove first),
|
|
53
56
|
`wrap_feature` (create flag + get the SDK snippet for your language)
|
|
54
57
|
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, s as i, t as a } from "./org-
|
|
1
|
+
import { a as e, i as t, n, o as r, s as i, t as a } from "./org-DBlVdsb4.js";
|
|
2
2
|
import { serveStdio as o } from "@modelcontextprotocol/server/stdio";
|
|
3
|
-
|
|
3
|
+
// src/unconfigured.ts
|
|
4
4
|
var s = class extends i {
|
|
5
5
|
constructor() {
|
|
6
6
|
super({
|
|
@@ -18,8 +18,7 @@ function c() {
|
|
|
18
18
|
org: ""
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
//#region src/bootstrap.ts
|
|
21
|
+
// src/bootstrap.ts
|
|
23
22
|
async function l(e, t) {
|
|
24
23
|
let n = new i({
|
|
25
24
|
...e,
|
|
@@ -39,8 +38,7 @@ function u(e = process.env, n) {
|
|
|
39
38
|
let r = t(e);
|
|
40
39
|
return r ? l(r, n) : Promise.resolve(c());
|
|
41
40
|
}
|
|
42
|
-
|
|
43
|
-
//#region src/cli.ts
|
|
41
|
+
// src/cli.ts
|
|
44
42
|
async function d() {
|
|
45
43
|
let t = await u();
|
|
46
44
|
o(() => e(t));
|
|
@@ -48,4 +46,3 @@ async function d() {
|
|
|
48
46
|
d().catch((e) => {
|
|
49
47
|
console.error(`[featureflip-mcp] ${e instanceof Error ? e.message : String(e)}`), process.exit(1);
|
|
50
48
|
});
|
|
51
|
-
//#endregion
|