@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/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.21.4"
1
+ export const version = "0.22.1"