{"_id":"@posthog/agent-toolkit","_rev":"23-f9f047a58d77c763a5b21b86994f1d05","name":"@posthog/agent-toolkit","dist-tags":{"latest":"0.2.4"},"versions":{"0.1.0":{"name":"@posthog/agent-toolkit","version":"0.1.0","keywords":["posthog","mcp","ai","agents","analytics","feature-flags"],"author":{"name":"PostHog Inc."},"license":"MIT","_id":"@posthog/agent-toolkit@0.1.0","maintainers":[{"name":"watilo","email":"corywatilo@gmail.com"},{"name":"twixes","email":"dev@twixes.com"},{"name":"fuziontech","email":"fuziontech@gmail.com"},{"name":"mariusandra","email":"marius.andra@gmail.com"},{"name":"ben-posthog","email":"ben@posthog.com"},{"name":"timgl","email":"tim@posthog.com"},{"name":"fraserhopper","email":"fraser@posthog.com"},{"name":"manoelposthog","email":"manoel@posthog.com"},{"name":"robbie-c","email":"robbie.coomber@gmail.com"},{"name":"adamleithp","email":"adamleithp@gmail.com"},{"name":"peterkirkhamposthog","email":"peter@posthog.com"},{"name":"joshuasnyder","email":"joshua@timenavi.com"},{"name":"huguespouillot","email":"hpouillot@gmail.com"},{"name":"david-posthog","email":"david@posthog.com"}],"dist":{"shasum":"07ffc472909f463169ca902a4a44a81e010a4fe8","tarball":"https://registry.npmjs.org/@posthog/agent-toolkit/-/agent-toolkit-0.1.0.tgz","fileCount":19,"integrity":"sha512-MYD4QoK3ltwc/sjmJlZPsu18RdflpnOfb5Gw6di489czn2G4ya5yqeuUeoHQ2w1Gnta8J6hGUcA5x8L5YQkZQA==","signatures":[{"sig":"MEYCIQDjeyqM6pM0L+CmrU9Hvc6/VJYhIcSz5MsrnnpnkYSF3AIhAMtra7CPfANDKD7j2ESIS/09eX/usCsTcoRozEEkGGds","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":688308},"main":"dist/index.js","_from":"file:posthog-agent-toolkit-0.1.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./tools":{"types":"./dist/tools.d.ts","import":"./dist/tools.mjs","require":"./dist/tools.js"},"./integrations/ai-sdk":{"types":"./dist/ai-sdk.d.ts","import":"./dist/ai-sdk.mjs","require":"./dist/ai-sdk.js"},"./integrations/langchain":{"types":"./dist/langchain.d.ts","import":"./dist/langchain.mjs","require":"./dist/langchain.js"}},"scripts":{"dev":"wrangler dev","test":"vitest","build":"tsup","deploy":"wrangler deploy","inspector":"npx @modelcontextprotocol/inspector npx -y mcp-remote@latest http://localhost:8787/mcp","typecheck":"tsc --noEmit","cf-typegen":"wrangler types","test:watch":"vitest watch","test:integration":"vitest run --config vitest.integration.config.mts"},"_npmUser":{"name":"joshuasnyder","email":"joshua@timenavi.com"},"_resolved":"/private/var/folders/rj/6kqycb1j3xz2fyn7xzkrrq9m0000gn/T/b38661c8f4772e74a1f15826257fdfc3/posthog-agent-toolkit-0.1.0.tgz","_integrity":"sha512-MYD4QoK3ltwc/sjmJlZPsu18RdflpnOfb5Gw6di489czn2G4ya5yqeuUeoHQ2w1Gnta8J6hGUcA5x8L5YQkZQA==","deprecated":"This was an attempt at exposing some of our internals for ease of use when integrating with the PostHog AI agent. We decided to implement the PostHog AI agent differently which means this package is not useful anymore. Please, do NOT use it in production, communicate with PostHog for AI purposes via our MCP.","_npmVersion":"10.8.2","description":"PostHog tools for AI agents","directories":{},"_nodeVersion":"18.20.5","dependencies":{"ai":"^5.0.18","zod":"^3.24.4","agents":"^0.0.113","posthog-node":"^4.18.0","@modelcontextprotocol/sdk":"^1.17.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","vite":"^5.0.0","dotenv":"^16.4.7","vitest":"^3.2.4","wrangler":"^4.14.4","langchain":"^0.3.31","typescript":"^5.8.3","@types/node":"^22.15.34","@types/dotenv":"^6.1.1","@langchain/core":"^0.3.72","@langchain/openai":"^0.6.9","zod-to-json-schema":"^3.24.6","vite-tsconfig-paths":"^5.1.4"},"peerDependencies":{"ai":"^5.0.0","langchain":"^0.3.31","@langchain/core":"^0.3.72","@langchain/openai":"^0.6.9"},"_npmOperationalInternal":{"tmp":"tmp/agent-toolkit_0.1.0_1756830223235_0.9452453508678573","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@posthog/agent-toolkit","version":"0.2.0","keywords":["posthog","mcp","ai","agents","analytics","feature-flags"],"author":{"name":"PostHog Inc."},"license":"MIT","_id":"@posthog/agent-toolkit@0.2.0","maintainers":[{"name":"watilo","email":"corywatilo@gmail.com"},{"name":"twixes","email":"dev@twixes.com"},{"name":"fuziontech","email":"fuziontech@gmail.com"},{"name":"mariusandra","email":"marius.andra@gmail.com"},{"name":"ben-posthog","email":"ben@posthog.com"},{"name":"timgl","email":"tim@posthog.com"},{"name":"fraserhopper","email":"fraser@posthog.com"},{"name":"manoelposthog","email":"manoel@posthog.com"},{"name":"robbie-c","email":"robbie.coomber@gmail.com"},{"name":"adamleithp","email":"adamleithp@gmail.com"},{"name":"peterkirkhamposthog","email":"peter@posthog.com"},{"name":"joshuasnyder","email":"joshua@timenavi.com"},{"name":"huguespouillot","email":"hpouillot@gmail.com"},{"name":"david-posthog","email":"david@posthog.com"}],"dist":{"shasum":"a4a58d1c5c23b06c373ba3802d0cb2fa4b8e512c","tarball":"https://registry.npmjs.org/@posthog/agent-toolkit/-/agent-toolkit-0.2.0.tgz","fileCount":20,"integrity":"sha512-RQXmTe/EYaaTp/obAuqQoZnHBxkwYSO/dnp0LZo1EfsFumIdC7X8LttZIPEb9cIL9Qiw9fgnX4+heQrEMSie+A==","signatures":[{"sig":"MEQCIH2bQ2aRY+yk6eORiD6wO0yay/df4zReS0yhrDSgLwooAiBbBS0Xjg6nb+RmWX+g4vYd0+ZoREeOnQYBpTIWpnhnsQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":832953},"main":"dist/index.js","_from":"file:posthog-agent-toolkit-0.2.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./tools":{"types":"./dist/tools.d.ts","import":"./dist/tools.mjs","require":"./dist/tools.js"},"./integrations/ai-sdk":{"types":"./dist/ai-sdk.d.ts","import":"./dist/ai-sdk.mjs","require":"./dist/ai-sdk.js"},"./integrations/langchain":{"types":"./dist/langchain.d.ts","import":"./dist/langchain.mjs","require":"./dist/langchain.js"}},"scripts":{"dev":"wrangler dev","test":"vitest","build":"tsup","deploy":"wrangler deploy","inspector":"npx @modelcontextprotocol/inspector npx -y mcp-remote@latest http://localhost:8787/mcp","typecheck":"tsc --noEmit","cf-typegen":"wrangler types","test:watch":"vitest watch","test:integration":"vitest run --config vitest.integration.config.mts"},"_npmUser":{"name":"joshuasnyder","email":"joshua@timenavi.com"},"_resolved":"/tmp/8dbae09686999c0f6035ae905bdf5300/posthog-agent-toolkit-0.2.0.tgz","_integrity":"sha512-RQXmTe/EYaaTp/obAuqQoZnHBxkwYSO/dnp0LZo1EfsFumIdC7X8LttZIPEb9cIL9Qiw9fgnX4+heQrEMSie+A==","deprecated":"This was an attempt at exposing some of our internals for ease of use when integrating with the PostHog AI agent. We decided to implement the PostHog AI agent differently which means this package is not useful anymore. Please, do NOT use it in production, communicate with PostHog for AI purposes via our MCP.","_npmVersion":"10.8.2","description":"PostHog tools for AI agents","directories":{},"_nodeVersion":"18.20.8","dependencies":{"ai":"^5.0.18","zod":"^3.24.4","agents":"^0.0.113","posthog-node":"^4.18.0","@modelcontextprotocol/sdk":"^1.17.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","uuid":"^11.1.0","vite":"^5.0.0","dotenv":"^16.4.7","vitest":"^3.2.4","wrangler":"^4.14.4","langchain":"^0.3.31","typescript":"^5.8.3","@types/node":"^22.15.34","@types/dotenv":"^6.1.1","@langchain/core":"^0.3.72","@langchain/openai":"^0.6.9","zod-to-json-schema":"^3.24.6","vite-tsconfig-paths":"^5.1.4"},"peerDependencies":{"ai":"^5.0.0","langchain":"^0.3.31","@langchain/core":"^0.3.72","@langchain/openai":"^0.6.9"},"_npmOperationalInternal":{"tmp":"tmp/agent-toolkit_0.2.0_1757598382413_0.7804782008299387","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@posthog/agent-toolkit","version":"0.2.1","keywords":["posthog","mcp","ai","agents","analytics","feature-flags"],"author":{"name":"PostHog Inc."},"license":"MIT","_id":"@posthog/agent-toolkit@0.2.1","maintainers":[{"name":"watilo","email":"corywatilo@gmail.com"},{"name":"twixes","email":"dev@twixes.com"},{"name":"fuziontech","email":"fuziontech@gmail.com"},{"name":"mariusandra","email":"marius.andra@gmail.com"},{"name":"ben-posthog","email":"ben@posthog.com"},{"name":"timgl","email":"tim@posthog.com"},{"name":"fraserhopper","email":"fraser@posthog.com"},{"name":"manoelposthog","email":"manoel@posthog.com"},{"name":"robbie-c","email":"robbie.coomber@gmail.com"},{"name":"adamleithp","email":"adamleithp@gmail.com"},{"name":"peterkirkhamposthog","email":"peter@posthog.com"},{"name":"joshuasnyder","email":"joshua@timenavi.com"},{"name":"huguespouillot","email":"hpouillot@gmail.com"},{"name":"david-posthog","email":"david@posthog.com"}],"dist":{"shasum":"9a820a380216e1f16f76e0e7d161cbaa086f5ef0","tarball":"https://registry.npmjs.org/@posthog/agent-toolkit/-/agent-toolkit-0.2.1.tgz","fileCount":20,"integrity":"sha512-J2eSER75ri4QL7Cg588PSuVS1rFyL1ZTNvnXVSTSCXEgpShZS8nm3Cb9r03EPiYYIoElm2TJ2EQnRdXYX9Jx7A==","signatures":[{"sig":"MEUCIQCkWDsEuI4hNxe9oV4pMb7Ktl7ygJon0apuCy/Rd5PSsgIgBRW/E336DJ3YE2nt1/Gbs/4LkZ9wbEHk6dMim9Ym/mk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":832953},"main":"dist/index.js","_from":"file:posthog-agent-toolkit-0.2.1.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./tools":{"types":"./dist/tools.d.ts","import":"./dist/tools.mjs","require":"./dist/tools.js"},"./integrations/ai-sdk":{"types":"./dist/ai-sdk.d.ts","import":"./dist/ai-sdk.mjs","require":"./dist/ai-sdk.js"},"./integrations/langchain":{"types":"./dist/langchain.d.ts","import":"./dist/langchain.mjs","require":"./dist/langchain.js"}},"scripts":{"dev":"wrangler dev","test":"vitest","build":"tsup","deploy":"wrangler deploy","inspector":"npx @modelcontextprotocol/inspector npx -y mcp-remote@latest http://localhost:8787/mcp","typecheck":"tsc --noEmit","cf-typegen":"wrangler types","test:watch":"vitest watch","test:integration":"vitest run --config vitest.integration.config.mts"},"_npmUser":{"name":"joshuasnyder","email":"joshua@timenavi.com"},"_resolved":"/tmp/e11a562b6b9c4203d42bc3b7373eb921/posthog-agent-toolkit-0.2.1.tgz","_integrity":"sha512-J2eSER75ri4QL7Cg588PSuVS1rFyL1ZTNvnXVSTSCXEgpShZS8nm3Cb9r03EPiYYIoElm2TJ2EQnRdXYX9Jx7A==","deprecated":"This was an attempt at exposing some of our internals for ease of use when integrating with the PostHog AI agent. We decided to implement the PostHog AI agent differently which means this package is not useful anymore. Please, do NOT use it in production, communicate with PostHog for AI purposes via our MCP.","_npmVersion":"10.8.2","description":"PostHog tools for AI agents","directories":{},"_nodeVersion":"18.20.8","dependencies":{"ai":"^5.0.18","zod":"^3.24.4","agents":"^0.0.113","posthog-node":"^4.18.0","@modelcontextprotocol/sdk":"^1.17.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","uuid":"^11.1.0","vite":"^5.0.0","dotenv":"^16.4.7","vitest":"^3.2.4","wrangler":"^4.14.4","langchain":"^0.3.31","typescript":"^5.8.3","@types/node":"^22.15.34","@types/dotenv":"^6.1.1","@langchain/core":"^0.3.72","@langchain/openai":"^0.6.9","zod-to-json-schema":"^3.24.6","vite-tsconfig-paths":"^5.1.4"},"peerDependencies":{"ai":"^5.0.0","langchain":"^0.3.31","@langchain/core":"^0.3.72","@langchain/openai":"^0.6.9"},"_npmOperationalInternal":{"tmp":"tmp/agent-toolkit_0.2.1_1757599674596_0.1278087758861044","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@posthog/agent-toolkit","version":"0.2.2","keywords":["posthog","mcp","ai","agents","analytics","feature-flags"],"author":{"name":"PostHog Inc."},"license":"MIT","_id":"@posthog/agent-toolkit@0.2.2","maintainers":[{"name":"watilo","email":"corywatilo@gmail.com"},{"name":"twixes","email":"dev@twixes.com"},{"name":"fuziontech","email":"fuziontech@gmail.com"},{"name":"mariusandra","email":"marius.andra@gmail.com"},{"name":"ben-posthog","email":"ben@posthog.com"},{"name":"timgl","email":"tim@posthog.com"},{"name":"fraserhopper","email":"fraser@posthog.com"},{"name":"manoelposthog","email":"manoel@posthog.com"},{"name":"robbie-c","email":"robbie.coomber@gmail.com"},{"name":"adamleithp","email":"adamleithp@gmail.com"},{"name":"peterkirkhamposthog","email":"peter@posthog.com"},{"name":"joshuasnyder","email":"joshua@timenavi.com"},{"name":"huguespouillot","email":"hpouillot@gmail.com"},{"name":"david-posthog","email":"david@posthog.com"}],"dist":{"shasum":"c754ad767a7a291dbc909b156989b747cd113658","tarball":"https://registry.npmjs.org/@posthog/agent-toolkit/-/agent-toolkit-0.2.2.tgz","fileCount":20,"integrity":"sha512-E94sqYtGe3+oTuR30trmAKeTNnOPbKFx1W0fqd/iOqCuHeKLEZg4vVzRGdJ8nYQjUcVcTLDq+z54opEKYf09Pg==","signatures":[{"sig":"MEUCIQCxVULFkJoogrBmJguKE7jBwUkZLxMipczDbgBheTbMrQIgKYyYpLqGSUuIOetBoUlp0t5BkDN401kuo/EXy4Lyb6g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":844153},"main":"dist/index.js","_from":"file:posthog-agent-toolkit-0.2.2.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./tools":{"types":"./dist/tools.d.ts","import":"./dist/tools.mjs","require":"./dist/tools.js"},"./integrations/ai-sdk":{"types":"./dist/ai-sdk.d.ts","import":"./dist/ai-sdk.mjs","require":"./dist/ai-sdk.js"},"./integrations/langchain":{"types":"./dist/langchain.d.ts","import":"./dist/langchain.mjs","require":"./dist/langchain.js"}},"scripts":{"dev":"wrangler dev","test":"vitest","build":"tsup","deploy":"wrangler deploy","inspector":"npx @modelcontextprotocol/inspector npx -y mcp-remote@latest http://localhost:8787/mcp","typecheck":"tsc --noEmit","cf-typegen":"wrangler types","test:watch":"vitest watch","test:integration":"vitest run --config vitest.integration.config.mts"},"_npmUser":{"name":"joshuasnyder","email":"joshua@timenavi.com"},"_resolved":"/tmp/4f063cdfb4133b2befbd9aae6cafef18/posthog-agent-toolkit-0.2.2.tgz","_integrity":"sha512-E94sqYtGe3+oTuR30trmAKeTNnOPbKFx1W0fqd/iOqCuHeKLEZg4vVzRGdJ8nYQjUcVcTLDq+z54opEKYf09Pg==","deprecated":"This was an attempt at exposing some of our internals for ease of use when integrating with the PostHog AI agent. We decided to implement the PostHog AI agent differently which means this package is not useful anymore. Please, do NOT use it in production, communicate with PostHog for AI purposes via our MCP.","_npmVersion":"10.8.2","description":"PostHog tools for AI agents","directories":{},"_nodeVersion":"18.20.8","dependencies":{"ai":"^5.0.18","zod":"^3.24.4","agents":"^0.0.113","posthog-node":"^4.18.0","@modelcontextprotocol/sdk":"^1.17.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","uuid":"^11.1.0","vite":"^5.0.0","dotenv":"^16.4.7","vitest":"^3.2.4","wrangler":"^4.14.4","langchain":"^0.3.31","typescript":"^5.8.3","@types/node":"^22.15.34","@types/dotenv":"^6.1.1","@langchain/core":"^0.3.72","@langchain/openai":"^0.6.9","zod-to-json-schema":"^3.24.6","vite-tsconfig-paths":"^5.1.4"},"peerDependencies":{"ai":"^5.0.0","langchain":"^0.3.31","@langchain/core":"^0.3.72","@langchain/openai":"^0.6.9"},"_npmOperationalInternal":{"tmp":"tmp/agent-toolkit_0.2.2_1757671205294_0.9724184664303912","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@posthog/agent-toolkit","version":"0.2.4","keywords":["posthog","mcp","ai","agents","analytics","feature-flags"],"author":{"name":"PostHog Inc."},"license":"MIT","_id":"@posthog/agent-toolkit@0.2.4","maintainers":[{"name":"watilo","email":"corywatilo@gmail.com"},{"name":"twixes","email":"dev@twixes.com"},{"name":"fuziontech","email":"fuziontech@gmail.com"},{"name":"mariusandra","email":"marius.andra@gmail.com"},{"name":"ben-posthog","email":"ben@posthog.com"},{"name":"timgl","email":"tim@posthog.com"},{"name":"fraserhopper","email":"fraser@posthog.com"},{"name":"manoelposthog","email":"manoel@posthog.com"},{"name":"robbie-c","email":"robbie.coomber@gmail.com"},{"name":"adamleithp","email":"adamleithp@gmail.com"},{"name":"peterkirkhamposthog","email":"peter@posthog.com"},{"name":"joshuasnyder","email":"joshua@timenavi.com"},{"name":"huguespouillot","email":"hpouillot@gmail.com"},{"name":"david-posthog","email":"david@posthog.com"}],"dist":{"shasum":"966d9a7aef23c44eb8722fc9f3afb6db09122591","tarball":"https://registry.npmjs.org/@posthog/agent-toolkit/-/agent-toolkit-0.2.4.tgz","fileCount":21,"integrity":"sha512-mG097NgYDatH9FziZCeILV6nlEanEuhZoQ+QfI7QZhtEI7yAdgK9oPaeum8eH8B/rG6OVwhUFRRHcrskWAe9tQ==","signatures":[{"sig":"MEUCIANdyDyO0or/7OD9lS4rntZIRRWrhs7X+9F9hW6m6dQhAiEA+5L2N12+xKMjJ5cmgm+/dFVYxDV0aadNO4dfAH5MHfs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2748726},"main":"dist/index.js","_from":"file:posthog-agent-toolkit-0.2.4.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./tools":{"types":"./dist/tools.d.ts","import":"./dist/tools.mjs","require":"./dist/tools.js"},"./integrations/ai-sdk":{"types":"./dist/ai-sdk.d.ts","import":"./dist/ai-sdk.mjs","require":"./dist/ai-sdk.js"},"./integrations/langchain":{"types":"./dist/langchain.d.ts","import":"./dist/langchain.mjs","require":"./dist/langchain.js"}},"scripts":{"dev":"wrangler dev","test":"vitest","build":"tsup","deploy":"wrangler deploy","inspector":"npx @modelcontextprotocol/inspector@0.15.0 npx -y mcp-remote@latest http://localhost:8787/mcp","typecheck":"tsc --noEmit","cf-typegen":"wrangler types","test:watch":"vitest watch","generate-client":"tsx scripts/update-openapi-client.ts","test:integration":"vitest run --config vitest.integration.config.mts"},"_npmUser":{"name":"timgl","email":"tim@posthog.com"},"_resolved":"/tmp/95a32627315804e61cd824f84c92966c/posthog-agent-toolkit-0.2.4.tgz","_integrity":"sha512-mG097NgYDatH9FziZCeILV6nlEanEuhZoQ+QfI7QZhtEI7yAdgK9oPaeum8eH8B/rG6OVwhUFRRHcrskWAe9tQ==","deprecated":"This was an attempt at exposing some of our internals for ease of use when integrating with the PostHog AI agent. We decided to implement the PostHog AI agent differently which means this package is not useful anymore. Please, do NOT use it in production, communicate with PostHog for AI purposes via our MCP.","_npmVersion":"10.9.4","description":"PostHog tools for AI agents","directories":{},"_nodeVersion":"22.21.1","dependencies":{"ai":"^5.0.18","zod":"^3.24.4","uuid":"^11.1.0","agents":"^0.0.113","fflate":"^0.7.4","posthog-node":"^4.18.0","@modelcontextprotocol/sdk":"^1.17.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.5","tsup":"^8.5.0","vite":"^5.0.0","dotenv":"^16.4.7","vitest":"^3.2.4","wrangler":"^4.14.4","langchain":"^0.3.31","typescript":"^5.8.3","@types/node":"^22.15.34","@types/dotenv":"^6.1.1","typed-openapi":"^2.2.2","@langchain/core":"^0.3.72","@langchain/openai":"^0.6.9","zod-to-json-schema":"^3.24.6","vite-tsconfig-paths":"^5.1.4"},"peerDependencies":{"ai":"^5.0.0","langchain":"^0.3.31","@langchain/core":"^0.3.72","@langchain/openai":"^0.6.9"},"_npmOperationalInternal":{"tmp":"tmp/agent-toolkit_0.2.4_1763068869348_0.904241168463034","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-09-02T16:23:42.784Z","modified":"2026-11-18T19:37:53.246Z","0.1.0":"2025-09-02T16:23:43.445Z","0.2.0":"2025-09-11T13:46:22.627Z","0.2.1":"2025-09-11T14:07:54.813Z","0.2.2":"2025-09-12T10:00:05.519Z","0.2.4":"2025-11-13T21:21:09.579Z"},"author":{"name":"PostHog Inc."},"license":"MIT","keywords":["posthog","mcp","ai","agents","analytics","feature-flags"],"description":"PostHog tools for AI agents","maintainers":[{"email":"fuziontech@gmail.com","name":"fuziontech"},{"email":"marius.andra@gmail.com","name":"mariusandra"},{"email":"ben@posthog.com","name":"ben-posthog"},{"email":"tim@posthog.com","name":"timgl"},{"email":"rafael@posthog.com","name":"rafael_posthog"},{"email":"fraser@posthog.com","name":"fraserhopper"},{"email":"manoel@posthog.com","name":"manoelposthog"},{"email":"robbie.coomber@gmail.com","name":"robbie-c"},{"email":"gustavo@posthog.com","name":"gustavostrassburger"},{"email":"dustinsbyrne@gmail.com","name":"dustinbyrne"},{"email":"feliperalmeida@gmail.com","name":"feliperalmeida"},{"email":"lucasheriques@gmail.com","name":"lucasheriques"},{"email":"frank@posthog.com","name":"frankposthog"},{"email":"tom.p@posthog.com","name":"tom-posthog"},{"email":"adamleithp@gmail.com","name":"adamleithp"},{"email":"raul@raulnegron.me","name":"rauln"},{"email":"sasanders26@gmail.com","name":"sarahxsanders"},{"email":"annaegarcia+npm@gmail.com","name":"annagarcia"},{"email":"peter@posthog.com","name":"peterkirkhamposthog"},{"email":"yiannis@posthog.com","name":"ioannisj"},{"email":"hpouillot@gmail.com","name":"huguespouillot"}],"readme":"# @posthog/agent-toolkit\n\nTools to give agents access to your PostHog data, manage feature flags, create insights, and more.\n\n## Installation\n\n```bash\nnpm install @posthog/agent-toolkit\n```\n\n## Quick Start\n\nThe toolkit provides integrations for popular AI frameworks:\n\n### Using with Vercel AI SDK\n\n```typescript\nimport { openai } from '@ai-sdk/openai'\nimport { generateText } from 'ai'\n\nimport { PostHogAgentToolkit } from '@posthog/agent-toolkit/integrations/ai-sdk'\n\nconst toolkit = new PostHogAgentToolkit({\n  posthogPersonalApiKey: process.env.POSTHOG_PERSONAL_API_KEY!,\n  posthogApiBaseUrl: 'https://us.posthog.com', // or https://eu.posthog.com if you are hosting in the EU\n})\n\nconst result = await generateText({\n  model: openai('gpt-4'),\n  tools: await toolkit.getTools(),\n  prompt:\n    'Analyze our product usage by getting the top 5 most interesting insights and summarising the data from them.',\n})\n```\n\n**[→ See full Vercel AI SDK example](https://github.com/PostHog/posthog/tree/master/products/mcp/examples/ai-sdk)**\n\n### Using with LangChain.js\n\n```typescript\nimport { ChatPromptTemplate, MessagesPlaceholder } from '@langchain/core/prompts'\nimport { ChatOpenAI } from '@langchain/openai'\nimport { AgentExecutor, createToolCallingAgent } from 'langchain/agents'\n\nimport { PostHogAgentToolkit } from '@posthog/agent-toolkit/integrations/langchain'\n\nconst toolkit = new PostHogAgentToolkit({\n  posthogPersonalApiKey: process.env.POSTHOG_PERSONAL_API_KEY!,\n  posthogApiBaseUrl: 'https://us.posthog.com', // or https://eu.posthog.com if you are hosting in the EU\n})\n\nconst tools = await toolkit.getTools()\nconst llm = new ChatOpenAI({ model: 'gpt-4' })\n\nconst prompt = ChatPromptTemplate.fromMessages([\n  ['system', 'You are a data analyst with access to PostHog analytics'],\n  ['human', '{input}'],\n  new MessagesPlaceholder('agent_scratchpad'),\n])\n\nconst agent = createToolCallingAgent({ llm, tools, prompt })\nconst executor = new AgentExecutor({ agent, tools })\n\nconst result = await executor.invoke({\n  input: 'Analyze our product usage by getting the top 5 most interesting insights and summarising the data from them.',\n})\n```\n\n**[→ See full LangChain.js example](https://github.com/PostHog/posthog/tree/master/products/mcp/examples/langchain-js)**\n\n## Available Tools\n\nFor a list of all available tools, please see the [docs](https://posthog.com/docs/model-context-protocol).\n","readmeFilename":"README.md"}