Supabase 的 AI 编程代理插件
One-click setup for Supabase in your AI coding agent
用于 AI 编码代理的 Supabase 插件为你的 AI 编码代理提供了使用 Supabase 所需的一切。它打包了 Supabase MCP 服务器 和 Supabase 代理技能,这样你的代理就可以查询数据库、管理迁移、部署 Edge Functions,并遵循 Supabase 和 Postgres 的最佳实践——无需手动配置。
🌐 The Supabase Plugin for AI Coding Agents gives your AI coding agent everything it needs to work with Supabase. It bundles the Supabase MCP server and Supabase agent skills so your agent can query your database, manage migrations, deploy Edge Functions, and follow Supabase and Postgres best practices — without manual configuration.
快速安装 #
🌐 Quick installation
1npx plugins add supabase-community/supabase-pluginplugins 包会自动检测你已安装的 AI 编程代理,并通过一个命令将 Supabase 插件安装到所有代理上。使用 --yes 可以跳过确认提示。
🌐 The plugins package auto-detects your installed AI coding agents and installs the Supabase plugin to all of them with one command. Use --yes to skip the confirmation prompt.
或者,按照你特定代理的手动安装步骤操作。
🌐 Or, follow the manual installation steps for your specific agent.
为什么要用这个插件? #
🌐 Why use the plugin?
AI 编程代理的插件是 AI 代理扩展的包。单个插件可以打包任意组合的内容:
🌐 Plugins for AI coding agents are packages of AI agent extensions. A single plugin can bundle any combination of:
- MCP 服务器 — 外部工具集成,让你的代理可以与像 Supabase 这样的服务互动
- 技能 — 你的代理根据需求加载的程序性知识和上下文,以便更准确地工作
- Hooks — 在代理生命周期节点运行的事件处理程序(例如,在工具调用之前或之后)
- 代理 — 拥有特定角色和工具配置的专门子代理
- 斜杠命令 — 你可以在聊天中直接调用的自定义命令
将 MCP 服务器 和 代理技能 打包成一个插件意味着你可以一步设置它们。如果你愿意,也可以单独安装它们。你可以全局安装这个插件以便在所有项目中使用,或者按项目安装以保持隔离。
🌐 Bundling the MCP server and agent 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.
包括什么 #
🌐 What's included
Supabase MCP 服务器 #
🌐 Supabase MCP server
Supabase MCP 服务器 可以将你的 AI 编程代理直接连接到你的 Supabase 项目。一旦认证成功,你的代理就可以查询数据库、管理迁移、部署 Edge Functions 等等——查看 可用工具的完整列表。
🌐 The Supabase MCP server 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.
Supabase 代理技能 #
🌐 Supabase agent skills
技能为你的代理提供了针对 Supabase 的特定操作知识:
🌐 Skills provide your agent with Supabase-specific procedural knowledge:
supabase— 使用 Supabase 产品(数据库、认证、边缘函数、存储、实时功能)的核心指南supabase-postgres-best-practices— Postgres 查询优化、模式设计、连接管理和 RLS 模式
有关可用技能和支持的代理的完整列表,请参阅 Agent Skills。
🌐 For a full list of available skills and supported agents, see Agent Skills.
手动安装 #
🌐 Manual installation
或者,选择你的 AI 编码助手并按照安装步骤操作:
🌐 Alternatively, choose your AI coding agent and follow the installation steps:
Install the Supabase plugin from the official Anthropic marketplace
claude plugin marketplace add anthropics/claude-plugins-official
claude plugin install supabase@claude-plugins-officialAfter installing, run /reload-plugins inside Claude Code to activate the plugin.
Installs with --scope user by default, making it available across all your projects. Use --scope project to track it in source control — useful for teams where all contributors and cloud agents should follow the same Supabase guidance.