Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(web): add MCP & CLI settings page and agent tools banner (#14007)

Jannik Maierhöfer472b1df5fc3a
diff --git a/web/src/features/developer-tools/components/AgentToolsBanner.tsx b/web/src/features/developer-tools/components/AgentToolsBanner.tsx
new file mode 100644
index 0000000000..1b21e9b358
--- /dev/null
+++ b/web/src/features/developer-tools/components/AgentToolsBanner.tsx
@@ -0,0 +1,40 @@
+import { Callout } from "@/src/components/ui/callout";
+import { Button } from "@/src/components/ui/button";
+import Link from "next/link";
+import { Bot } from "lucide-react";
+
+const DOCS_HREF =
+ "https://langfuse.com/docs/api-and-data-platform/features/agent-skill";
+
+/**
+ * Informational, dismissible banner that highlights Langfuse's support for AI
+ * coding agents via the Agent Skill, MCP server, and CLI. Rendered on the
+ * organization overview page.
+ */
+export function AgentToolsBanner() {
+ return (
+ <Callout
+ id="agent-tools-banner:v1"
+ variant="info"
+ align="middle"
+ actions={() => (
+ <Button asChild size="sm" variant="secondary">
+ <Link href={DOCS_HREF} target="_blank">
+ Learn more
+ </Link>
+ </Button>
+ )}
+ >
+ <div className="flex items-center gap-2">
+ <Bot className="h-4 w-4 shrink-0" />
+ <span>
+ <span className="font-semibold">
+ Langfuse works great with your AI coding agents.
+ </span>{" "}
+ Connect Claude Code, Codex, and other agents to your data with the
+ Langfuse Agent Skill, MCP server, and CLI.
+ </span>
+ </div>
+ </Callout>
+ );
+}
diff --git a/web/src/features/developer-tools/components/DeveloperToolsSettings.tsx b/web/src/features/developer-tools/components/DeveloperToolsSettings.tsx
new file mode 100644
index 0000000000..c9173cfac9
--- /dev/null
+++ b/web/src/features/developer-tools/components/DeveloperToolsSettings.tsx
@@ -0,0 +1,95 @@
+import Header from "@/src/components/layouts/header";
+import { Button } from "@/src/components/ui/button";
+import { Card } from "@/src/components/ui/card";
+import { CodeBlock } from "@/src/components/ui/Codeblock";
+import Link from "next/link";
+import { Bot, SquareTerminal, Sparkles } from "lucide-react";
+
+const DocsButton = ({ href }: { href: string }) => (
+ <Button asChild variant="ghost">
+ <Link href={href} target="_blank">
+ Documentation ↗
+ </Link>
+ </Button>
+);
+
+export function DeveloperToolsSettings() {
+ return (
+ <div>
+ <Header title="MCP & CLI" />
+ <p className="text-muted-foreground mb-6 text-sm">
+ Bring Langfuse into your terminal and AI coding agents. These tools let
+ you and your agents read and write Langfuse data—traces, prompts,
+ datasets, scores, and more—without leaving your development environment.
+ </p>
+ <div className="space-y-6">
+ <Card className="p-4">
+ <div className="mb-3 flex items-center gap-2">
+ <Sparkles className="text-foreground h-5 w-5" />
+ <span className="font-semibold">Agent Skill</span>
+ </div>
+ <p className="text-primary mb-4 text-sm">
+ The Langfuse Agent Skill is an open-source skill following
+ Anthropic&apos;s Agent Skills standard. It equips AI coding agents
+ (Claude Code, Cursor, Windsurf) with native Langfuse capabilities
+ and conditions them to follow best practices, so agents produce
+ better results when it is installed.
+ </p>
+ <CodeBlock
+ language="shell"
+ value={`npx skills add langfuse/skills --skill "langfuse"`}
+ />
+ <div className="mt-4 flex items-center gap-2">
+ <DocsButton href="https://langfuse.com/docs/api-and-data-platform/features/agent-skill" />
+ </div>
+ </Card>
+
+ <Card className="p-4">
+ <div className="mb-3 flex items-center gap-2">
+ <Bot className="text-foreground h-5 w-5" />
+ <span className="font-semibold">MCP Server</span>
+ </div>
+ <p className="text-primary mb-4 text-sm">
+ The Langfuse MCP server lets AI assistants and agents interact with
+ your Langfuse data programmatically via the Model Context Protocol.
+ It supports both read and write operations, and you can restrict it
+ to read-only access with an allowlist. Authenticate with a
+ project-scoped API key pair.
+ </p>
+ <CodeBlock
+ language="shell"
+ value={`claude mcp add --transport http langfuse \\
+ https://cloud.langfuse.com/api/public/mcp \\
+ --header "Authorization: Basic {your-base64-token}"`}
+ />
+ <div className="mt-4 flex items-center gap-2">
+ <DocsButton href="https://langfuse.com/docs/api-and-data-platform/features/mcp-server" />
+ </div>
+ </Card>
+
+ <Card className="p-4">
+ <div className="mb-3 flex items-center gap-2">
+ <SquareTerminal className="text-foreground h-5 w-5" />
+ <span className="font-semibold">CLI</span>
+ </div>
+ <p className="text-primary mb-4 text-sm">
+ The Langfuse CLI provides terminal access to the full Langfuse API.
+ It wraps every API endpoint, so you can manage traces, prompts,
+ datasets, scores, and sessions directly from your shell or scripts.
+ It uses the same API key pair as the Langfuse SDKs.
+ </p>
+ <CodeBlock
+ language="shell"
+ value={`export LANGFUSE_PUBLIC_KEY="pk-lf-..."
+export LANGFUSE_SECRET_KEY="sk-lf-..."
+
+npx langfuse-cli api <resource> <action>`}
+ />
+ <div className="mt-4 flex items-center gap-2">
+ <DocsButton href="https://langfuse.com/docs/api-and-data-platform/features/cli" />
+ </div>
+ </Card>
+ </div>
+ </div>
+ );
+}
diff --git a/web/src/features/organizations/components/ProjectOverview.tsx b/web/src/features/organizations/components/ProjectOverview.tsx
index e9b7849cb5..9fb16b9663 100644
--- a/web/src/features/organizations/components/ProjectOverview.tsx
+++ b/web/src/features/organizations/components/ProjectOverview.tsx
@@ -33,6 +33,7 @@ import { isCloudPlan, planLabels } from "@langfuse/shared";
import ContainerPage from "@/src/components/layouts/container-page";
import { type User } from "next-auth";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
+import { AgentToolsBanner } from "@/src/features/developer-tools/components/AgentToolsBanner";
const OrganizationProjectTiles = ({
org,
@@ -309,6 +310,9 @@ export const OrganizationProjectOverview = () => {
),
}}
>
+ <div className="mb-4">
+ <AgentToolsBanner />
+ </div>
{showOnboarding && <Onboarding />}
{organizations
.sort((a, b) => {
diff --git a/web/src/pages/project/[projectId]/settings/index.tsx b/web/src/pages/project/[projectId]/settings/index.tsx
index 6b912b8b15..94c71de991 100644
--- a/web/src/pages/project/[projectId]/settings/index.tsx
+++ b/web/src/pages/project/[projectId]/settings/index.tsx
@@ -31,6 +31,7 @@ import { SiSlack } from "react-icons/si";
import { ScoreConfigSettings } from "@/src/features/score-configs/components/ScoreConfigSettings";
import { env } from "@/src/env.mjs";
import { NotificationSettings } from "@/src/features/notifications/components/NotificationSettings";
+import { DeveloperToolsSettings } from "@/src/features/developer-tools/components/DeveloperToolsSettings";
type ProjectSettingsPage = {
title: string;
@@ -136,6 +137,21 @@ export const getProjectSettingsPages = ({
</div>
),
},
+ {
+ title: "MCP & CLI",
+ slug: "developer-tools",
+ cmdKKeywords: [
+ "mcp",
+ "cli",
+ "skill",
+ "agent",
+ "model context protocol",
+ "command line",
+ "claude code",
+ "cursor",
+ ],
+ content: <DeveloperToolsSettings />,
+ },
{
title: "LLM Connections",
slug: "llm-connections",