@charisol/plexo-mcp 1.1.2 → 1.1.3

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/formTools.js CHANGED
@@ -7,7 +7,7 @@ exports.handleFormToolCall = handleFormToolCall;
7
7
  exports.FORM_TOOL_DEFS = [
8
8
  {
9
9
  name: "get_form_settings",
10
- description: "Lists every form on a site and where its submissions go besides the Form Submissions inbox and the owner's email: a MailDrip list and/or a webhook (Zapier, Make, a CRM), plus a thank-you page and anything a migrated WordPress form did that Plexo doesn't repeat (note). Also says whether MailDrip is connected and lists the account's MailDrip lists (ids to use with set_form_destinations).",
10
+ description: "Lists every form on a site and where its submissions go besides the Form Submissions inbox and the owner's email: a MailDrip list and/or a webhook (Zapier, Make, a CRM), plus a thank-you page, the verification box (captcha: Cloudflare Turnstile, Google reCAPTCHA or hCaptcha) a form has — with active:false meaning its secret key still needs saving — and anything a migrated WordPress form did that Plexo doesn't repeat (note). Also says whether MailDrip is connected and lists the account's MailDrip lists (ids to use with set_form_destinations).",
11
11
  inputSchema: {
12
12
  type: "object",
13
13
  properties: { templateId: { type: "string", description: "The site's home page id (see list_landing_pages)." } },
@@ -16,7 +16,7 @@ exports.FORM_TOOL_DEFS = [
16
16
  },
17
17
  {
18
18
  name: "set_form_destinations",
19
- description: "Sets where one form sends each submission: maildripGroupId adds the person (email and name, taken from the submission) to that MailDrip list in the site's own MailDrip account — MailDrip must be connected first; webhookUrl POSTs every submission (https only). Pass null to stop one. Form names come from get_form_settings.",
19
+ description: "Sets where one form sends each submission: maildripGroupId adds the person (email and name, taken from the submission) to that MailDrip list in the site's own MailDrip account — MailDrip must be connected first; webhookUrl POSTs every submission (https only). Pass null to stop one. captcha adds or fixes the form's verification box: provider, the public siteKey and the secretKey from the owner's Cloudflare/Google/hCaptcha account (the secret is stored encrypted and never shown again; leave it out to keep the one already saved) — pass null to remove the box. A migrated WordPress form that had a box shows captcha.active false until its secret key is saved. Form names come from get_form_settings.",
20
20
  inputSchema: {
21
21
  type: "object",
22
22
  properties: {
@@ -24,6 +24,16 @@ exports.FORM_TOOL_DEFS = [
24
24
  formName: { type: "string", description: "Exactly as get_form_settings lists it." },
25
25
  maildripGroupId: { type: ["string", "null"], description: "A list id from get_form_settings' maildrip.groups, or null to stop adding to a list." },
26
26
  webhookUrl: { type: ["string", "null"], description: "https address to send each submission to, or null to stop." },
27
+ captcha: {
28
+ type: ["object", "null"],
29
+ description: "The form's verification box, or null to remove it.",
30
+ properties: {
31
+ provider: { type: "string", enum: ["turnstile", "recaptcha", "hcaptcha"] },
32
+ siteKey: { type: "string", description: "The public site key." },
33
+ secretKey: { type: "string", description: "The secret key. Omit to keep the one already saved." },
34
+ },
35
+ required: ["provider", "siteKey"],
36
+ },
27
37
  },
28
38
  required: ["templateId", "formName"],
29
39
  },
@@ -43,6 +53,6 @@ async function handleFormToolCall(name, args, client) {
43
53
  : "MailDrip isn't connected for this site — the owner connects it from the Form Submissions page (Connect MailDrip). Webhooks work without it.",
44
54
  };
45
55
  }
46
- const { form } = await client.setFormDestinations(templateId, { formName: String(args?.formName ?? ""), maildripGroupId: args?.maildripGroupId, webhookUrl: args?.webhookUrl });
56
+ const { form } = await client.setFormDestinations(templateId, { formName: String(args?.formName ?? ""), maildripGroupId: args?.maildripGroupId, webhookUrl: args?.webhookUrl, captcha: args?.captcha });
47
57
  return { form, next: "New submissions to this form go there from now on. Suggest the owner sends a test submission to check it arrives." };
48
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@charisol/plexo-mcp",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Model Context Protocol (MCP) Server for Plexo - Landing page generation, email templates, publishing, and analytics.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -848,7 +848,7 @@ export class PlexoClient {
848
848
  return this.apiFetch("GET", `/api/v1/templates/${encodeURIComponent(templateId)}/form-settings`, undefined, "Form settings");
849
849
  }
850
850
 
851
- async setFormDestinations(templateId: string, body: { formName: string; maildripGroupId?: string | null; webhookUrl?: string | null }): Promise<any> {
851
+ async setFormDestinations(templateId: string, body: { formName: string; maildripGroupId?: string | null; webhookUrl?: string | null; captcha?: { provider: string; siteKey: string; secretKey?: string } | null }): Promise<any> {
852
852
  return this.apiFetch("PUT", `/api/v1/templates/${encodeURIComponent(templateId)}/form-settings`, body, "Form settings");
853
853
  }
854
854
 
package/src/formTools.ts CHANGED
@@ -7,7 +7,7 @@ export const FORM_TOOL_DEFS = [
7
7
  {
8
8
  name: "get_form_settings",
9
9
  description:
10
- "Lists every form on a site and where its submissions go besides the Form Submissions inbox and the owner's email: a MailDrip list and/or a webhook (Zapier, Make, a CRM), plus a thank-you page and anything a migrated WordPress form did that Plexo doesn't repeat (note). Also says whether MailDrip is connected and lists the account's MailDrip lists (ids to use with set_form_destinations).",
10
+ "Lists every form on a site and where its submissions go besides the Form Submissions inbox and the owner's email: a MailDrip list and/or a webhook (Zapier, Make, a CRM), plus a thank-you page, the verification box (captcha: Cloudflare Turnstile, Google reCAPTCHA or hCaptcha) a form has — with active:false meaning its secret key still needs saving — and anything a migrated WordPress form did that Plexo doesn't repeat (note). Also says whether MailDrip is connected and lists the account's MailDrip lists (ids to use with set_form_destinations).",
11
11
  inputSchema: {
12
12
  type: "object",
13
13
  properties: { templateId: { type: "string", description: "The site's home page id (see list_landing_pages)." } },
@@ -17,7 +17,7 @@ export const FORM_TOOL_DEFS = [
17
17
  {
18
18
  name: "set_form_destinations",
19
19
  description:
20
- "Sets where one form sends each submission: maildripGroupId adds the person (email and name, taken from the submission) to that MailDrip list in the site's own MailDrip account — MailDrip must be connected first; webhookUrl POSTs every submission (https only). Pass null to stop one. Form names come from get_form_settings.",
20
+ "Sets where one form sends each submission: maildripGroupId adds the person (email and name, taken from the submission) to that MailDrip list in the site's own MailDrip account — MailDrip must be connected first; webhookUrl POSTs every submission (https only). Pass null to stop one. captcha adds or fixes the form's verification box: provider, the public siteKey and the secretKey from the owner's Cloudflare/Google/hCaptcha account (the secret is stored encrypted and never shown again; leave it out to keep the one already saved) — pass null to remove the box. A migrated WordPress form that had a box shows captcha.active false until its secret key is saved. Form names come from get_form_settings.",
21
21
  inputSchema: {
22
22
  type: "object",
23
23
  properties: {
@@ -25,6 +25,16 @@ export const FORM_TOOL_DEFS = [
25
25
  formName: { type: "string", description: "Exactly as get_form_settings lists it." },
26
26
  maildripGroupId: { type: ["string", "null"], description: "A list id from get_form_settings' maildrip.groups, or null to stop adding to a list." },
27
27
  webhookUrl: { type: ["string", "null"], description: "https address to send each submission to, or null to stop." },
28
+ captcha: {
29
+ type: ["object", "null"],
30
+ description: "The form's verification box, or null to remove it.",
31
+ properties: {
32
+ provider: { type: "string", enum: ["turnstile", "recaptcha", "hcaptcha"] },
33
+ siteKey: { type: "string", description: "The public site key." },
34
+ secretKey: { type: "string", description: "The secret key. Omit to keep the one already saved." },
35
+ },
36
+ required: ["provider", "siteKey"],
37
+ },
28
38
  },
29
39
  required: ["templateId", "formName"],
30
40
  },
@@ -45,6 +55,6 @@ export async function handleFormToolCall(name: string, args: any, client: PlexoC
45
55
  : "MailDrip isn't connected for this site — the owner connects it from the Form Submissions page (Connect MailDrip). Webhooks work without it.",
46
56
  };
47
57
  }
48
- const { form } = await client.setFormDestinations(templateId, { formName: String(args?.formName ?? ""), maildripGroupId: args?.maildripGroupId, webhookUrl: args?.webhookUrl });
58
+ const { form } = await client.setFormDestinations(templateId, { formName: String(args?.formName ?? ""), maildripGroupId: args?.maildripGroupId, webhookUrl: args?.webhookUrl, captcha: args?.captcha });
49
59
  return { form, next: "New submissions to this form go there from now on. Suggest the owner sends a test submission to check it arrives." };
50
60
  }