Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

feat(platform): add PostHog MCP and complete integration icons (#14859)

Nicholas Tindled8d13b2afec8
diff --git a/.github/workflows/platform-backend-ci.yml b/.github/workflows/platform-backend-ci.yml
index 94c51011d1..5489261050 100644
--- a/.github/workflows/platform-backend-ci.yml
+++ b/.github/workflows/platform-backend-ci.yml
@@ -16,6 +16,7 @@ on:
- ".github/scripts/backend-allowed-skips.json"
- "autogpt_platform/backend/**"
- "autogpt_platform/autogpt_libs/**"
+ - "autogpt_platform/frontend/public/integrations/**"
pull_request:
branches: [master, dev, release-*]
paths:
@@ -31,6 +32,7 @@ on:
- ".github/scripts/backend-allowed-skips.json"
- "autogpt_platform/backend/**"
- "autogpt_platform/autogpt_libs/**"
+ - "autogpt_platform/frontend/public/integrations/**"
merge_group:
# On-demand run of the full backend test + coverage suite for any branch.
# Useful when a branch's changes don't match the paths filter above (so the
diff --git a/autogpt_platform/backend/backend/integrations/mcp_catalog.json b/autogpt_platform/backend/backend/integrations/mcp_catalog.json
index 954babbe89..98d542ed16 100644
--- a/autogpt_platform/backend/backend/integrations/mcp_catalog.json
+++ b/autogpt_platform/backend/backend/integrations/mcp_catalog.json
@@ -871,6 +871,22 @@
"icon_id": "plain"
}
},
+ {
+ "name": "mcp_posthog",
+ "display_name": "PostHog",
+ "description": "Query product analytics and insights, investigate errors, and manage feature flags and experiments.",
+ "mcp_server": {
+ "server_url": "https://mcp.posthog.com/mcp",
+ "documentation_url": "https://posthog.com/docs/model-context-protocol",
+ "setup_instructions": "Sign in to PostHog; your account determines the US or EU data region. Alternatively, use a personal API key with the MCP Server preset. Review the requested permissions and active project before making changes. AI-powered tools require AI data processing to be enabled and may incur PostHog AI charges.",
+ "connection_mode": "hosted",
+ "auth_methods": [
+ "oauth",
+ "bearer"
+ ],
+ "icon_id": "posthog"
+ }
+ },
{
"name": "mcp_runlayer",
"display_name": "Runlayer",
diff --git a/autogpt_platform/backend/backend/integrations/mcp_catalog_test.py b/autogpt_platform/backend/backend/integrations/mcp_catalog_test.py
index c038dc434f..2938165df8 100644
--- a/autogpt_platform/backend/backend/integrations/mcp_catalog_test.py
+++ b/autogpt_platform/backend/backend/integrations/mcp_catalog_test.py
@@ -8,6 +8,7 @@ from backend.integrations.mcp_catalog import (
MCPCatalogEntry,
MCPServerMetadata,
get_mcp_catalog,
+ get_mcp_catalog_entry_for_url,
parse_mcp_catalog,
)
@@ -16,6 +17,21 @@ def test_catalog_loads_validated_entries():
assert get_mcp_catalog()
+def test_posthog_catalog_entry_uses_hosted_authentication():
+ entry = get_mcp_catalog_entry_for_url("https://mcp.posthog.com/mcp")
+
+ assert entry is not None
+ assert entry.name == "mcp_posthog"
+ assert entry.display_name == "PostHog"
+ assert entry.mcp_server.icon_id == "posthog"
+ assert entry.mcp_server.connection_mode == "hosted"
+ assert entry.mcp_server.auth_methods == ["oauth", "bearer"]
+ assert (
+ entry.mcp_server.documentation_url
+ == "https://posthog.com/docs/model-context-protocol"
+ )
+
+
@pytest.mark.parametrize(
"url",
[
@@ -161,8 +177,6 @@ def catalog_entry(name, server):
],
)
def test_catalog_matches_only_complete_known_urls(url, matched):
- from backend.integrations.mcp_catalog import get_mcp_catalog_entry_for_url
-
entry = catalog_entry(
"mcp_vendor",
{
diff --git a/autogpt_platform/backend/backend/integrations/provider_logos_test.py b/autogpt_platform/backend/backend/integrations/provider_logos_test.py
new file mode 100644
index 0000000000..8b101c2195
--- /dev/null
+++ b/autogpt_platform/backend/backend/integrations/provider_logos_test.py
@@ -0,0 +1,38 @@
+from pathlib import Path
+
+import pytest
+from PIL import Image
+
+from backend.api.features.integrations.models import get_all_provider_names
+from backend.blocks import load_all_blocks
+from backend.integrations.mcp_catalog import MCPCatalogEntry, get_mcp_catalog
+
+LOGO_DIRECTORY = (
+ Path(__file__).resolve().parents[3] / "frontend" / "public" / "integrations"
+)
+
+
+def block_provider_names() -> list[str]:
+ load_all_blocks()
+ return get_all_provider_names()
+
+
[email protected]("provider", block_provider_names())
+def test_every_block_provider_has_a_logo(provider: str):
+ # Match the display aliases in toConnectableProviders and integrationIconSrc.
+ aliases = {"codex": "openai.png", "microsoft_365_copilot": "microsoft.webp"}
+ assert_logo_image(aliases.get(provider, f"{provider}.png"))
+
+
[email protected]("entry", get_mcp_catalog(), ids=lambda entry: entry.name)
+def test_every_mcp_provider_has_a_logo(entry: MCPCatalogEntry):
+ assert entry.mcp_server.icon_id, f"{entry.name} must declare an icon_id"
+ assert_logo_image(f"{entry.mcp_server.icon_id}.png")
+
+
+def assert_logo_image(filename: str):
+ path = LOGO_DIRECTORY / filename
+ assert path.is_file(), f"Missing provider logo: public/integrations/{filename}"
+ with Image.open(path) as image:
+ image.load()
+ assert image.width > 0 and image.height > 0, f"Empty provider logo: {filename}"
diff --git a/autogpt_platform/frontend/public/integrations/HUGEICONS-LICENSE.txt b/autogpt_platform/frontend/public/integrations/HUGEICONS-LICENSE.txt
new file mode 100644
index 0000000000..c4b0438427
--- /dev/null
+++ b/autogpt_platform/frontend/public/integrations/HUGEICONS-LICENSE.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 Hugeicons
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/autogpt_platform/frontend/public/integrations/README.md b/autogpt_platform/frontend/public/integrations/README.md
new file mode 100644
index 0000000000..54d5db46fd
--- /dev/null
+++ b/autogpt_platform/frontend/public/integrations/README.md
@@ -0,0 +1,17 @@
+# Integration logo sources
+
+These logos identify their respective services. The files below are unmodified PNG assets from the services' official websites or brand repositories.
+
+The generic `database.png` and `generic_webhook.png` icons are rendered from `Database02Icon` and `WebhookIcon` in the project's `@hugeicons/core-free-icons` 4.2.3 package (MIT), at 128 pixels with a 2px stroke and zinc-700 color. They identify connection types rather than external brands.
+
+| Asset | Official source |
+| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `allquiet.png` | [All Quiet favicon](https://dtwty4t4iqzp9.cloudfront.net/img/favicon-v4/favicon-96x96.png), linked from [allquiet.app](https://allquiet.app) |
+| `ayrshare.png` | [Ayrshare favicon](https://www.ayrshare.com/favicon-196x196.png) |
+| `compass.png` | [Fieldy app icon](https://www.fieldy.ai/apple-touch-icon.png); the former Compass Wearable domain redirects to Fieldy |
+| `dataforb2b.png` | [DataForB2B favicon](https://dataforb2b.ai/asset/favicon-192x192.png) |
+| `elevenlabs.png` | [ElevenLabs app icon](https://elevenlabs.io/apple-icon.png) |
+| `posthog.png` | [PostHog brand logomark](https://github.com/PostHog/posthog.com/blob/master/static/brand/posthog-logomark%402x.png) |
+| `rmfg.png` | [RMFG app icon](https://rmfg.com/apple-icon.png) |
+| `stripe_link.png` | [Link app icon](https://images.stripeassets.com/fzn2n1nzq965/35yClx6UuTze6h851WsJqW/18da88ac03bd96140d16bdac62b94578/app-icon.png), linked from [link.com](https://www.link.com) |
+| `typesafe.png` | [TypeSafe app icon](https://framerusercontent.com/images/kcuF2BEp5XaVfkmFB634IPRKQH0.png), linked from [typesafe.ai](https://typesafe.ai) |
diff --git a/autogpt_platform/frontend/public/integrations/allquiet.png b/autogpt_platform/frontend/public/integrations/allquiet.png
new file mode 100644
index 0000000000..29b88901fe
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/allquiet.png differ
diff --git a/autogpt_platform/frontend/public/integrations/ayrshare.png b/autogpt_platform/frontend/public/integrations/ayrshare.png
new file mode 100644
index 0000000000..0b56000473
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/ayrshare.png differ
diff --git a/autogpt_platform/frontend/public/integrations/compass.png b/autogpt_platform/frontend/public/integrations/compass.png
new file mode 100644
index 0000000000..d130e85163
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/compass.png differ
diff --git a/autogpt_platform/frontend/public/integrations/database.png b/autogpt_platform/frontend/public/integrations/database.png
new file mode 100644
index 0000000000..213e057fbf
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/database.png differ
diff --git a/autogpt_platform/frontend/public/integrations/dataforb2b.png b/autogpt_platform/frontend/public/integrations/dataforb2b.png
new file mode 100644
index 0000000000..b7c953fd04
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/dataforb2b.png differ
diff --git a/autogpt_platform/frontend/public/integrations/elevenlabs.png b/autogpt_platform/frontend/public/integrations/elevenlabs.png
new file mode 100644
index 0000000000..a164262110
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/elevenlabs.png differ
diff --git a/autogpt_platform/frontend/public/integrations/generic_webhook.png b/autogpt_platform/frontend/public/integrations/generic_webhook.png
new file mode 100644
index 0000000000..710f2f68ff
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/generic_webhook.png differ
diff --git a/autogpt_platform/frontend/public/integrations/posthog.png b/autogpt_platform/frontend/public/integrations/posthog.png
new file mode 100644
index 0000000000..901666d031
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/posthog.png differ
diff --git a/autogpt_platform/frontend/public/integrations/rmfg.png b/autogpt_platform/frontend/public/integrations/rmfg.png
new file mode 100644
index 0000000000..5ec8431c17
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/rmfg.png differ
diff --git a/autogpt_platform/frontend/public/integrations/stripe_link.png b/autogpt_platform/frontend/public/integrations/stripe_link.png
new file mode 100644
index 0000000000..046c179024
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/stripe_link.png differ
diff --git a/autogpt_platform/frontend/public/integrations/typesafe.png b/autogpt_platform/frontend/public/integrations/typesafe.png
new file mode 100644
index 0000000000..f08abbe1a1
Binary files /dev/null and b/autogpt_platform/frontend/public/integrations/typesafe.png differ
diff --git a/autogpt_platform/frontend/scripts/integration-logos.test.ts b/autogpt_platform/frontend/scripts/integration-logos.test.ts
new file mode 100644
index 0000000000..d2afe305a9
--- /dev/null
+++ b/autogpt_platform/frontend/scripts/integration-logos.test.ts
@@ -0,0 +1,32 @@
+import { readFileSync } from "node:fs";
+import { resolve } from "node:path";
+import { describe, expect, test } from "vitest";
+import { integrationIconSrc } from "../src/components/molecules/IntegrationLogo/helpers";
+
+interface CatalogEntry {
+ name: string;
+ mcp_server: { icon_id?: string };
+}
+
+const catalog: CatalogEntry[] = JSON.parse(
+ readFileSync(
+ resolve("../backend/backend/integrations/mcp_catalog.json"),
+ "utf8",
+ ),
+);
+
+function expectPNG(provider: string) {
+ const src = integrationIconSrc(provider);
+ expect(src).toBeTruthy();
+ const bytes = readFileSync(resolve("public", `.${src}`));
+ expect([...bytes.subarray(0, 8)]).toEqual([137, 80, 78, 71, 13, 10, 26, 10]);
+ expect(bytes.readUInt32BE(16)).toBeGreaterThan(0);
+ expect(bytes.readUInt32BE(20)).toBeGreaterThan(0);
+}
+
+describe("integration logo assets", () => {
+ test.each(catalog)("$name has a bundled brand logo", (entry) => {
+ expect(entry.mcp_server.icon_id).toBeTruthy();
+ expectPNG(entry.mcp_server.icon_id!);
+ });
+});
diff --git a/autogpt_platform/frontend/src/app/(platform)/settings/integrations/__tests__/mcp-catalog.test.tsx b/autogpt_platform/frontend/src/app/(platform)/settings/integrations/__tests__/mcp-catalog.test.tsx
index cfcbff2626..0f1eb53a76 100644
--- a/autogpt_platform/frontend/src/app/(platform)/settings/integrations/__tests__/mcp-catalog.test.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/settings/integrations/__tests__/mcp-catalog.test.tsx
@@ -1,5 +1,8 @@
import { beforeEach, describe, expect, test } from "vitest";
+import { readFileSync } from "node:fs";
+import { resolve } from "node:path";
import { http, HttpResponse } from "msw";
+import type { ProviderMetadata } from "@/app/api/__generated__/models/providerMetadata";
import {
fireEvent,
render,
@@ -46,6 +49,38 @@ async function openPicker() {
}
describe("SettingsIntegrationsPage — MCP catalogue", () => {
+ test("shows PostHog branding and connection options from the shipped catalog", async () => {
+ const catalog: ProviderMetadata[] = JSON.parse(
+ readFileSync(
+ resolve("../backend/backend/integrations/mcp_catalog.json"),
+ "utf8",
+ ),
+ );
+ const posthog = catalog.find((entry) => entry.name === "mcp_posthog");
+ expect(posthog).toBeDefined();
+ server.use(getGetV1ListProvidersMockHandler([posthog!]));
+
+ render(<SettingsIntegrationsPage />);
+ const row = await screen.findByRole("button", { name: /posthog.*mcp/i });
+ expect(row.querySelector("img")?.getAttribute("src")).toBe(
+ "/integrations/posthog.png",
+ );
+ fireEvent.click(row);
+
+ const dialog = await screen.findByRole("dialog");
+ expect(
+ (await within(dialog).findByAltText("PostHog logo")).getAttribute("src"),
+ ).toBe("/integrations/posthog.png");
+ const input =
+ await within(dialog).findByLabelText<HTMLInputElement>("Server URL");
+ expect(input.value).toBe("https://mcp.posthog.com/mcp");
+ expect(input.readOnly).toBe(true);
+ expect(within(dialog).getByRole("tab", { name: /sign in/i })).toBeDefined();
+ expect(
+ within(dialog).getByRole("tab", { name: /api token/i }),
+ ).toBeDefined();
+ });
+
test("lists native providers and branded MCP entries together", async () => {
render(<SettingsIntegrationsPage />);
expect(