Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(mcp): bump posthog-node to ^5.46.1 (#73804)

posthog[bot]7d9d4ba21d23
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3ce908f912a8..73fd12c8998c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -425,7 +425,7 @@ importers:
version: 0.25.12
jest:
specifier: ^29.7.0
puppeteer:
specifier: 19.0.0
version: 19.0.0([email protected])
@@ -4799,7 +4799,7 @@ importers:
version: 1.29.0(@cfworker/[email protected])([email protected])
'@posthog/mcp-analytics':
specifier: npm:@posthog/[email protected]
- version: '@posthog/[email protected](@modelcontextprotocol/[email protected](@cfworker/[email protected])([email protected]))([email protected])'
'@posthog/quill':
specifier: workspace:*
version: link:../../packages/quill/packages/quill
@@ -4837,8 +4837,8 @@ importers:
specifier: 4.2.2
version: 4.2.2
posthog-node:
- specifier: ^5.25.0
- version: 5.25.0
+ specifier: ^5.46.1
+ version: 5.46.1([email protected])
prom-client:
specifier: ^14.2.0
version: 14.2.0
@@ -19909,6 +19909,15 @@ packages:
resolution: {integrity: sha512-DFE5lZAoD6hk7RATuT8qVQ7KFgFP5YlFTJciMbU2qq6NX0A8eJxiJcmEsMnB3g30jJJ9suiwGIq4I8ESwf9bZg==}
engines: {node: ^20.20.0 || >=22.22.0}
+ resolution: {integrity: sha512-WjCqExq44pBdyg9MSsH6UAE0tNZ88p4aIuVFicgqhjf2Fbws6IhS4ioYUa4aBrbUPS9EDRXtBTtF5DpP1ml8Pw==}
+ engines: {node: ^20.20.0 || >=22.22.0}
+ peerDependencies:
+ rxjs: ^7.0.0
+ peerDependenciesMeta:
+ rxjs:
+ optional: true
+
resolution: {integrity: sha512-Q+/tYsFU9r7xoOJ+y/ZTtdVQwTWfzjbiXBDMM/JKUux3+QPP02iUuIoeBQ+Ot6oEDlC+/PGjB/5A3K7KKb7hcw==}
@@ -30101,11 +30110,11 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
dependencies:
'@modelcontextprotocol/sdk': 1.29.0(@cfworker/[email protected])([email protected])
'@posthog/core': 1.38.0
- posthog-node: 5.25.0
+ posthog-node: 5.46.1([email protected])
dependencies:
@@ -42503,6 +42512,12 @@ snapshots:
dependencies:
'@posthog/core': 1.23.1
+ dependencies:
+ '@posthog/core': 1.45.1
+ optionalDependencies:
+ rxjs: 7.8.1
+
diff --git a/services/mcp/package.json b/services/mcp/package.json
index bb5c99333779..faaea450cf30 100644
--- a/services/mcp/package.json
+++ b/services/mcp/package.json
@@ -63,7 +63,7 @@
"jose": "^6.2.3",
"lucide-react": "^0.577.0",
"posthog-js-lite": "4.2.2",
- "posthog-node": "^5.25.0",
+ "posthog-node": "^5.46.1",
"prom-client": "^14.2.0",
"prosemirror-collab": "^1.3.1",
"prosemirror-model": "^1.25.2",
diff --git a/services/mcp/tests/hono/tool-executor.test.ts b/services/mcp/tests/hono/tool-executor.test.ts
index 33d625c6506d..05bdd6f3cdc8 100644
--- a/services/mcp/tests/hono/tool-executor.test.ts
+++ b/services/mcp/tests/hono/tool-executor.test.ts
@@ -288,13 +288,16 @@ describe('ToolExecutor', () => {
expect(result.tools.map((t) => t.name)).toEqual(['exec', 'render-ui'])
// The advertised schema is derived from the zod validation schema —
- // pin the contract the agent writes calls against.
+ // pin the contract the agent writes calls against. The analytics
+ // client injects a required `context` intent parameter into every
+ // advertised tool (surfaced as `$mcp_intent`).
const renderUiEntry = result.tools[1]!
const properties = renderUiEntry.inputSchema.properties as Record<string, Record<string, unknown>>
expect(properties.tool_name!.enum).toEqual(['survey-get'])
expect(properties.tool_name!.description).toBeTruthy()
expect(properties.tool_input!.description).toBeTruthy()
- expect(renderUiEntry.inputSchema.required).toEqual(['tool_name'])
+ expect(properties.context!.description).toBeTruthy()
+ expect(renderUiEntry.inputSchema.required).toEqual(['tool_name', 'context'])
})
it('omits render-ui when render-ui is disabled, even with a UI-app tool available', async () => {