feat(apps): simplify PostHog connection setup

Default PostHog to broad tool access, move optional filters and response mode behind a reusable Advanced disclosure, and codify the connection UX rule in the bundled integration skill and playbook.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-08-20 21:20:01 +00:00
1 parent cbd6c2b261
commit 860eb96c1e
12 files changed
+139 -65

No files matched your search

@@ -7172,6 +7172,20 @@ describe("normalizeConnectionMethodConfig", () => {
const posthog = getConnectableAppDefinition("posthog")!;
const apiKeyMethod = posthog.methods.find((method) => method.key === "mcp-api-key")!;
it("uses the broad PostHog catalog when optional advanced filters are untouched", () => {
expect(normalizeConnectionMethodConfig(apiKeyMethod, {
projectId: "12345",
})).toEqual({
values: {
projectId: "12345",
readOnly: false,
mode: "tools",
},
url: "https://mcp.posthog.com/mcp?mode=tools",
headers: { "x-posthog-project-id": "12345" },
});
});
it("normalizes and projects PostHog scope without accepting arbitrary config", () => {
expect(normalizeConnectionMethodConfig(apiKeyMethod, {
projectId: "12345",