docs: add MCP server guide and surface the OAuth entry point in the skill - #154
Merged
Conversation
commit: |
raulb
marked this pull request as draft
September 10, 2026 11:29
Collaborator
|
A few additions from running this on a real hosted Edge Function (diabuddy,
Verified against 1.6.0: the inline-handler TS2345 reproduces exactly as described, and the |
mandarini
reviewed
Sep 10, 2026
Member
Author
|
@mandarini thank you for the feedback! You were right on all three. I'm currently running tests following across the library blocks supabase/supabase#50215 and future docs supabase/supabase#50218, so I'm hoping to leave this PR ready for review today. |
…kill docs/mcp.md explains the pipeline form for MCP servers (withOAuthProtectedResource before the withSupabase gate), how the public URLs are derived on Edge Functions and configured elsewhere, the Supabase Auth prerequisites, the inline-handler inference gotcha, and the stateless limits. The agent skill gains the @supabase/server/oauth-protected-resource entry point and a docs-table row pointing at the new page. docs(mcp): drop the private sandbox link, match the guide title docs(mcp): address review on the MCP guide - CLI 2.117.0 injects SUPABASE_FUNCTION_SLUG only; SUPABASE_PUBLIC_URL is honored when set but not set by the CLI. - The asymmetric-key requirement comes from withSupabase verifying user JWTs against the JWKS, not from OAuth 2.1. - Document OAuthProtectedResourceConfig, UrlOption, fromSupabaseUrl and the escape hatches in api-reference.md, and link there. - Show withSupabase<Database> and a writing tool, the onerror hook for factory errors, the OPTIONS preflight row, the root-path-without-slug case, and that the one-shot limits belong to the handler, not the library.
raulb
force-pushed
the
raulb/docs-mcp
branch
from
September 11, 2026 11:50
d810c01 to
e7d1032
Compare
mandarini
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of AI-1009
Are documentations specifically about
withOAuthProtectedResource()in the context of using it for MCP servers, clarifying its usage with Supabase Edge Functions or not.Note: I also updated the library components usage here supabase/supabase#50215 which will ship as part of supabase/supabase#49579.