diff --git a/apps/docs/content/guides/ai-tools/mcp.mdx b/apps/docs/content/guides/ai-tools/mcp.mdx index ab31b481d02..720f2111e48 100644 --- a/apps/docs/content/guides/ai-tools/mcp.mdx +++ b/apps/docs/content/guides/ai-tools/mcp.mdx @@ -45,7 +45,7 @@ Additionally, you can install Supabase agent skills alongside the MCP server, us ## 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](#configure-your-ai-tool). +The Supabase MCP server provides tools organized into feature groups. Groups that your connection supports are enabled by default, except Storage. You can enable or disable specific groups using the [configuration panel above](#configure-your-ai-tool). ### Database @@ -101,6 +101,13 @@ Requires a paid plan. - `create_branch` / `list_branches` / `delete_branch` - Branch management - `merge_branch` / `reset_branch` / `rebase_branch` - Branch operations +### Feedback + +Disabled in read-only mode (`read_only` parameter). + +- `submit_feedback` - Send feedback about Supabase tools to the Supabase team +- `delete_feedback` - Delete feedback using the token returned by `submit_feedback` + ### Storage (disabled by default) - `list_storage_buckets` - List storage buckets diff --git a/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.test.tsx b/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.test.tsx index 1b95fea1a8c..7ac8b25bbf7 100644 --- a/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.test.tsx +++ b/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.test.tsx @@ -20,6 +20,21 @@ function selectOptOut(tool: string) { }) } +describe('McpConfigPanel default feature groups', () => { + it('enables feedback by default only for hosted connections', () => { + const { container, rerender } = render(, { + wrapper: TooltipProvider, + }) + expect(container.textContent).toMatch(/features=[^&\s"]*feedback/) + expect(container.textContent).not.toMatch(/features=[^&\s"]*storage/) + + // Older local Studio versions reject unknown groups with a 400. + rerender() + expect(container.textContent).toContain('features=docs') + expect(container.textContent).not.toMatch(/features=[^&\s"]*feedback/) + }) +}) + describe('McpConfigPanel opt-out transitions', () => { it('permanently clears cost opt-outs when a connection becomes project scoped', () => { const { container, rerender } = render(, { diff --git a/packages/ui-patterns/src/McpUrlBuilder/clients.data.ts b/packages/ui-patterns/src/McpUrlBuilder/clients.data.ts index 2c6e6c20969..bdb2394ebd9 100644 --- a/packages/ui-patterns/src/McpUrlBuilder/clients.data.ts +++ b/packages/ui-patterns/src/McpUrlBuilder/clients.data.ts @@ -55,6 +55,11 @@ export const FEATURE_GROUPS_PLATFORM: McpFeatureGroup[] = [ name: 'Branching', description: 'Manage database branches', }, + { + id: 'feedback', + name: 'Feedback', + description: 'Send feedback about Supabase tools to the Supabase team', + }, { id: 'storage', name: 'Storage',