mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-10 20:46:28 +01:00
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:
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",
|
||||
|
||||
Reference in new issue
Block a user