@posthog/mcp 0.14.0 → 0.15.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.
- package/LICENSE +64 -0
- package/dist/extensions/instrument-highlevel.d.ts.map +1 -1
- package/dist/extensions/instrument-highlevel.js +4 -1
- package/dist/extensions/instrument-highlevel.mjs +5 -2
- package/dist/extensions/instrument-lowlevel.d.ts +4 -3
- package/dist/extensions/instrument-lowlevel.d.ts.map +1 -1
- package/dist/extensions/instrument-lowlevel.js +4 -1
- package/dist/extensions/instrument-lowlevel.mjs +5 -2
- package/dist/extensions/instrumentation.d.ts +3 -0
- package/dist/extensions/instrumentation.d.ts.map +1 -1
- package/dist/extensions/instrumentation.js +76 -2
- package/dist/extensions/instrumentation.mjs +72 -1
- package/dist/extensions/internal.js +9 -2
- package/dist/extensions/internal.mjs +9 -2
- package/dist/extensions/mcp-payloads.d.ts +13 -0
- package/dist/extensions/mcp-payloads.d.ts.map +1 -1
- package/dist/extensions/mcp-payloads.js +205 -4
- package/dist/extensions/mcp-payloads.mjs +201 -3
- package/dist/extensions/sanitization.d.ts.map +1 -1
- package/dist/extensions/sanitization.js +2 -1
- package/dist/extensions/sanitization.mjs +3 -2
- package/dist/index.d.ts +3 -3
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +3 -3
- package/src/extensions/instrument-highlevel.ts +6 -0
- package/src/extensions/instrument-lowlevel.ts +10 -3
- package/src/extensions/instrumentation.ts +105 -0
- package/src/extensions/internal.ts +13 -2
- package/src/extensions/mcp-payloads.ts +427 -4
- package/src/extensions/sanitization.ts +14 -6
- package/src/index.ts +3 -3
- package/src/types.ts +1 -0
- package/src/version.ts +1 -1
package/src/index.ts
CHANGED
|
@@ -25,9 +25,9 @@ import type {
|
|
|
25
25
|
} from './types'
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Instruments an MCP server so PostHog auto-captures tool calls, tool listings,
|
|
29
|
-
* requests, identity, and exceptions. Returns a handle whose
|
|
30
|
-
* custom events, so you don't pass the server around after wiring it up.
|
|
28
|
+
* Instruments an MCP server so PostHog auto-captures tool calls, tool and resource listings,
|
|
29
|
+
* resource reads, initialize requests, identity, and exceptions. Returns a handle whose
|
|
30
|
+
* `capture()` method records custom events, so you don't pass the server around after wiring it up.
|
|
31
31
|
*
|
|
32
32
|
* **Idempotent per server instance.** Per-server tracking state lives in a module-level
|
|
33
33
|
* `WeakMap<MCPServerLike, MCPAnalyticsData>` (`internal.ts`); a second `instrument()` call
|
package/src/types.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.
|
|
1
|
+
export const version = '0.15.0'
|