: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
// ioredis v4 ships without bundled type declarations. We only use the default
// export (constructor) — typed loosely as `any` so TS can still check call sites
// that interact with it via the local `RedisLike` interface.
declare module 'ioredis' {
const Redis: any
export default Redis
}
// Custom optional environment variables not generated by Wrangler
declare namespace Cloudflare {
interface Env {
MCP_CAT_PROJECT_ID: string | undefined
MCP_KV: KVNamespace | undefined
MCP_HONO_URL: string | undefined
// Keys that sign the edge client IP for the Hono runtime of each region (see src/proxy.ts).
MCP_EDGE_CLIENT_IP_SIGNING_KEYS_US: string | undefined
MCP_EDGE_CLIENT_IP_SIGNING_KEYS_EU: string | undefined
}
}
// YAML imports resolve to the file's raw text (esbuild `.yaml` text loader,
// wrangler `Text` rule, vitest raw-text transform).
declare module '*.yaml' {
const content: string
export default content
}
// Vite-style raw suffix used by @posthog/llm-normalizer's recipe registry; esbuild
// retries resolution without the query and applies the same text loader.
declare module '*.yaml?raw' {
const content: string
export default content
}