@sentientui/mcp 0.12.0 → 0.13.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.
@@ -730,7 +730,7 @@ function registerGoalTools(server, client) {
730
730
  "get_goal_funnel",
731
731
  {
732
732
  title: "Goal funnel",
733
- description: "Get goal hit counts, unique-session conversion rates, and per-variant breakdown.",
733
+ description: "Get goal hit counts, unique-session conversion rates, and per-variant breakdown. This is a flat per-goal list \u2014 for multi-step funnel drop-off, use get_funnel_report.",
734
734
  inputSchema: { projectId: projectIdSchema },
735
735
  _meta: uiMeta("goal-funnel"),
736
736
  outputSchema: {
@@ -865,8 +865,137 @@ function registerGoalTools(server, client) {
865
865
  );
866
866
  }
867
867
 
868
- // src/tools/guardrails.ts
868
+ // src/tools/funnels.ts
869
869
  import { z as z7 } from "zod";
870
+ var funnelIdSchema = z7.string().describe('Funnel slug (from list_funnels), e.g. "checkout"');
871
+ function registerFunnelTools(server, client) {
872
+ server.registerTool(
873
+ "list_funnels",
874
+ {
875
+ title: "List funnels",
876
+ description: `List the project's multi-step funnels \u2014 ordered goal steps plus the components serving them. Use get_funnel_report for a funnel's drop-off numbers. Reference a funnelId verbatim from code: <Adaptive funnel="<funnelId>">.`,
877
+ inputSchema: { projectId: projectIdSchema },
878
+ outputSchema: {
879
+ funnels: z7.array(
880
+ z7.object({
881
+ funnelId: z7.string().describe("Stable slug \u2014 use this exact string in code and in get_funnel_report"),
882
+ displayName: z7.string(),
883
+ status: z7.string().describe("draft | active | archived"),
884
+ windowDays: z7.number().describe("Conversion window in days"),
885
+ source: z7.string().describe("user | chat | editor | sdk"),
886
+ steps: z7.array(
887
+ z7.object({
888
+ stepIndex: z7.number(),
889
+ goalId: z7.string(),
890
+ weight: z7.number().nullable().describe("Manual optimizer credit for reaching this step (null = automatic end-weighted)")
891
+ })
892
+ ).describe("Ordered steps"),
893
+ components: z7.array(z7.object({ componentId: z7.string(), stepIndex: z7.number().nullable() })).describe("Components serving this funnel (stepIndex null = whole funnel)")
894
+ })
895
+ ).describe("Defined funnels (empty if none)")
896
+ },
897
+ annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
898
+ },
899
+ withApiErrorGuidance(async ({ projectId }) => {
900
+ var _a;
901
+ const id = encodeURIComponent(projectId);
902
+ const data = await client.get(`/projects/${id}/funnels`);
903
+ const structuredContent = {
904
+ funnels: ((_a = data.funnels) != null ? _a : []).map((f) => ({
905
+ funnelId: f.funnel_id,
906
+ displayName: f.display_name,
907
+ status: f.status,
908
+ windowDays: f.window_days,
909
+ source: f.source,
910
+ // NUMERIC arrives serialized as a string; coerce.
911
+ steps: f.steps.map((s) => ({
912
+ stepIndex: s.step_index,
913
+ goalId: s.goal_id,
914
+ weight: s.weight == null ? null : Number(s.weight)
915
+ })),
916
+ components: f.components.map((c) => {
917
+ var _a2;
918
+ return { componentId: c.component_id, stepIndex: (_a2 = c.step_index) != null ? _a2 : null };
919
+ })
920
+ }))
921
+ };
922
+ if (structuredContent.funnels.length === 0) {
923
+ return {
924
+ content: [{
925
+ type: "text",
926
+ text: "No funnels defined yet. Build one in the dashboard (Goals \u2192 Funnels tab) or via the goal chat \u2014 a funnel is 2-12 ordered goal steps, e.g. add_to_cart \u2192 checkout \u2192 purchase."
927
+ }],
928
+ structuredContent
929
+ };
930
+ }
931
+ const lines = structuredContent.funnels.map(
932
+ (f) => `${f.funnelId} (${f.status}) \u2014 ${f.displayName}: ${f.steps.map((s) => s.goalId).join(" \u2192 ")}`
933
+ );
934
+ lines.push("", 'Reference a funnelId verbatim from code: <Adaptive funnel="<funnelId>">. Use get_funnel_report for drop-off numbers.');
935
+ return { content: [{ type: "text", text: lines.join("\n") }], structuredContent };
936
+ })
937
+ );
938
+ server.registerTool(
939
+ "get_funnel_report",
940
+ {
941
+ title: "Funnel drop-off report",
942
+ description: 'Per-step reach and drop-off for one funnel over its conversion window, with per-variant and audience splits per step, final-step revenue, and the holdout ("without optimization") comparison.',
943
+ inputSchema: { projectId: projectIdSchema, funnelId: funnelIdSchema },
944
+ outputSchema: {
945
+ funnelId: z7.string(),
946
+ displayName: z7.string(),
947
+ windowDays: z7.number(),
948
+ currency: z7.string().describe("Project display currency (ISO-4217) for the revenue fields"),
949
+ steps: z7.array(
950
+ z7.object({
951
+ stepIndex: z7.number(),
952
+ goalId: z7.string(),
953
+ displayName: z7.string(),
954
+ reached: z7.number().describe("Distinct visitors reaching this step in-window"),
955
+ dropOffFromPrevious: z7.number().nullable().describe("1 - reached/previousReached (null on the first step)"),
956
+ neverFired: z7.boolean().describe("True when the step goal has never been recorded anywhere \u2014 likely a typo"),
957
+ variants: z7.array(z7.object({
958
+ componentId: z7.string(),
959
+ variantId: z7.string(),
960
+ reached: z7.number(),
961
+ assigned: z7.number().describe("Distinct sessions served this variant in-window (the rate denominator)")
962
+ })),
963
+ personas: z7.array(z7.object({ label: z7.string(), reached: z7.number() }))
964
+ })
965
+ ),
966
+ revenue: z7.number().nullable().describe("Final-step revenue in the project currency (null when no valued conversions)"),
967
+ avgOrderValue: z7.number().nullable(),
968
+ revenuePerEnteringVisitor: z7.number().nullable(),
969
+ holdoutCompletion: z7.object({ entered: z7.number(), reached: z7.number() }).nullable().describe('Holdout visitors entering vs finishing \u2014 the "without optimization" line')
970
+ },
971
+ annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
972
+ },
973
+ withApiErrorGuidance(async ({ projectId, funnelId }) => {
974
+ const data = await client.get(`/projects/${encodeURIComponent(projectId)}/funnels/${encodeURIComponent(funnelId)}/report`);
975
+ const lines = [`${data.displayName} \u2014 last ${data.windowDays} days`];
976
+ for (const s of data.steps) {
977
+ lines.push(
978
+ `${s.stepIndex + 1}. ${s.displayName}: ${s.reached} reached` + (s.dropOffFromPrevious != null ? ` (${Math.round(s.dropOffFromPrevious * 100)}% drop-off from previous)` : "") + (s.neverFired ? " [never recorded \u2014 check the goal name]" : "")
979
+ );
980
+ for (const v of s.variants) {
981
+ lines.push(` ${v.componentId}/${v.variantId}: ${v.reached}/${v.assigned} assigned sessions reached this step`);
982
+ }
983
+ }
984
+ if (data.revenue != null) {
985
+ lines.push(
986
+ `Revenue: ${data.revenue.toFixed(2)} ${data.currency}` + (data.avgOrderValue != null ? ` (${data.avgOrderValue.toFixed(2)} ${data.currency} avg order)` : "") + (data.revenuePerEnteringVisitor != null ? `, ${data.revenuePerEnteringVisitor.toFixed(2)} ${data.currency} per entering visitor` : "")
987
+ );
988
+ }
989
+ if (data.holdoutCompletion && data.holdoutCompletion.entered > 0) {
990
+ lines.push(`Without optimization: ${data.holdoutCompletion.reached} of ${data.holdoutCompletion.entered} holdout visitors finished.`);
991
+ }
992
+ return { content: [{ type: "text", text: lines.join("\n") }], structuredContent: data };
993
+ })
994
+ );
995
+ }
996
+
997
+ // src/tools/guardrails.ts
998
+ import { z as z8 } from "zod";
870
999
  function registerGuardrailTools(server, client) {
871
1000
  server.registerTool(
872
1001
  "list_guardrail_events",
@@ -875,11 +1004,11 @@ function registerGuardrailTools(server, client) {
875
1004
  description: "List variants currently paused by the guardrail in the last 24 hours.",
876
1005
  inputSchema: { projectId: projectIdSchema },
877
1006
  outputSchema: {
878
- events: z7.array(
879
- z7.object({
880
- componentId: z7.string(),
881
- variantIds: z7.array(z7.string()).describe("Variants paused by the guardrail"),
882
- pausedAt: z7.string().nullable().describe("ISO timestamp the pause fired, or null")
1007
+ events: z8.array(
1008
+ z8.object({
1009
+ componentId: z8.string(),
1010
+ variantIds: z8.array(z8.string()).describe("Variants paused by the guardrail"),
1011
+ pausedAt: z8.string().nullable().describe("ISO timestamp the pause fired, or null")
883
1012
  })
884
1013
  ).describe("Guardrail events in the last 24h (empty if none)")
885
1014
  },
@@ -914,7 +1043,7 @@ function registerGuardrailTools(server, client) {
914
1043
  }
915
1044
 
916
1045
  // src/tools/layout.ts
917
- import { z as z8 } from "zod";
1046
+ import { z as z9 } from "zod";
918
1047
  function registerLayoutTools(server, client) {
919
1048
  server.registerTool(
920
1049
  "get_layout_stats",
@@ -924,12 +1053,12 @@ function registerLayoutTools(server, client) {
924
1053
  inputSchema: { projectId: projectIdSchema },
925
1054
  _meta: uiMeta("layout-stats"),
926
1055
  outputSchema: {
927
- layouts: z8.array(
928
- z8.object({
929
- persona: z8.string(),
930
- layoutOrder: z8.array(z8.string()).describe("Ranked section order for this persona"),
931
- pulls: z8.number().describe("Number of times this arm was served"),
932
- avgReward: z8.number().describe("Average bandit reward weight")
1056
+ layouts: z9.array(
1057
+ z9.object({
1058
+ persona: z9.string(),
1059
+ layoutOrder: z9.array(z9.string()).describe("Ranked section order for this persona"),
1060
+ pulls: z9.number().describe("Number of times this arm was served"),
1061
+ avgReward: z9.number().describe("Average bandit reward weight")
933
1062
  })
934
1063
  ).describe("Per-persona layout rankings (empty until enough sessions)")
935
1064
  },
@@ -966,7 +1095,7 @@ function registerLayoutTools(server, client) {
966
1095
  }
967
1096
 
968
1097
  // src/tools/variants.ts
969
- import { z as z9 } from "zod";
1098
+ import { z as z10 } from "zod";
970
1099
  function registerVariantWriteTools(server, client) {
971
1100
  server.registerTool(
972
1101
  "create_variant",
@@ -975,19 +1104,19 @@ function registerVariantWriteTools(server, client) {
975
1104
  description: "Create a NO-CODE managed text variant for a component (content stored in SentientUI, rendered by <AdaptiveText>). Use this ONLY for text-only variants the user wants without a code change. For variants that will live in the codebase (full components \u2014 copy, markup, styling), use get_variant_brief and write the variant in code instead; those auto-register on deploy and do not need create_variant. Requires a paid plan (server keys are Starter+; anonymous demo tokens are read-only).",
976
1105
  inputSchema: {
977
1106
  projectId: projectIdSchema,
978
- componentId: z9.string().min(1).max(200).describe("The component ID to add a variant to"),
979
- displayName: z9.string().min(1).max(200).describe("Human-readable name for the new variant"),
980
- content: z9.string().max(1e4).optional().describe("The text content for this managed variant (rendered by <AdaptiveText>). Generate it from get_variant_brief context; omit only to create an empty placeholder to fill in from the dashboard.")
1107
+ componentId: z10.string().min(1).max(200).describe("The component ID to add a variant to"),
1108
+ displayName: z10.string().min(1).max(200).describe("Human-readable name for the new variant"),
1109
+ content: z10.string().max(1e4).optional().describe("The text content for this managed variant (rendered by <AdaptiveText>). Generate it from get_variant_brief context; omit only to create an empty placeholder to fill in from the dashboard.")
981
1110
  },
982
1111
  outputSchema: {
983
- variantId: z9.string().describe("The new variant ID"),
1112
+ variantId: z10.string().describe("The new variant ID"),
984
1113
  // API returns `body.displayName ?? null`, so a successful create can
985
1114
  // carry a null name — match that contract or outputSchema validation
986
1115
  // would reject an otherwise-successful response.
987
- displayName: z9.string().nullable(),
988
- componentId: z9.string(),
989
- state: z9.literal("draft").describe("New managed variants start in draft state"),
990
- hasContent: z9.boolean().describe("Whether text content was provided at creation")
1116
+ displayName: z10.string().nullable(),
1117
+ componentId: z10.string(),
1118
+ state: z10.literal("draft").describe("New managed variants start in draft state"),
1119
+ hasContent: z10.boolean().describe("Whether text content was provided at creation")
991
1120
  },
992
1121
  annotations: {
993
1122
  readOnlyHint: false,
@@ -1025,13 +1154,13 @@ function registerVariantWriteTools(server, client) {
1025
1154
  description: "Pause a variant, stopping traffic from being assigned to it.",
1026
1155
  inputSchema: {
1027
1156
  projectId: projectIdSchema,
1028
- componentId: z9.string().describe("The component ID"),
1029
- variantId: z9.string().describe("The variant ID to pause")
1157
+ componentId: z10.string().describe("The component ID"),
1158
+ variantId: z10.string().describe("The variant ID to pause")
1030
1159
  },
1031
1160
  outputSchema: {
1032
- variantId: z9.string(),
1033
- componentId: z9.string(),
1034
- paused: z9.literal(true).describe("The variant is now paused")
1161
+ variantId: z10.string(),
1162
+ componentId: z10.string(),
1163
+ paused: z10.literal(true).describe("The variant is now paused")
1035
1164
  },
1036
1165
  annotations: {
1037
1166
  readOnlyHint: false,
@@ -1059,8 +1188,8 @@ function registerVariantWriteTools(server, client) {
1059
1188
  description: "Trigger fresh AI insight generation for a project. Returns immediately; use get_insights in ~15 seconds to see results.",
1060
1189
  inputSchema: { projectId: projectIdSchema },
1061
1190
  outputSchema: {
1062
- projectId: z9.string(),
1063
- status: z9.literal("generating").describe("Generation has been triggered")
1191
+ projectId: z10.string(),
1192
+ status: z10.literal("generating").describe("Generation has been triggered")
1064
1193
  },
1065
1194
  annotations: {
1066
1195
  readOnlyHint: false,
@@ -1084,7 +1213,7 @@ function registerVariantWriteTools(server, client) {
1084
1213
  }
1085
1214
 
1086
1215
  // src/tools/variant-brief.ts
1087
- import { z as z10 } from "zod";
1216
+ import { z as z11 } from "zod";
1088
1217
  var GOAL_TARGET = 500;
1089
1218
  var BEST_PRACTICE_PRIORS = {
1090
1219
  ecommerce: [
@@ -1157,15 +1286,15 @@ function registerVariantBriefTools(server, client) {
1157
1286
  description: "Get an insight-driven brief for creating a new CODE-NATIVE variant of a component. Returns current variant performance, audience, insights, a data-sufficiency assessment (with a best-practice fallback when there is no data yet), and step-by-step instructions for writing the variant in the customer's code. Use this instead of create_variant when the variant will live in the codebase.",
1158
1287
  inputSchema: {
1159
1288
  projectId: projectIdSchema,
1160
- componentId: z10.string().describe('The component ID to write a new variant for (matches <Adaptive id="...">).')
1289
+ componentId: z11.string().describe('The component ID to write a new variant for (matches <Adaptive id="...">).')
1161
1290
  },
1162
1291
  outputSchema: {
1163
- componentId: z10.string(),
1164
- contextType: z10.string().describe("The project's context type (or 'unknown')"),
1165
- dataState: z10.enum(["sufficient", "collecting", "empty"]).describe("Data-sufficiency assessment"),
1166
- existingVariantIds: z10.array(z10.string()).describe("Variant IDs already in use (do not reuse)"),
1167
- priors: z10.array(z10.string()).describe("Best-practice priors applied for this context type"),
1168
- markdown: z10.string().describe("The full variant brief in Markdown")
1292
+ componentId: z11.string(),
1293
+ contextType: z11.string().describe("The project's context type (or 'unknown')"),
1294
+ dataState: z11.enum(["sufficient", "collecting", "empty"]).describe("Data-sufficiency assessment"),
1295
+ existingVariantIds: z11.array(z11.string()).describe("Variant IDs already in use (do not reuse)"),
1296
+ priors: z11.array(z11.string()).describe("Best-practice priors applied for this context type"),
1297
+ markdown: z11.string().describe("The full variant brief in Markdown")
1169
1298
  },
1170
1299
  annotations: {
1171
1300
  readOnlyHint: true,
@@ -1282,7 +1411,7 @@ function registerVariantBriefTools(server, client) {
1282
1411
  }
1283
1412
 
1284
1413
  // src/tools/test-brief.ts
1285
- import { z as z11 } from "zod";
1414
+ import { z as z12 } from "zod";
1286
1415
  async function settled2(p) {
1287
1416
  try {
1288
1417
  return await p;
@@ -1298,13 +1427,13 @@ function registerTestBriefTools(server, client) {
1298
1427
  description: "Get a ready-to-paste test for a SentientUI-wrapped component, populated with the component's real variants and goals. This project uses @sentientui/react/testing. Use this so your tests force a specific variant/layout deterministically and never break when the optimizer serves a different version. Returns a React Testing Library example plus the URL-param recipe for E2E (Playwright/Cypress).",
1299
1428
  inputSchema: {
1300
1429
  projectId: projectIdSchema,
1301
- componentId: z11.string().describe('The component ID to write a test for (matches <Adaptive id="...">).')
1430
+ componentId: z12.string().describe('The component ID to write a test for (matches <Adaptive id="...">).')
1302
1431
  },
1303
1432
  outputSchema: {
1304
- componentId: z11.string(),
1305
- forcedVariantId: z11.string().describe("The non-control variant the example forces"),
1306
- goalName: z11.string().describe("The goal the example asserts fires"),
1307
- markdown: z11.string().describe("The full test brief in Markdown")
1433
+ componentId: z12.string(),
1434
+ forcedVariantId: z12.string().describe("The non-control variant the example forces"),
1435
+ goalName: z12.string().describe("The goal the example asserts fires"),
1436
+ markdown: z12.string().describe("The full test brief in Markdown")
1308
1437
  },
1309
1438
  annotations: {
1310
1439
  readOnlyHint: true,
@@ -1387,7 +1516,7 @@ function registerTestBriefTools(server, client) {
1387
1516
  }
1388
1517
 
1389
1518
  // src/tools/integration-guide.ts
1390
- import { z as z12 } from "zod";
1519
+ import { z as z13 } from "zod";
1391
1520
  var GUIDE = `# SentientUI integration guide \u2014 the adaptive ladder
1392
1521
 
1393
1522
  SentientUI adapts a site per visitor type (personas: buyer, researcher, deal_seeker, browser,
@@ -1462,7 +1591,7 @@ function registerIntegrationGuideTools(server) {
1462
1591
  description: "Get the SentientUI adaptive-ladder integration guide: setup (keyless and keyed) plus copy-pasteable examples for every rung (Style, Swap, Reorder). Use this to integrate SentientUI into a codebase.",
1463
1592
  inputSchema: {},
1464
1593
  outputSchema: {
1465
- guide: z12.string().describe("The full integration guide in Markdown")
1594
+ guide: z13.string().describe("The full integration guide in Markdown")
1466
1595
  },
1467
1596
  annotations: {
1468
1597
  readOnlyHint: true,
@@ -1478,7 +1607,7 @@ function registerIntegrationGuideTools(server) {
1478
1607
  }
1479
1608
 
1480
1609
  // src/tools/agent-traffic.ts
1481
- import { z as z13 } from "zod";
1610
+ import { z as z14 } from "zod";
1482
1611
  var PLAN_GATE_GUIDANCE = {
1483
1612
  agent_analytics_requires_paid_plan: "Agent analytics requires a paid SentientUI plan (Starter or above). Upgrade at https://sentient-ui.com, then try again."
1484
1613
  };
@@ -1490,19 +1619,19 @@ function registerAgentTrafficTools(server, client) {
1490
1619
  description: "Which AI agents and crawlers are reading this site: totals by type (passive crawlers, agentic browsers, agent API calls), engine breakdown, and the paths they fetch most. Agent traffic is tracked separately and never counted in conversion rate.",
1491
1620
  inputSchema: { projectId: projectIdSchema },
1492
1621
  outputSchema: {
1493
- totals: z13.object({ crawler: z13.number(), api: z13.number(), browser: z13.number() }),
1494
- engines: z13.array(
1495
- z13.object({
1496
- engine: z13.string(),
1497
- intent: z13.string().describe("user | search | training | other"),
1498
- count: z13.number(),
1499
- sharePct: z13.number(),
1500
- lastSeen: z13.string(),
1501
- firstSeenInRange: z13.boolean().describe("First observed within the queried period")
1622
+ totals: z14.object({ crawler: z14.number(), api: z14.number(), browser: z14.number() }),
1623
+ engines: z14.array(
1624
+ z14.object({
1625
+ engine: z14.string(),
1626
+ intent: z14.string().describe("user | search | training | other"),
1627
+ count: z14.number(),
1628
+ sharePct: z14.number(),
1629
+ lastSeen: z14.string(),
1630
+ firstSeenInRange: z14.boolean().describe("First observed within the queried period")
1502
1631
  })
1503
1632
  ),
1504
- intents: z13.object({ user: z13.number(), search: z13.number(), training: z13.number(), other: z13.number() }).describe("Crawler fetches by purpose: user = an assistant answering a real person live"),
1505
- topPaths: z13.array(z13.object({ path: z13.string(), count: z13.number(), engines: z13.number() }))
1633
+ intents: z14.object({ user: z14.number(), search: z14.number(), training: z14.number(), other: z14.number() }).describe("Crawler fetches by purpose: user = an assistant answering a real person live"),
1634
+ topPaths: z14.array(z14.object({ path: z14.string(), count: z14.number(), engines: z14.number() }))
1506
1635
  },
1507
1636
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
1508
1637
  },
@@ -1540,26 +1669,26 @@ function registerAgentTrafficTools(server, client) {
1540
1669
  description: "Whether the pages AI agents actually read are machine-legible: per-path checks for price, product name, positioning, and CTA in the server HTML, plus agent API blocks served without agent data. Each failure comes with a concrete fix.",
1541
1670
  inputSchema: { projectId: projectIdSchema },
1542
1671
  outputSchema: {
1543
- paths: z13.array(
1544
- z13.object({
1545
- path: z13.string(),
1546
- score: z13.number().describe("0\u2013100, 25 per passing check"),
1547
- checks: z13.object({
1548
- price: z13.boolean(),
1549
- name: z13.boolean(),
1550
- positioning: z13.boolean(),
1551
- cta: z13.boolean(),
1552
- notes: z13.array(z13.string())
1672
+ paths: z14.array(
1673
+ z14.object({
1674
+ path: z14.string(),
1675
+ score: z14.number().describe("0\u2013100, 25 per passing check"),
1676
+ checks: z14.object({
1677
+ price: z14.boolean(),
1678
+ name: z14.boolean(),
1679
+ positioning: z14.boolean(),
1680
+ cta: z14.boolean(),
1681
+ notes: z14.array(z14.string())
1553
1682
  }),
1554
- fixes: z13.array(z13.object({
1555
- check: z13.string(),
1556
- advice: z13.string(),
1557
- snippet: z13.string().optional()
1683
+ fixes: z14.array(z14.object({
1684
+ check: z14.string(),
1685
+ advice: z14.string(),
1686
+ snippet: z14.string().optional()
1558
1687
  })).optional().describe("Concrete Next.js remediation per failing check"),
1559
- lastChecked: z13.string()
1688
+ lastChecked: z14.string()
1560
1689
  })
1561
1690
  ),
1562
- emptyBlocks: z13.array(z13.object({ block: z13.string(), variant: z13.string(), occurrences: z13.number() }))
1691
+ emptyBlocks: z14.array(z14.object({ block: z14.string(), variant: z14.string(), occurrences: z14.number() }))
1563
1692
  },
1564
1693
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
1565
1694
  },
@@ -1596,7 +1725,7 @@ function registerAgentTrafficTools(server, client) {
1596
1725
  }
1597
1726
 
1598
1727
  // src/server.ts
1599
- var PKG_VERSION = true ? "0.12.0" : "0.0.0-dev";
1728
+ var PKG_VERSION = true ? "0.13.0" : "0.0.0-dev";
1600
1729
  function createMcpServer(client) {
1601
1730
  const server = new McpServer(
1602
1731
  {
@@ -1623,6 +1752,7 @@ function createMcpServer(client) {
1623
1752
  registerInsightTools(server, client);
1624
1753
  registerPersonaTools(server, client);
1625
1754
  registerGoalTools(server, client);
1755
+ registerFunnelTools(server, client);
1626
1756
  registerGuardrailTools(server, client);
1627
1757
  registerLayoutTools(server, client);
1628
1758
  registerVariantBriefTools(server, client);