: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
feat(mcp-store): show auth type and URL on the gateway server detail (#93417)
Chris Volzer93e6a7fd4132
diff --git a/products/mcp_store/frontend/gateway/GatewayServerScene.tsx b/products/mcp_store/frontend/gateway/GatewayServerScene.tsxindex 0d38cb971454..724338d7aa87 100644--- a/products/mcp_store/frontend/gateway/GatewayServerScene.tsx+++ b/products/mcp_store/frontend/gateway/GatewayServerScene.tsx@@ -22,7 +22,7 @@ import { userLogic } from 'scenes/userLogic'import { SceneContent } from '~/layout/scenes/components/SceneContent'-import { MCPToolApprovalStateEnumApi, ResolvedToolPolicyApi } from '../generated/api.schemas'+import { MCPAuthTypeEnumApi, MCPToolApprovalStateEnumApi, ResolvedToolPolicyApi } from '../generated/api.schemas'import { ServerIcon } from '../scene/icons'import { isPolicyStateAllowedByCeiling } from './gatewayPolicyUtils'import { GatewayRouteGuard } from './GatewayRouteGuard'@@ -33,6 +33,11 @@ import { GatewayServersLoadError } from './GatewayServersHome'import { POLICY_OPTIONS, PolicySummary } from './gatewayUtils'import { mcpGatewayLogic } from './mcpGatewayLogic'+const AUTH_TYPE_LABELS: Record<MCPAuthTypeEnumApi, string> = {+ api_key: 'API key',+ oauth: 'OAuth',+}+export const scene: SceneExport<(typeof gatewayServerLogic)['props']> = {component: GatewayServerRouteScene,paramsToProps: ({ params: { id } }) => ({ id }),@@ -130,9 +135,16 @@ export function GatewayServerScene({</div>{server.description && <div className="text-secondary mt-1">{server.description}</div>}<div className="flex items-center gap-3 mt-2 text-xs text-secondary">- {server.created_by && (- <span>Added by {server.created_by.first_name || server.created_by.email}</span>- )}+ <span className="min-w-0 truncate">+ {[+ server.created_by &&+ `Added by ${server.created_by.first_name || server.created_by.email}`,+ server.template_auth_type && AUTH_TYPE_LABELS[server.template_auth_type],+ server.url,+ ]+ .filter(Boolean)+ .join(' · ')}+ </span>{server.docs_url && (<LemonButtonsize="xsmall"