MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getPostHogQueryConfig

Function getPostHogQueryConfig

server/src/services/posthog-query.ts:39–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37const POSTHOG_QUERY_HOST = "https://us.posthog.com";
38
39export function getPostHogQueryConfig(): {
40 apiKey: string;
41 projectId: string;
42 host: string;
43} | null {
44 const apiKey = process.env.POSTHOG_PERSONAL_API_KEY;
45 const projectId = process.env.POSTHOG_PROJECT_ID;
46 if (!apiKey || !projectId) return null;
47 return {
48 apiKey,
49 projectId,
50 host: POSTHOG_QUERY_HOST,
51 };
52}
53
54async function queryPostHog(
55 config: { apiKey: string; projectId: string; host: string },

Callers 3

setupGeoRoutesFunction · 0.85
fetchAiReferrerDataFunction · 0.85
fetchPathPageviewCountsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected