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-store): clean up gateway server page backgrounds and spacing (#83191)

Chris Volzer1df14b8872b6
diff --git a/products/mcp_store/frontend/gateway/GatewayServerAccess.tsx b/products/mcp_store/frontend/gateway/GatewayServerAccess.tsx
index ecd143b0c0bd..ee37c045008f 100644
--- a/products/mcp_store/frontend/gateway/GatewayServerAccess.tsx
+++ b/products/mcp_store/frontend/gateway/GatewayServerAccess.tsx
@@ -80,7 +80,7 @@ export function GatewayAccessSection(): JSX.Element | null {
No one has connected yet.
</div>
) : (
- <div className="border rounded divide-y">
+ <div className="border rounded divide-y bg-surface-primary">
{connections.map((connection) => {
const isYou = connection.installation_id === yourInstallationId
const accessRevoked = server.revoked_user_ids.includes(connection.user.id)
@@ -136,7 +136,7 @@ export function GatewayAccessSection(): JSX.Element | null {
</>
)}
- <div className="flex items-center gap-2 mt-3">
+ <div className="flex items-center gap-2">
<span className="text-xs uppercase text-secondary font-semibold">Agents</span>
<LemonTag type="muted" size="small">
{server.agents.length}
@@ -163,7 +163,7 @@ export function GatewayAccessSection(): JSX.Element | null {
No agents have access. Share your connection and choose which tools the agent may call.
</div>
) : (
- <div className="border rounded divide-y">
+ <div className="border rounded divide-y bg-surface-primary">
{server.agents.map((agent) => {
const sharedByYou = agent.user.id === currentUserId
const agentShareCount = server.agents.filter(
diff --git a/products/mcp_store/frontend/gateway/GatewayServerScene.tsx b/products/mcp_store/frontend/gateway/GatewayServerScene.tsx
index 91704ef75be2..0d38cb971454 100644
--- a/products/mcp_store/frontend/gateway/GatewayServerScene.tsx
+++ b/products/mcp_store/frontend/gateway/GatewayServerScene.tsx
@@ -33,12 +33,6 @@ import { GatewayServersLoadError } from './GatewayServersHome'
import { POLICY_OPTIONS, PolicySummary } from './gatewayUtils'
import { mcpGatewayLogic } from './mcpGatewayLogic'
-const TOOL_POLICY_BACKGROUND_CLASSES: Record<MCPToolApprovalStateEnumApi, string> = {
- approved: 'bg-success-highlight',
- needs_approval: 'bg-warning-highlight',
- do_not_use: 'bg-danger-highlight',
-}
-
export const scene: SceneExport<(typeof gatewayServerLogic)['props']> = {
component: GatewayServerRouteScene,
paramsToProps: ({ params: { id } }) => ({ id }),
@@ -70,11 +64,11 @@ export function GatewayServerScene({
const goBack = onBack ?? (() => router.actions.push(urls.mcpGateway()))
if (!server && serverLoading) {
- return <SceneContent>Loading…</SceneContent>
+ return <SceneContent className="mx-auto w-full max-w-[1200px]">Loading…</SceneContent>
}
if (!server && serversLoadFailed) {
return (
- <SceneContent>
+ <SceneContent className="mx-auto w-full max-w-[1200px]">
<LemonButton size="small" type="tertiary" icon={<IconArrowLeft />} onClick={goBack}>
Back to servers
</LemonButton>
@@ -83,7 +77,7 @@ export function GatewayServerScene({
)
}
if (!server) {
- return <SceneContent>Server not found.</SceneContent>
+ return <SceneContent className="mx-auto w-full max-w-[1200px]">Server not found.</SceneContent>
}
const connection = server.your_connection
@@ -120,7 +114,7 @@ export function GatewayServerScene({
}
return (
- <SceneContent>
+ <SceneContent className="mx-auto w-full max-w-[1200px]">
<LemonButton size="small" type="tertiary" icon={<IconArrowLeft />} onClick={goBack}>
Back to servers
</LemonButton>
@@ -391,7 +385,7 @@ function ToolPoliciesSection(): JSX.Element {
No tools match “{toolSearch}”.
</div>
) : (
- <div className="border rounded divide-y overflow-hidden">
+ <div className="border rounded divide-y overflow-hidden bg-surface-primary">
{displayedToolPolicies.map((policy) => (
<ToolPolicyRow key={policy.tool_name} policy={policy} />
))}
@@ -477,7 +471,7 @@ function ToolPolicyRow({ policy }: { policy: ResolvedToolPolicyApi }): JSX.Eleme
)
return (
- <div className={`flex items-start gap-2 transition-colors ${TOOL_POLICY_BACKGROUND_CLASSES[displayedState]}`}>
+ <div className="flex items-start gap-2">
<div className="min-w-0 flex-1">
<LemonCollapse
embedded