@easyfunnel/mcp 0.1.3 → 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.
Files changed (2) hide show
  1. package/dist/index.js +7 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -662,8 +662,11 @@ var getFunnelHealthDefinition = {
662
662
  required: ["project_id"]
663
663
  }
664
664
  };
665
- function formatFunnelHealth(data) {
666
- let output = `Funnel: ${data.funnel_name}
665
+ function formatFunnelHealth(data, funnelId) {
666
+ let output = `Funnel: ${data.funnel_name}`;
667
+ if (funnelId) output += `
668
+ ID: ${funnelId}`;
669
+ output += `
667
670
  Time range: ${data.time_range}
668
671
 
669
672
  `;
@@ -705,7 +708,7 @@ async function getFunnelHealth(client2, args) {
705
708
  for (const funnel of funnels) {
706
709
  try {
707
710
  const data2 = await client2.getFunnelHealth(args.project_id, funnel.id, timeRange);
708
- output += formatFunnelHealth(data2) + "\n---\n\n";
711
+ output += formatFunnelHealth(data2, funnel.id) + "\n---\n\n";
709
712
  if (worstFunnel === null || data2.overall_conversion < worstFunnel.conversion) {
710
713
  worstFunnel = { name: data2.funnel_name, conversion: data2.overall_conversion };
711
714
  }
@@ -728,7 +731,7 @@ Worst-performing funnel: ${worstFunnel.name} (${worstFunnel.conversion}% convers
728
731
  }
729
732
  const data = await client2.getFunnelHealth(args.project_id, args.funnel_id, timeRange);
730
733
  return {
731
- content: [{ type: "text", text: formatFunnelHealth(data) }]
734
+ content: [{ type: "text", text: formatFunnelHealth(data, args.funnel_id) }]
732
735
  };
733
736
  }
734
737
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyfunnel/mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "MCP server for easyfunnel.co — AI-powered analytics tools for Claude/Cursor",
5
5
  "main": "dist/index.js",
6
6
  "bin": {