@posthog/mcp 0.21.4 → 0.22.1
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/README.md +22 -1
- package/dist/extensions/instrument-lowlevel.d.ts.map +1 -1
- package/dist/extensions/instrument-lowlevel.js +13 -1
- package/dist/extensions/instrument-lowlevel.mjs +13 -1
- package/dist/extensions/mcp-payloads.d.ts +2 -28
- package/dist/extensions/mcp-payloads.d.ts.map +1 -1
- package/dist/extensions/mcp-payloads.js +9 -314
- package/dist/extensions/mcp-payloads.mjs +18 -323
- package/dist/types.d.ts +14 -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 +2 -2
- package/src/extensions/instrument-lowlevel.ts +20 -1
- package/src/extensions/mcp-payloads.ts +15 -666
- package/src/types.ts +12 -0
- package/src/version.ts +1 -1
package/src/types.ts
CHANGED
|
@@ -206,6 +206,18 @@ export interface MCPAnalyticsOptions {
|
|
|
206
206
|
* `$mcp_input_aliases_used`; it never changes the tool arguments.
|
|
207
207
|
*/
|
|
208
208
|
resolveInputAliases?: (toolName: string) => InputAliasMap | undefined
|
|
209
|
+
/**
|
|
210
|
+
* Return the tool's input schema as your `tools/list` advertises it, before
|
|
211
|
+
* PostHog preparation, or `undefined` when the tool is unknown. Low-level servers
|
|
212
|
+
* use it on `tools/call` to resolve which analytics arguments the SDK owns
|
|
213
|
+
* without a prior `tools/list` on the same instance, so a server that builds a
|
|
214
|
+
* fresh instance per request strips them before the handler runs. Ownership
|
|
215
|
+
* follows the same rule as a served listing: a Zod schema is read the way the
|
|
216
|
+
* MCP SDK advertises it, and a host that lists its own JSON Schema returns that.
|
|
217
|
+
* Ownership learned from a listing on the instance wins. Ignored on a
|
|
218
|
+
* high-level `McpServer`, which reads its tool registry.
|
|
219
|
+
*/
|
|
220
|
+
resolveOriginalTool?: (toolName: string) => { inputSchema?: unknown } | undefined
|
|
209
221
|
/**
|
|
210
222
|
* Attach extra event properties on every auto-captured event. Spread into the PostHog
|
|
211
223
|
* event properties as-is; values must be JSON-serializable.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.
|
|
1
|
+
export const version = "0.22.1"
|