Files
supabase/apps/docs/components/Navigation/NavigationMenu
Pedro Rodrigues 1d269914f7 docs(mcp): document scoped OAuth access for MCP (#54156)
## Problem

Static OAuth apps can now turn on scoped access (member permissions and
project selection), and the hosted Supabase MCP server enforces those
grants on connections and tool calls. The MCP docs still tell manual
OAuth app users to grant write access to all scopes, and the OAuth
integration guide doesn't cover how MCP behaves with scoped grants.

## Solution

Add a new `MCP with scoped OAuth access` page under the Supabase OAuth
Integration section, building on #53658. It covers which OAuth client
types use scoped grants (static apps with scoped access on vs. off, and
dynamically registered clients unchanged), account mode vs. project mode
enforcement (including `list_projects` discovery, `list_organizations`
returning empty on specific-project grants, parent-project grants for
preview branches, and uniform `403` errors at connect time), read-only
SQL when a grant has `database:read` without `database:write`, and
missing-scope vs. live permission denials with their recovery steps.

Update the MCP page's Manual OAuth app note, Configuration options
examples, and Recommendations to separate URL project targeting from
credential-level scoping, link to the new page from `scoped-access.mdx`
and `build-a-supabase-oauth-integration.mdx`, and wire it into both
navigation menus.

## Verification

- [MCP with scoped OAuth access
preview](https://docs-git-pedrorodrigues-ai-1343-document-mcp-sc-ec523d-supabase.vercel.app/docs/guides/integrations/build-a-supabase-oauth-integration/mcp-scoped-access)
- [MCP docs
preview](https://docs-git-pedrorodrigues-ai-1343-document-mcp-sc-ec523d-supabase.vercel.app/docs/guides/ai-tools/mcp#manual-oauth-app)

Closes AI-1343
2026-12-02 19:31:51 +00:00
..