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.

fix(mcp): Add yaml dependency to MCP build (#72945)

mendral-app[bot]10b5d8ea8581
diff --git a/services/mcp/Dockerfile b/services/mcp/Dockerfile
index aa0f59212b52..ace4106d4f16 100644
--- a/services/mcp/Dockerfile
+++ b/services/mcp/Dockerfile
@@ -38,6 +38,10 @@ COPY patches/ patches/
# source after, so source edits don't bust the install cache.
COPY services/mcp/package.json services/mcp/package.json
COPY tools/openapi-codegen/package.json tools/openapi-codegen/package.json
+# @posthog/mcp depends on @posthog/products-ai-observability (workspace:*) —
+# pnpm needs its manifest to resolve the dependency graph and install its
+# transitive deps (e.g. yaml).
+COPY products/ai_observability/package.json products/ai_observability/package.json
# UI apps depend on @posthog/quill — copy all its workspace manifests so pnpm
# can resolve the full dependency graph during install.
COPY packages/ packages/