{ "name": "mcp", "type": "registry:item", "title": "MCP Server", "description": "Add a user-scoped MCP server to your product.", "docs": "Disable gateway JWT verification, then deploy the Edge Function. A trusted product backend can call it with the signed-in user's access token. For external clients, install the [OAuth Consent block](https://supabase.com/library/docs/nextjs/oauth-consent), enable OAuth and dynamic registration, and set the Auth Site URL to the consent app. Every call runs through the user's RLS-scoped client. OAuth tokens include `client_id`; product sessions do not, so define policies for both paths. See [MCP authentication](https://supabase.com/docs/guides/auth/oauth-server/mcp-authentication) and [token security](https://supabase.com/docs/guides/auth/oauth-server/token-security).", "files": [ { "path": "registry/default/blocks/mcp/supabase/functions/mcp/index.ts", "type": "registry:file", "target": "~/supabase/functions/mcp/index.ts" }, { "path": "registry/default/blocks/mcp/supabase/functions/mcp/deno.json", "type": "registry:file", "target": "~/supabase/functions/mcp/deno.json" }, { "path": "registry/default/blocks/mcp/supabase/functions/mcp/deno.lock", "type": "registry:file", "target": "~/supabase/functions/mcp/deno.lock" }, { "path": "registry/default/blocks/mcp/supabase/functions/mcp/.env.example", "type": "registry:file", "target": "~/supabase/functions/mcp/.env.example" }, { "path": "registry/default/blocks/mcp/supabase/functions/mcp/tools/types.ts", "type": "registry:file", "target": "~/supabase/functions/mcp/tools/types.ts" }, { "path": "registry/default/blocks/mcp/supabase/functions/mcp/tools/result.ts", "type": "registry:file", "target": "~/supabase/functions/mcp/tools/result.ts" }, { "path": "registry/default/blocks/mcp/supabase/functions/mcp/tools/whoami.ts", "type": "registry:file", "target": "~/supabase/functions/mcp/tools/whoami.ts" }, { "path": "registry/default/blocks/mcp/supabase/functions/mcp/tools/index.ts", "type": "registry:file", "target": "~/supabase/functions/mcp/tools/index.ts" } ] }