The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat(docs): Supabase Agent Plugin page (#45523)
Pedro Rodrigues9fc525800488
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 8a3e380adda..bde417699ef 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -500,6 +500,10 @@ export const gettingstarted: NavMenuConstant = {name: 'AI Tools',url: undefined,items: [+ {+ name: 'Supabase Agent Plugin',+ url: '/guides/getting-started/plugins' as `/${string}`,+ },{name: 'Prompts',url: '/guides/getting-started/ai-prompts' as `/${string}`,diff --git a/apps/docs/content/guides/getting-started/ai-skills.mdx b/apps/docs/content/guides/getting-started/ai-skills.mdxindex 5a933d53259..64a4f01eb24 100644--- a/apps/docs/content/guides/getting-started/ai-skills.mdx+++ b/apps/docs/content/guides/getting-started/ai-skills.mdx@@ -18,15 +18,6 @@ To install a specific skill from the repository:npx skills add supabase/agent-skills --skill SKILL_NAME```-### Claude Code plugin--You can also install the skills as Claude Code plugins:--```bash-/plugin marketplace add supabase/agent-skills-/plugin install supabase@supabase-agent-skills-```-Skills work with 18+ AI agents including Claude Code, GitHub Copilot, Cursor, Cline, and many others.## Available skillsdiff --git a/apps/docs/content/guides/getting-started/plugins.mdx b/apps/docs/content/guides/getting-started/plugins.mdxnew file mode 100644index 00000000000..6a2e624edcb--- /dev/null+++ b/apps/docs/content/guides/getting-started/plugins.mdx@@ -0,0 +1,42 @@+---+id: 'ai-tools-plugins'+title: 'Supabase Agent Plugin'+subtitle: 'One-click setup for Supabase in your AI coding agent'+description: 'The Supabase agent plugin bundles the MCP server and agent skills into a single install for your AI coding agent.'+sidebar_label: 'Supabase Agent Plugin'+---++The Supabase agent plugin is a single install that gives your AI coding agent everything it needs to work with Supabase. It bundles the [Supabase MCP server](/docs/guides/getting-started/mcp) and [Supabase agent skills](/docs/guides/getting-started/ai-skills) so your agent can query your database, manage migrations, deploy Edge Functions, and follow Supabase and Postgres best practices — without manual configuration.++## Why use the plugin?++Agent plugins are packages of AI agent extensions. A single plugin can bundle any combination of:++- **MCP servers** — external tool integrations that let your agent interact with services like Supabase+- **Skills** — procedural knowledge and context your agent loads on demand to work more accurately+- **Hooks** — event handlers that run at agent lifecycle points (e.g. before or after a tool call)+- **Agents** — specialized sub-agents with specific personas and tool configurations+- **Slash commands** — custom commands you can invoke directly in chat++Bundling the [MCP server](/docs/guides/getting-started/mcp) and [agent skills](/docs/guides/getting-started/ai-skills) into a single plugin means you can set up both in one step. You can also install them separately if you prefer. You can install the plugin globally to use it across all your projects, or per project to keep it isolated.++## Installation++Choose your AI coding agent and follow the installation steps:++<AgentPluginsPanel />++## What's included++### Supabase MCP server++The [Supabase MCP server](/docs/guides/getting-started/mcp) connects your AI coding agent directly to your Supabase projects. Once authenticated, your agent can query your database, manage migrations, deploy Edge Functions, and more — see the [full list of available tools](/docs/guides/getting-started/mcp#available-tools).++### Supabase agent skills++Skills provide your agent with Supabase-specific procedural knowledge:++- **`supabase`** — Core guidance for working with Supabase products (Database, Auth, Edge Functions, Storage, Realtime)+- **`supabase-postgres-best-practices`** — Postgres query optimization, schema design, connection management, and RLS patterns++For a full list of available skills and supported agents, see [Agent Skills](/docs/guides/getting-started/ai-skills).diff --git a/apps/docs/features/docs/MdxBase.shared.tsx b/apps/docs/features/docs/MdxBase.shared.tsxindex 73896e331dd..264292b1928 100644--- a/apps/docs/features/docs/MdxBase.shared.tsx+++ b/apps/docs/features/docs/MdxBase.shared.tsx@@ -33,6 +33,7 @@ import { IconPanel } from 'ui-patterns/IconPanel'import SqlToRest from 'ui-patterns/SqlToRest'import { Heading } from 'ui/src/components/CustomHTMLElements'+import { AgentPluginsPanel } from '../ui/AgentPluginsPanel'import { ErrorCodes } from '../ui/ErrorCodes'import { McpConfigPanel } from '../ui/McpConfigPanel'@@ -45,6 +46,7 @@ const components = {Accordion,AccordionItem,Admonition: AdmonitionWithMargin,+ AgentPluginsPanel,AiPromptsIndex,AiSkillsIndex,AuthSmsProviderConfig,diff --git a/apps/docs/features/ui/AgentPluginsPanel.tsx b/apps/docs/features/ui/AgentPluginsPanel.tsxnew file mode 100644index 00000000000..a283e342f5a--- /dev/null+++ b/apps/docs/features/ui/AgentPluginsPanel.tsx@@ -0,0 +1,217 @@+'use client'++import { ExternalLink } from 'lucide-react'+import { useTheme } from 'next-themes'+import { useState } from 'react'+import { CodeBlock } from 'ui-patterns/CodeBlock'+import { ClientSelectDropdown, type McpClient } from 'ui-patterns/McpUrlBuilder'++interface PluginClient extends McpClient {+ repoUrl?: string+ docsUrl?: string+}++const PLUGIN_CLIENTS: PluginClient[] = [+ {+ key: 'claude-code',+ label: 'Claude Code',+ icon: 'claude',+ repoUrl: 'https://github.com/supabase-community/supabase-plugin',+ docsUrl: 'https://code.claude.com/docs/en/discover-plugins',+ },+ {+ key: 'codex',+ label: 'Codex',+ icon: 'openai',+ hasDistinctDarkIcon: true,+ repoUrl: 'https://github.com/supabase-community/codex-plugin',+ docsUrl: 'https://developers.openai.com/codex/plugins',+ },+ {+ key: 'cursor',+ label: 'Cursor',+ icon: 'cursor',+ repoUrl: 'https://github.com/supabase-community/cursor-plugin',+ docsUrl: 'https://cursor.com/docs/plugins',+ },+ {+ key: 'gemini-cli',+ label: 'Gemini CLI',+ icon: 'gemini-cli',+ repoUrl: 'https://github.com/supabase-community/gemini-extension',+ docsUrl: 'https://geminicli.com/docs/extensions/',+ },+]++function PluginInstructions({ client }: { client: PluginClient }) {+ if (client.key === 'claude-code') {+ return (+ <div className="space-y-3">+ <p className="text-sm text-foreground-light">+ Install the Supabase plugin from the{' '}+ <a+ href="https://claude.com/plugins/supabase"+ target="_blank"+ rel="noopener noreferrer"+ className="text-brand-link hover:underline"+ >+ official Anthropic marketplace+ </a>+ </p>+ <CodeBlock+ value={`claude plugin marketplace add anthropics/claude-plugins-official\nclaude plugin install supabase@claude-plugins-official`}+ language="bash"+ focusable={false}+ className="block"+ />+ <p className="text-xs text-foreground-lighter">+ After installing, run <code>/reload-plugins</code> inside Claude Code to activate the+ plugin.+ </p>+ <p className="text-xs text-foreground-lighter">+ Installs with <code>--scope user</code> by default, making it available across all your+ projects. Use <code>--scope project</code> to track it in source control — useful for+ teams where all contributors and cloud agents should follow the same Supabase guidance.+ </p>+ </div>+ )+ }++ if (client.key === 'codex') {+ return (+ <div className="space-y-4">+ <div className="space-y-2">+ <h4 className="text-sm font-medium">Desktop app</h4>+ <p className="text-xs text-foreground-lighter">+ Install the Supabase plugin directly from the{' '}+ <a+ href="https://developers.openai.com/codex/plugins#plugin-directory-in-the-codex-app"+ target="_blank"+ rel="noopener noreferrer"+ className="text-brand-link hover:underline"+ >+ Codex desktop app plugin directory+ </a>+ .+ </p>+ </div>+ <div className="space-y-2">+ <h4 className="text-sm font-medium">CLI</h4>+ <p className="text-xs text-foreground-lighter">Open the Codex CLI by running</p>+ <CodeBlock value="codex" language="bash" focusable={false} className="block" />+ <p className="text-xs text-foreground-lighter">Inside Codex, type:</p>+ <CodeBlock value="/plugins" language="bash" focusable={false} className="block" />+ <p className="text-xs text-foreground-lighter">+ Search for <strong>Supabase</strong> and select <strong>Install plugin</strong>.+ </p>+ </div>+ </div>+ )+ }++ if (client.key === 'cursor') {+ return (+ <div className="space-y-3">+ <p className="text-sm text-foreground-light">+ In the Cursor desktop or web app, type the following in the chat to install the{' '}+ <a+ href="https://cursor.com/marketplace/supabase"+ target="_blank"+ rel="noopener noreferrer"+ className="text-brand-link hover:underline"+ >+ Supabase+ </a>{' '}+ plugin from the Cursor plugin marketplace+ </p>+ <CodeBlock+ value="/add-plugin supabase"+ language="bash"+ focusable={false}+ className="block"+ />+ </div>+ )+ }++ if (client.key === 'gemini-cli') {+ return (+ <div className="space-y-3">+ <p className="text-sm text-foreground-light">+ Install the official Supabase extension for Gemini CLI by running the following command in+ your terminal.+ </p>+ <CodeBlock+ value="gemini extensions install https://github.com/supabase-community/gemini-extension"+ language="bash"+ focusable={false}+ className="block"+ />+ <p className="text-xs text-foreground-lighter">+ You can also find the extension in the{' '}+ <a+ href="https://geminicli.com/extensions/?name=supabase-communitygemini-extension"+ target="_blank"+ rel="noopener noreferrer"+ className="text-brand-link hover:underline"+ >+ Gemini CLI extensions directory+ </a>+ .+ </p>+ </div>+ )+ }++ return null+}++export function AgentPluginsPanel() {+ const [selectedClientKey, setSelectedClientKey] = useState(PLUGIN_CLIENTS[0].key)+ const { resolvedTheme } = useTheme()++ const theme = (resolvedTheme as 'light' | 'dark') ?? 'light'+ const selectedClient =+ PLUGIN_CLIENTS.find((c) => c.key === selectedClientKey) ?? PLUGIN_CLIENTS[0]++ return (+ <div className="not-prose">+ <ClientSelectDropdown+ theme={theme}+ clients={PLUGIN_CLIENTS}+ selectedClient={selectedClient}+ onClientChange={setSelectedClientKey}+ />+ <div className="mt-4 rounded-lg border border-muted p-4">+ <PluginInstructions client={selectedClient} />+ </div>+ <div className="mt-3 flex flex-col gap-1 text-xs text-foreground-light">+ {selectedClient.docsUrl && (+ <div className="flex items-center gap-2">+ <span>Need help?</span>+ <a+ href={selectedClient.docsUrl}+ target="_blank"+ rel="noopener noreferrer"+ className="text-brand-link hover:underline inline-flex items-center"+ >+ View {selectedClient.label} extensions docs+ <ExternalLink className="h-3 w-3 ml-1" />+ </a>+ </div>+ )}+ {selectedClient.repoUrl && (+ <a+ href={selectedClient.repoUrl}+ target="_blank"+ rel="noopener noreferrer"+ className="text-brand-link hover:underline inline-flex items-center"+ >+ Give feedback+ <ExternalLink className="h-3 w-3 ml-1" />+ </a>+ )}+ </div>+ </div>+ )+}