@posthog/mcp 0.0.7 → 0.0.8

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/index.cjs CHANGED
@@ -737,7 +737,7 @@ function sanitizeParameters(obj) {
737
737
  }
738
738
  //#endregion
739
739
  //#region package.json
740
- var version = "0.0.7";
740
+ var version = "0.0.8";
741
741
  //#endregion
742
742
  //#region src/modules/session.ts
743
743
  function newSessionId() {
@@ -1873,6 +1873,12 @@ function getReportMissingToolDescriptor() {
1873
1873
  description: "A description of your goal and what kind of tool would help accomplish it."
1874
1874
  } },
1875
1875
  required: ["context"]
1876
+ },
1877
+ annotations: {
1878
+ readOnlyHint: true,
1879
+ idempotentHint: false,
1880
+ openWorldHint: false,
1881
+ destructiveHint: false
1876
1882
  }
1877
1883
  };
1878
1884
  }
@@ -1928,9 +1934,8 @@ function setupMCPAnalyticsTools(server) {
1928
1934
  return { tools };
1929
1935
  }
1930
1936
  if (isContextEnabled(data.options.context)) tools = addContextParameterToTools(tools, getContextDescription(data.options.context));
1931
- if (data.options.reportMissing) {
1932
- if (!tools.some((tool) => tool?.name === "get_more_tools")) tools.push(getReportMissingToolDescriptor());
1933
- }
1937
+ if (data.options.reportMissing) if (tools.some((tool) => tool?.name === "get_more_tools")) writeToLog("Warning: report_missing tool already present in tools list. Skipping addition. This is likely due to the server already including a report_missing tool. If you want to rely on the PostHog MCP Analytics report_missing tool, you should disable the server's report_missing tool.");
1938
+ else tools.push(getReportMissingToolDescriptor());
1934
1939
  event.response = { tools };
1935
1940
  event.isError = false;
1936
1941
  event.duration = event.timestamp && Date.now() - event.timestamp.getTime() || 0;