Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: Add the ability to individually toggle AI features (#46807)

Chris Chinchillaa1cc7294b291
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
index 925f25838c6..d4ce3c8084f 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
@@ -31,6 +31,9 @@ const {
sdkKotlin: sdkKotlinEnabled,
sdkPython: sdkPythonEnabled,
sdkSwift: sdkSwiftEnabled,
+ docsAgentPlugin: agentPluginEnabled,
+ docsAgentSkills: agentSkillsEnabled,
+ docsPrompts: promptsEnabled,
} = isFeatureEnabled([
'authentication:show_providers',
'billing:all',
@@ -56,6 +59,9 @@ const {
'sdk:kotlin',
'sdk:python',
'sdk:swift',
+ 'docs:agent_plugin',
+ 'docs:agent_skills',
+ 'docs:prompts',
])
const aiToolsEnabled = true
@@ -2395,6 +2401,7 @@ export const ai_tools: NavMenuConstant = {
{
name: 'Agent Plugin',
url: '/guides/ai-tools/plugins' as `/${string}`,
+ enabled: agentPluginEnabled,
},
{
name: 'MCP server',
@@ -2403,10 +2410,12 @@ export const ai_tools: NavMenuConstant = {
{
name: 'Agent Skills',
url: '/guides/ai-tools/ai-skills' as `/${string}`,
+ enabled: agentSkillsEnabled,
},
{
name: 'Prompts',
url: '/guides/ai-tools/ai-prompts' as `/${string}`,
+ enabled: promptsEnabled,
},
{
diff --git a/apps/docs/content/guides/ai-tools/mcp.mdx b/apps/docs/content/guides/ai-tools/mcp.mdx
index bec493599d4..33126fc0707 100644
--- a/apps/docs/content/guides/ai-tools/mcp.mdx
+++ b/apps/docs/content/guides/ai-tools/mcp.mdx
@@ -28,10 +28,18 @@ After you log in, check that the MCP server is connected. For instance, in Curso
To verify the client has access to the MCP server tools, try asking it to query your project or database using natural language. For example: "What tables are there in the database? Use MCP tools."
+<$Show if="docs:prompts">
+
For curated, ready-to-use prompts that work well with IDEs and AI agents, see our [AI Prompts](/docs/guides/getting-started/ai-prompts) collection.
+</$Show>
+
+<$Show if="docs:agent_skills">
+
Additionally, you can install Supabase agent skills alongside the MCP server, use the [Supabase Plugin for AI Coding Agents](/docs/guides/getting-started/plugins) for a combined one-step setup.
+</$Show>
+
## Available tools
The Supabase MCP server provides tools organized into feature groups. All groups except Storage are enabled by default. You can enable or disable specific groups using the [configuration panel above](#step-2-configure-your-ai-tool).
diff --git a/packages/common/enabled-features/enabled-features.json b/packages/common/enabled-features/enabled-features.json
index 579eae29e4f..7e4fcb40075 100644
--- a/packages/common/enabled-features/enabled-features.json
+++ b/packages/common/enabled-features/enabled-features.json
@@ -64,6 +64,9 @@
"docs:pgtap": true,
"docs:production_checklist": true,
"docs:web_apps": true,
+ "docs:agent_plugin": true,
+ "docs:agent_skills": true,
+ "docs:prompts": true,
"edge_functions:show_stripe_example": true,
"edge_functions:show_all_edge_function_invocation_examples": true,
diff --git a/packages/common/enabled-features/enabled-features.schema.json b/packages/common/enabled-features/enabled-features.schema.json
index 8ce7bab0442..0a63c3e2b63 100644
--- a/packages/common/enabled-features/enabled-features.schema.json
+++ b/packages/common/enabled-features/enabled-features.schema.json
@@ -229,6 +229,18 @@
"type": "boolean",
"description": "Enable web apps getting started documentation"
},
+ "docs:agent_plugin": {
+ "type": "boolean",
+ "description": "Enable documentation for the agent plugin"
+ },
+ "docs:agent_skills": {
+ "type": "boolean",
+ "description": "Enable documentation for agent skills"
+ },
+ "docs:prompts": {
+ "type": "boolean",
+ "description": "Enable documentation for prompts"
+ },
"edge_functions:show_stripe_example": {
"type": "boolean",