@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 +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -736,7 +736,7 @@ function sanitizeParameters(obj) {
|
|
|
736
736
|
}
|
|
737
737
|
//#endregion
|
|
738
738
|
//#region package.json
|
|
739
|
-
var version = "0.0.
|
|
739
|
+
var version = "0.0.8";
|
|
740
740
|
//#endregion
|
|
741
741
|
//#region src/modules/session.ts
|
|
742
742
|
function newSessionId() {
|
|
@@ -1872,6 +1872,12 @@ function getReportMissingToolDescriptor() {
|
|
|
1872
1872
|
description: "A description of your goal and what kind of tool would help accomplish it."
|
|
1873
1873
|
} },
|
|
1874
1874
|
required: ["context"]
|
|
1875
|
+
},
|
|
1876
|
+
annotations: {
|
|
1877
|
+
readOnlyHint: true,
|
|
1878
|
+
idempotentHint: false,
|
|
1879
|
+
openWorldHint: false,
|
|
1880
|
+
destructiveHint: false
|
|
1875
1881
|
}
|
|
1876
1882
|
};
|
|
1877
1883
|
}
|
|
@@ -1927,9 +1933,8 @@ function setupMCPAnalyticsTools(server) {
|
|
|
1927
1933
|
return { tools };
|
|
1928
1934
|
}
|
|
1929
1935
|
if (isContextEnabled(data.options.context)) tools = addContextParameterToTools(tools, getContextDescription(data.options.context));
|
|
1930
|
-
if (data.options.reportMissing)
|
|
1931
|
-
|
|
1932
|
-
}
|
|
1936
|
+
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.");
|
|
1937
|
+
else tools.push(getReportMissingToolDescriptor());
|
|
1933
1938
|
event.response = { tools };
|
|
1934
1939
|
event.isError = false;
|
|
1935
1940
|
event.duration = event.timestamp && Date.now() - event.timestamp.getTime() || 0;
|