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.

4.6 KB
Raw Blame
{
    "name": "@posthog/mcp",
    "version": "1.0.0",
    "description": "PostHog MCP server",
    "keywords": [
        "agents",
        "ai",
        "analytics",
        "feature-flags",
        "mcp",
        "posthog"
    ],
    "license": "MIT",
    "author": "PostHog Inc.",
    "scripts": {
        "generate:ui-apps": "tsx scripts/generate-ui-apps.ts",
        "build:quill": "pnpm --dir ../../packages/quill -r --filter '@posthog/quill-*' --filter '@posthog/quill' --filter '!@posthog/quill-workspace' build",
        "build:ui-apps": "pnpm run build:quill && pnpm run generate:ui-apps && tsx scripts/build-ui-apps.ts",
        "build:ui-apps:watch": "pnpm run build:quill && pnpm run generate:ui-apps && tsx scripts/build-ui-apps.ts --watch",
        "build": "pnpm run build:ui-apps",
        "dev": "tsx watch --include=scripts --include=.env scripts/dev-hono.ts",
        "dev:proxy": "wrangler dev",
        "dev:local-resources": "POSTHOG_MCP_LOCAL_SKILLS_URL=http://localhost:8765/skills-mcp-resources.zip ../../bin/start-mcp-server",
        "deploy": "wrangler deploy",
        "cf-typegen": "wrangler types",
        "inspector": "npx @modelcontextprotocol/inspector npx -y mcp-remote@latest http://localhost:8787/mcp",
        "build:hono": "tsx scripts/build-hono.ts",
        "build:cli": "tsx scripts/build-cli.ts",
        "build:cli:release": "tsx scripts/build-cli-release.ts",
        "build:cli:library": "tsx scripts/build-cli-library.ts",
        "test": "vitest",
        "test:integration": "vitest run --config vitest.integration.config.mts",
        "test:live": "vitest run --config vitest.live.config.mts",
        "test:hono": "vitest run --config vitest.hono.config.mts",
        "test:perf": "vitest run --config vitest.perf.config.mts",
        "test:watch": "vitest watch",
        "typecheck": "tsgo --noEmit",
        "generate-mcp-types": "node scripts/generate-mcp-types.mjs",
        "generate-orval-schemas": "node scripts/generate-orval-schemas.mjs",
        "generate-tools": "tsx scripts/generate-tools.ts",
        "generate-exec-docs": "tsx scripts/generate-exec-docs.ts",
        "generate-cli-agent-scopes": "tsx scripts/build-cli-agent-scopes.ts",
        "generate-webmcp-exec-tool": "tsx scripts/generate-webmcp-exec-tool.ts",
        "scaffold-yaml": "tsx scripts/scaffold-yaml.ts",
        "lint-tool-names": "tsx scripts/lint-tool-names.ts",
        "lint": "oxlint --quiet",
        "lint:fix": "oxlint --fix --quiet",
        "format": "oxfmt \"./**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
        "format:check": "oxfmt --check \"./**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
        "fix": "pnpm lint:fix; s=$?; pnpm format && exit $s"
    },
    "dependencies": {
        "@hono/node-server": "^2.0.2",
        "@modelcontextprotocol/ext-apps": "^1.5.0",
        "@modelcontextprotocol/sdk": "^1.29.0",
        "@posthog/llm-normalizer": "workspace:*",
        "@posthog/mcp-analytics": "npm:@posthog/[email protected]",
        "@posthog/quill": "workspace:*",
        "@posthog/quill-charts": "workspace:*",
        "@toon-format/toon": "^2.1.0",
        "ai": "^6.0.0",
        "esbuild": "^0.25.11",
        "eventsource-parser": "^3.0.0",
        "fflate": "^0.8.2",
        "hono": "^4.12.21",
        "ioredis": "^4.28.5",
        "jose": "^6.2.3",
        "lucide-react": "^0.577.0",
        "posthog-js-lite": "4.13.1",
        "posthog-node": "^5.61.2",
        "prom-client": "^14.2.0",
        "prosemirror-collab": "^1.3.1",
        "prosemirror-model": "^1.25.2",
        "prosemirror-transform": "^1.10.4",
        "undici": "^8.12.2",
        "uuid": "^11.1.1",
        "yaml": "^2.9.0",
        "zod": "^4.3.6"
    },
    "devDependencies": {
        "@cloudflare/vitest-pool-workers": "^0.16.13",
        "@cloudflare/workers-types": "^4.20260603.1",
        "@modelcontextprotocol/client": "2.0.0-beta.4",
        "@posthog/openapi-codegen": "workspace:*",
        "@tailwindcss/postcss": "^4.1.10",
        "@types/dotenv": "^6.1.1",
        "@types/node": "^22.17.2",
        "@types/react": "^17.0.39",
        "@types/react-dom": "^18.2.8",
        "@vitejs/plugin-react": "catalog:",
        "ajv": "^8.20.0",
        "ajv-formats": "^3.0.1",
        "chokidar": "^3.6.0",
        "cluster-key-slot": "^1.1.2",
        "dotenv": "^16.4.7",
        "msw": "^2.14.6",
        "oxfmt": "catalog:",
        "oxlint": "^1.72.0",
        "react": "^18.2.0",
        "react-dom": "^18.2.0",
        "tailwindcss": "^4.1.10",
        "tsx": "^4.20.5",
        "typescript": "catalog:",
        "vite": "catalog:",
        "vite-tsconfig-paths": "^5.1.4",
        "vitest": "^4.1.0",
        "wrangler": "^4.98.0"
    }
}