boardui 0.5.9 → 0.5.10

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 +8 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1183,6 +1183,13 @@ import { instrument } from "@posthog/mcp";
1183
1183
  import { PostHog } from "posthog-node";
1184
1184
  import { z } from "zod";
1185
1185
 
1186
+ // src/lib/mcp-analytics.ts
1187
+ var HANDSHAKE_EVENTS = /* @__PURE__ */ new Set(["$mcp_initialize", "$mcp_tools_list"]);
1188
+ function dropHandshakeEvents(capture) {
1189
+ if (HANDSHAKE_EVENTS.has(capture.event) && capture.properties.$mcp_is_error !== true) return null;
1190
+ return capture;
1191
+ }
1192
+
1186
1193
  // ../lib/agent/rtl.ts
1187
1194
  var RTL_SETUP_GUIDE = [
1188
1195
  "## RTL Support",
@@ -1462,6 +1469,7 @@ async function mcp() {
1462
1469
  posthog.on("error", () => console.error("[mcp-analytics] PostHog delivery failed."));
1463
1470
  instrument(server, posthog, {
1464
1471
  eventProperties: () => ({ $mcp_transport: "stdio" }),
1472
+ beforeSend: dropHandshakeEvents,
1465
1473
  logger: (message) => {
1466
1474
  if (/warning|failed/i.test(message)) console.error(`[mcp-analytics] ${message}`);
1467
1475
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boardui",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "Add BoardUI components to your project.",
5
5
  "license": "MIT",
6
6
  "type": "module",