{ "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' 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", "test": "vitest", "test:integration": "vitest run --config vitest.integration.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", "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/mcp@0.17.0", "@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.12.1", "posthog-node": "^5.52.5", "prom-client": "^14.2.0", "prosemirror-collab": "^1.3.1", "prosemirror-model": "^1.25.2", "prosemirror-transform": "^1.10.4", "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": "^0.33.0", "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" } }