@zellifyapp/mcp 0.2.0 → 0.3.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
@@ -8,22 +8,25 @@ An MCP server that gives Claude Code full context about your Zellify funnels —
8
8
 
9
9
  2. Register the MCP server, then run the init command to copy the skill + slash command into your project:
10
10
  ```bash
11
- claude mcp add zellify -- npx -y @zellifyapp/mcp@latest -y --api-key YOUR_API_KEY
11
+ claude mcp add zellify -e ZELLIFY_API_KEY=YOUR_API_KEY -- npx -y @zellifyapp/mcp@latest
12
12
  npx -y @zellifyapp/mcp@latest init
13
13
  ```
14
14
 
15
15
  The init command is pure Node, so it works on macOS, Linux, and Windows (PowerShell, cmd.exe, and Git Bash) without shell-specific tweaks. Re-run it any time to update the skill files to the latest version.
16
16
 
17
- 3. Run `/integrationcheck` in Claude Code. Claude will analyze your codebase, ask any clarifying questions, pick the easiest integration path, and produce a complete plan you can approve and execute in one session.
17
+ The API key is passed as an environment variable (`-e ZELLIFY_API_KEY=…`), not on the command line — argv-passed secrets leak to `ps`, shell history, and process inspection. If you previously installed with `--api-key`, rotate that key in the dashboard and re-add with the form above.
18
+
19
+ 3. Fully quit and reopen Claude Code (⌘Q on macOS — closing the window is not enough; the MCP server registration is loaded once at startup). Then run `/integrationcheck` in Claude Code. Claude will analyze your codebase, ask any clarifying questions, pick the easiest integration path, and produce a complete plan you can approve and execute in one session.
18
20
 
19
21
  ## Available tools
20
22
 
21
23
  | Tool | Description |
22
24
  |------|-------------|
25
+ | `validate_setup` | Verify the MCP is configured: env var present, API key valid, backend reachable, funnels published. Run this first if anything else fails. |
23
26
  | `list_funnels` | List all funnels with IDs, names, published status, and last updated date |
24
27
  | `get_funnel_schema` | Get a funnel's variables — names, question types, option ID-to-label mappings |
25
28
  | `get_example_payload` | Get a realistic example webhook payload and TypeScript interface for a funnel |
26
- | `get_integrations` | Check configured integrations, payment provider, and active campaign count |
29
+ | `get_integrations` | Check configured integrations, payment provider, registration webhook URL, and active campaign count |
27
30
  | `send_test_webhook` | Fire a signed test webhook to your configured endpoint and report the result |
28
31
 
29
32
  ## Example prompts
package/build/client.d.ts CHANGED
@@ -24,6 +24,10 @@ export interface ExamplePayloadResponse {
24
24
  export interface Integration {
25
25
  name: string;
26
26
  configured: boolean;
27
+ /** Present for `registration_webhook` only. The configured public webhook URL, or null if unset. */
28
+ url?: string | null;
29
+ /** Present for `registration_webhook` only. Whether the signing secret is configured. */
30
+ secretConfigured?: boolean;
27
31
  }
28
32
  export interface IntegrationsResponse {
29
33
  integrations: Integration[];
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAyCA,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE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B,CAAC,CAErE;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,mBAAmB,CAAC,CAI9B"}
package/build/index.js CHANGED
@@ -2,24 +2,67 @@
2
2
  import { readFileSync } from "node:fs";
3
3
  import { dirname, join } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
6
- import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
7
- import { registerListFunnels } from "./tools/list-funnels.js";
8
- import { registerGetFunnelSchema } from "./tools/get-funnel-schema.js";
9
- import { registerGetExamplePayload } from "./tools/get-example-payload.js";
10
- import { registerGetIntegrations } from "./tools/get-integrations.js";
11
- import { registerSendTestWebhook } from "./tools/send-test-webhook.js";
12
- import { registerIntegrationPlanPrompt } from "./prompts/integration-plan.js";
13
- if (process.argv[2] === "init") {
5
+ const args = process.argv.slice(2);
6
+ if (args.includes("--help") || args.includes("-h") || args[0] === "help") {
7
+ process.stdout.write(`zellify-mcp — Zellify MCP server for Claude Code
8
+
9
+ Usage:
10
+ zellify-mcp Run the MCP server (stdio transport)
11
+ zellify-mcp init Install the Zellify skill + /integrationcheck
12
+ slash command into ./.claude/ in the current
13
+ project. Re-run any time to update.
14
+ zellify-mcp --help Show this message.
15
+
16
+ Authentication:
17
+ The server reads ZELLIFY_API_KEY from its environment. With Claude Code:
18
+
19
+ claude mcp add zellify -e ZELLIFY_API_KEY=YOUR_KEY -- npx -y @zellifyapp/mcp@latest
20
+
21
+ Pass the key via -e (env), not on the command line — argv leaks to ps,
22
+ shell history, and process inspection.
23
+
24
+ Environment variables:
25
+ ZELLIFY_API_KEY Required. Generate at https://dash.zellify.app/dashboard/settings/developer
26
+ ZELLIFY_API_URL Optional. Defaults to https://standalone-api.zellify.app
27
+
28
+ Docs:
29
+ https://docs.zellify.app
30
+ `);
31
+ process.exit(0);
32
+ }
33
+ if (args[0] === "init") {
14
34
  const { run } = await import("./init.js");
15
35
  run();
16
36
  process.exit(0);
17
37
  }
38
+ // Backward compatibility: a previous version of the install docs used
39
+ // `--api-key VALUE` on the command line. The server reads from env, so the
40
+ // flag silently did nothing. Accept it now (set the env), warn loudly that
41
+ // it's insecure, and tell the user how to migrate.
42
+ const apiKeyFlagIdx = args.indexOf("--api-key");
43
+ if (apiKeyFlagIdx !== -1 && args[apiKeyFlagIdx + 1]) {
44
+ process.env.ZELLIFY_API_KEY = args[apiKeyFlagIdx + 1];
45
+ process.stderr.write("[zellify-mcp] WARNING: --api-key on the command line is insecure (leaks to ps, shell history, process inspection).\n" +
46
+ "[zellify-mcp] Rotate this key in the dashboard and re-add the MCP with -e ZELLIFY_API_KEY=…:\n" +
47
+ "[zellify-mcp] claude mcp remove zellify\n" +
48
+ "[zellify-mcp] claude mcp add zellify -e ZELLIFY_API_KEY=NEW_KEY -- npx -y @zellifyapp/mcp@latest\n");
49
+ }
50
+ // Imports below depend on env being read (client.ts captures ZELLIFY_API_KEY
51
+ // at module-eval time), so do them after the --api-key fallback above.
52
+ const { McpServer } = await import("@modelcontextprotocol/sdk/server/mcp.js");
53
+ const { StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio.js");
54
+ const { registerListFunnels } = await import("./tools/list-funnels.js");
55
+ const { registerGetFunnelSchema } = await import("./tools/get-funnel-schema.js");
56
+ const { registerGetExamplePayload } = await import("./tools/get-example-payload.js");
57
+ const { registerGetIntegrations } = await import("./tools/get-integrations.js");
58
+ const { registerSendTestWebhook } = await import("./tools/send-test-webhook.js");
59
+ const { registerValidateSetup } = await import("./tools/validate-setup.js");
60
+ const { registerIntegrationPlanPrompt } = await import("./prompts/integration-plan.js");
18
61
  const __dirname = dirname(fileURLToPath(import.meta.url));
19
62
  const referencesDir = join(__dirname, "..", "skill", "references");
20
63
  const server = new McpServer({
21
64
  name: "zellify",
22
- version: "0.1.0",
65
+ version: "0.3.0",
23
66
  }, {
24
67
  instructions: `Zellify MCP — integrate with Zellify web funnels.
25
68
 
@@ -66,6 +109,7 @@ for (const ref of referenceFiles) {
66
109
  });
67
110
  }
68
111
  // ── Tools ────────────────────────────────────────────────
112
+ registerValidateSetup(server);
69
113
  registerListFunnels(server);
70
114
  registerGetFunnelSchema(server);
71
115
  registerGetExamplePayload(server);
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAIA,wBAAgB,GAAG,IAAI,IAAI,CAqB1B"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAIA,wBAAgB,GAAG,IAAI,IAAI,CA8B1B"}
package/build/init.js CHANGED
@@ -17,5 +17,14 @@ export function run() {
17
17
  console.log("Installed Zellify skill at .claude/skills/zellify-integration/");
18
18
  console.log("Installed /integrationcheck slash command at .claude/commands/integrationcheck.md");
19
19
  console.log("");
20
- console.log("Restart Claude Code or wait for the skills file watcher to pick up the new files.");
20
+ console.log("Next:");
21
+ console.log(" 1. Register the MCP server (one-time, per project):");
22
+ console.log(" claude mcp add zellify -e ZELLIFY_API_KEY=YOUR_KEY -- npx -y @zellifyapp/mcp@latest");
23
+ console.log(" Get a key at https://dash.zellify.app/dashboard/settings/developer.");
24
+ console.log("");
25
+ console.log(" 2. Fully quit and reopen Claude Code (⌘Q on macOS — closing the");
26
+ console.log(" window is not enough; MCP server registrations are loaded once");
27
+ console.log(" at app start and do not hot-reload).");
28
+ console.log("");
29
+ console.log(" 3. In your project, run /integrationcheck.");
21
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get-integrations.d.ts","sourceRoot":"","sources":["../../src/tools/get-integrations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,QAiCxD"}
1
+ {"version":3,"file":"get-integrations.d.ts","sourceRoot":"","sources":["../../src/tools/get-integrations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAGzE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,QAuCxD"}
@@ -7,6 +7,10 @@ export function registerGetIntegrations(server) {
7
7
  lines.push("Configured integrations:");
8
8
  for (const i of data.integrations) {
9
9
  lines.push(` - ${i.name}`);
10
+ if (i.name === "registration_webhook") {
11
+ lines.push(` URL: ${i.url ?? "(not set)"}`);
12
+ lines.push(` Secret: ${i.secretConfigured ? "configured" : "missing"}`);
13
+ }
10
14
  }
11
15
  }
12
16
  else {
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ export declare function registerValidateSetup(server: McpServer): void;
3
+ //# sourceMappingURL=validate-setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate-setup.d.ts","sourceRoot":"","sources":["../../src/tools/validate-setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAMzE,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,QA2EtD"}
@@ -0,0 +1,58 @@
1
+ import { listFunnels } from "../client.js";
2
+ const API_URL = process.env.ZELLIFY_API_URL ?? "https://standalone-api.zellify.app";
3
+ const API_KEY_PRESENT = Boolean(process.env.ZELLIFY_API_KEY);
4
+ export function registerValidateSetup(server) {
5
+ server.tool("validate_setup", "Verify that the Zellify MCP is correctly configured: env var present, API key valid, backend reachable, and at least one published funnel exists. Run this first if anything else fails — it pinpoints whether the problem is auth, network, or empty org. Returns a checklist with PASS/FAIL for each check.", {}, async () => {
6
+ const lines = [];
7
+ lines.push(`API URL: ${API_URL}`);
8
+ lines.push(`ZELLIFY_API_KEY env var: ${API_KEY_PRESENT ? "PRESENT" : "MISSING"}`);
9
+ if (!API_KEY_PRESENT) {
10
+ lines.push("");
11
+ lines.push("✗ FAIL — ZELLIFY_API_KEY is not in the MCP server's environment.");
12
+ lines.push("");
13
+ lines.push("Re-add the MCP with the env var:");
14
+ lines.push(" claude mcp remove zellify");
15
+ lines.push(" claude mcp add zellify -e ZELLIFY_API_KEY=YOUR_KEY -- npx -y @zellifyapp/mcp@latest");
16
+ lines.push("Then fully quit Claude Code (⌘Q) and reopen — MCP config does not hot-reload.");
17
+ return { content: [{ type: "text", text: lines.join("\n") }] };
18
+ }
19
+ try {
20
+ const data = await listFunnels();
21
+ const total = data.funnels.length;
22
+ const published = data.funnels.filter((f) => f.published).length;
23
+ lines.push("✓ API key valid (auth check passed)");
24
+ lines.push(`✓ Backend reachable at ${API_URL}`);
25
+ lines.push(`Funnels in this org: ${total} total, ${published} published`);
26
+ if (total === 0) {
27
+ lines.push("");
28
+ lines.push("⚠ No funnels exist in this organization. Create one in the dashboard before integrating.");
29
+ }
30
+ else if (published === 0) {
31
+ lines.push("");
32
+ lines.push("⚠ No published funnels. Webhooks only fire from published funnels (preview mode disables them). Publish at least one before integrating.");
33
+ }
34
+ else {
35
+ lines.push("");
36
+ lines.push("✓ Setup looks good. Proceed with /integrationcheck or call list_funnels.");
37
+ }
38
+ }
39
+ catch (err) {
40
+ const message = err instanceof Error ? err.message : String(err);
41
+ lines.push("");
42
+ lines.push(`✗ FAIL — ${message}`);
43
+ lines.push("");
44
+ if (message.includes("401") || message.toLowerCase().includes("invalid api key")) {
45
+ lines.push("The API key was rejected. Generate a fresh one at:");
46
+ lines.push(" https://dash.zellify.app/dashboard/settings/developer");
47
+ lines.push("Then re-add the MCP with -e ZELLIFY_API_KEY=NEW_KEY and fully quit Claude Code.");
48
+ }
49
+ else if (message.includes("ENOTFOUND") || message.includes("ECONNREFUSED")) {
50
+ lines.push(`The MCP can't reach ${API_URL}. Check your network / VPN / proxy.`);
51
+ }
52
+ else {
53
+ lines.push("Unexpected error — likely a backend issue. Check status.zellify.app and try again.");
54
+ }
55
+ }
56
+ return { content: [{ type: "text", text: lines.join("\n") }] };
57
+ });
58
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zellifyapp/mcp",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "An MCP server that gives Claude Code full context about your Zellify funnels so it can build, test, and debug your webhook integration.",
5
5
  "type": "module",
6
6
  "bin": {
package/skill/SKILL.md CHANGED
@@ -23,9 +23,9 @@ Run these phases in order. Don't skip ahead. Each phase has an exit condition.
23
23
 
24
24
  Call in parallel:
25
25
  1. `list_funnels` — confirms the API key works, returns funnel IDs and published status.
26
- 2. `get_integrations` — returns the customer's payment provider, RevenueCat status, webhook configuration status, campaign count.
26
+ 2. `get_integrations` — returns the customer's payment provider, RevenueCat status, webhook configuration status (including the configured URL for `registration_webhook`), campaign count.
27
27
 
28
- If `list_funnels` fails with auth: stop. Tell the user to generate an API key at `https://dash.zellify.app/dashboard/settings/developer` and re-run. Don't proceed.
28
+ If `list_funnels` fails with auth, network error, or anything ambiguous: stop and run `validate_setup`. It pinpoints whether the problem is the env var not being set, an invalid key, the backend being unreachable, or no funnels existing — each with the exact remediation. Only ask the user to generate a new key (`https://dash.zellify.app/dashboard/settings/developer`) if `validate_setup` says the key was rejected. Otherwise the docs/install guide remediation is in its output.
29
29
 
30
30
  If no funnels are published yet: tell the user to publish at least one funnel before integrating, and stop. Integration without a published funnel is meaningless.
31
31
 
@@ -158,7 +158,7 @@ Now fetch the deep recipe. The skill's bundled references are summaries — the
158
158
  | Free Funnel with Deep Link | `https://docs2.zellify.app/developers/guides/free-funnel` |
159
159
  | Custom Registration Component | `https://docs2.zellify.app/developers/guides/custom-registration-component` |
160
160
 
161
- Use WebFetch to read the page. The site exposes a markdown view at `<url>/index.html.md` — prefer that for cleaner content. Also fetch the underlying concept pages on the first run:
161
+ Use WebFetch to read the page. Also fetch the underlying concept pages on the first run:
162
162
  - `https://docs2.zellify.app/developers/concepts/app-user-id`
163
163
  - `https://docs2.zellify.app/developers/concepts/deep-link-button`
164
164
  - `https://docs2.zellify.app/developers/concepts/checkout-metadata`
@@ -204,7 +204,7 @@ If approved, generate the files. Apply the universal rules below to every webhoo
204
204
 
205
205
  After writing code, run this checklist:
206
206
 
207
- 1. Call `get_integrations` again — confirm webhook is configured and points at the new endpoint.
207
+ 1. Call `get_integrations` again — confirm `registration_webhook` is configured and that its `url` field exactly matches the new endpoint you just deployed (don't accept "configured: true" as proof; the URL may still point at a stale deployment). If `url` is null or wrong, tell the user where to fix it: dashboard → Settings → Integrations → Registration Webhook.
208
208
  2. Call `send_test_webhook` against the funnel — must return 200 (or whatever the user's success code is).
209
209
  3. Walk through the `app_user_id` chain manually:
210
210
  - Webhook payload has `context.appUserId`? ✓