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.

fix(conversations): point MCP ticket links at the app route (#73949)

Arno Hillen6fccd880060c
diff --git a/products/conversations/mcp/tools.yaml b/products/conversations/mcp/tools.yaml
index c50007e526eb..79fbd3195be7 100644
--- a/products/conversations/mcp/tools.yaml
+++ b/products/conversations/mcp/tools.yaml
@@ -6,7 +6,7 @@
# All other fields (title, description, enrich_url, etc.) are yours to configure.
category: Conversations
feature: conversations
-url_prefix: /conversations/tickets
+url_prefix: /support/tickets
ui_apps: {}
tools:
conversations-tickets-ai-feedback-create:
diff --git a/services/mcp/src/tools/generated/conversations.ts b/services/mcp/src/tools/generated/conversations.ts
index 08c797b59830..7fdb29af4c10 100644
--- a/services/mcp/src/tools/generated/conversations.ts
+++ b/services/mcp/src/tools/generated/conversations.ts
@@ -67,7 +67,7 @@ const conversationsTicketsList = (): ToolBase<
])
),
} as typeof result
- return await withPostHogUrl(context, filtered, '/conversations/tickets')
+ return await withPostHogUrl(context, filtered, '/support/tickets')
},
})
@@ -164,7 +164,7 @@ const conversationsTicketsRetrieve = (): ToolBase<
'created_at',
'updated_at',
]) as typeof result
- return await withPostHogUrl(context, filtered, `/conversations/tickets/${filtered.id}`)
+ return await withPostHogUrl(context, filtered, `/support/tickets/${filtered.id}`)
},
})
@@ -201,7 +201,7 @@ const conversationsTicketsUpdate = (): ToolBase<
path: `/api/projects/${encodeURIComponent(String(projectId))}/conversations/tickets/${encodeURIComponent(String(params.id))}/`,
body,
})
- return await withPostHogUrl(context, result, `/conversations/tickets/${result.id}`)
+ return await withPostHogUrl(context, result, `/support/tickets/${result.id}`)
},
})
@@ -227,7 +227,7 @@ const conversationsViewsList = (): ToolBase<
...result,
results: (result.results ?? []).map((item: any) => pickResponseFields(item, ['short_id', 'name'])),
} as typeof result
- return await withPostHogUrl(context, filtered, '/conversations/tickets')
+ return await withPostHogUrl(context, filtered, '/support/tickets')
},
})
diff --git a/services/mcp/tests/tools/conversations.integration.test.ts b/services/mcp/tests/tools/conversations.integration.test.ts
index 39d017b9da2f..24dc1a304292 100644
--- a/services/mcp/tests/tools/conversations.integration.test.ts
+++ b/services/mcp/tests/tools/conversations.integration.test.ts
@@ -34,7 +34,8 @@ describe('Conversations', { concurrent: false }, () => {
expect(typeof data.count).toBe('number')
expect(Array.isArray(data.results)).toBe(true)
expect(typeof data._posthogUrl).toBe('string')
- expect(data._posthogUrl).toContain('/conversations/tickets')
+ // The app route, not the API path — agents hand these links to humans.
+ expect(data._posthogUrl).toContain('/support/tickets')
})
it('should respect the limit parameter', async () => {