: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
chore(mcp-store): cross-link web and desktop MCP store UI docs (#83214)
Chris Volzera84c16e59f5b
diff --git a/.claude/rules/mcp-store-parity.md b/.claude/rules/mcp-store-parity.mdnew file mode 100644index 000000000000..970e4db8ec88--- /dev/null+++ b/.claude/rules/mcp-store-parity.md@@ -0,0 +1,17 @@+---+paths:+ - 'products/mcp_store/**'+ - 'products/desktop/packages/ui/src/features/mcp-servers/**'+ - 'products/desktop/packages/ui/src/features/mcp-gateway/**'+ - 'products/desktop/packages/ui/src/features/mcp-server-manager/**'+ - 'products/desktop/packages/api-client/src/mcp-gateway.ts'+---++The MCP store UI is implemented twice against the same backend and feature flags, with no shared UI code:+the web app (`products/mcp_store/frontend/`, Kea + LemonUI) and PostHog Desktop+(`products/desktop/packages/ui/src/features/mcp-servers/`, `mcp-gateway/`, `mcp-server-manager/`; TanStack Query + quill).+The feature set always changes for both apps together: when you change the feature set or UI in one app,+make the equivalent change in the other, in the same PR or an explicitly linked follow-up.+Changes to serializers the gateway UI consumes also need the desktop's hand-written type mirrors in+`products/desktop/packages/api-client/src/mcp-gateway.ts` updated.+See "Keep the desktop UI in sync" in `products/mcp_store/README.md` for the directory mapping.diff --git a/products/desktop/packages/ui/src/features/mcp-gateway/README.md b/products/desktop/packages/ui/src/features/mcp-gateway/README.mdnew file mode 100644index 000000000000..0f174470806c--- /dev/null+++ b/products/desktop/packages/ui/src/features/mcp-gateway/README.md@@ -0,0 +1,14 @@+# MCP gateway (desktop)++The desktop UI for the team MCP gateway: servers home, server/agent/member detail pages, team settings, and the audit log.+Rendered by `../mcp-servers/components/McpServersView.tsx` when the `MCP_GATEWAY_FLAG` feature flag is on.++## Keep the web app in sync++This is one half of a deliberately duplicated UI.+The PostHog web app ships its own implementation at `products/mcp_store/frontend/gateway/` (Kea + LemonUI), plus a Settings-embedded variant in `products/mcp_store/frontend/settings/`.+Both consume the same gateway REST API (`products/mcp_store/backend/presentation/gateway_views.py`).+The desktop's request/response types are hand-written mirrors in `packages/api-client/src/mcp-gateway.ts`, so serializer changes must update those too.+The MCP store feature set always changes for both apps together: when you change the feature set or UI here, make the equivalent change in the web app in the same PR, or open an explicitly linked follow-up — and vice versa.++`products/mcp_store/README.md` is the canonical doc for the whole product, including the directory mapping between the two apps.diff --git a/products/desktop/packages/ui/src/features/mcp-server-manager/README.md b/products/desktop/packages/ui/src/features/mcp-server-manager/README.mdnew file mode 100644index 000000000000..9bb4a1a6a36c--- /dev/null+++ b/products/desktop/packages/ui/src/features/mcp-server-manager/README.md@@ -0,0 +1,10 @@+# MCP server manager (desktop)++The add-custom-MCP-server flow (dialog, form, and connect hook), used by the marketplace in `../mcp-servers/` and by agent configuration.++## Keep the web app in sync++The PostHog web app ships its own custom-server flow at `products/mcp_store/frontend/scene/AddCustomServerForm.tsx` against the same backend.+The MCP store feature set always changes for both apps together: when you change the flow here, make the equivalent change in the web app in the same PR, or open an explicitly linked follow-up — and vice versa.++See `../mcp-servers/README.md` and `products/mcp_store/README.md` (the canonical doc for the whole product).diff --git a/products/desktop/packages/ui/src/features/mcp-servers/README.md b/products/desktop/packages/ui/src/features/mcp-servers/README.mdnew file mode 100644index 000000000000..150ae17d4c28--- /dev/null+++ b/products/desktop/packages/ui/src/features/mcp-servers/README.md@@ -0,0 +1,13 @@+# MCP servers (desktop)++The desktop marketplace UI for the MCP store: browse the curated catalog, connect servers, and manage installations.+`components/McpServersView.tsx` is the entry point; when the `MCP_GATEWAY_FLAG` feature flag is on it renders the team gateway experience from `../mcp-gateway/` instead of the legacy marketplace.++## Keep the web app in sync++This is one half of a deliberately duplicated UI.+The PostHog web app ships its own implementation of the same product at `products/mcp_store/frontend/` (Kea + LemonUI; the marketplace lives in `scene/`).+Both consume the same backend (`products/mcp_store/backend/`) and the same feature flags, but share no UI code.+The MCP store feature set always changes for both apps together: when you change the feature set or UI here, make the equivalent change in the web app in the same PR, or open an explicitly linked follow-up — and vice versa.++`products/mcp_store/README.md` is the canonical doc for the whole product, including the directory mapping between the two apps.diff --git a/products/mcp_store/README.md b/products/mcp_store/README.mdindex 0aee495aeaad..6feda68100db 100644--- a/products/mcp_store/README.md+++ b/products/mcp_store/README.md@@ -5,6 +5,23 @@ Connected servers are consumed by agent surfaces via the `backend/facade/` packaThis is unrelated to `products/*/mcp/tools.yaml`, which exposes PostHog's own endpoints as MCP tools.+## Keep the desktop UI in sync++PostHog Desktop ships its own, independently written frontend for this product — same backend, same feature flags, no shared UI code:++| This product (web app) | PostHog Desktop equivalent |+| ----------------------------------------------------- | --------------------------------------------------------------- |+| `frontend/scene/` (marketplace) | `products/desktop/packages/ui/src/features/mcp-servers/` |+| `frontend/gateway/` + `frontend/settings/` (gateway) | `products/desktop/packages/ui/src/features/mcp-gateway/` |+| `frontend/scene/AddCustomServerForm.tsx` (custom add) | `products/desktop/packages/ui/src/features/mcp-server-manager/` |++The implementations are parallel, not shared: web uses Kea + LemonUI, desktop uses TanStack Query + quill.+The desktop also hand-writes its gateway API types in `products/desktop/packages/api-client/src/mcp-gateway.ts` as mirrors of the serializers in `backend/presentation/gateway_views.py`.++The MCP store feature set always changes for both apps together.+When you change the frontend here — a new workflow, control, state, or flag gate — make the equivalent change in the desktop features above in the same PR, or open an explicitly linked follow-up.+When you change a serializer the gateway UI consumes, update the desktop's hand-written mirrors too.+## Settings experience and rolloutTwo independent feature flags gate two surfaces — neither flag depends on the other: