Add cookbook: Authorize mcp-use tools with Scalekit scopes - #952
Draft
saif-at-scalekit wants to merge 13 commits into
Draft
Add cookbook: Authorize mcp-use tools with Scalekit scopes#952saif-at-scalekit wants to merge 13 commits into
saif-at-scalekit wants to merge 13 commits into
Conversation
Split cookbooks into AgentKit and Auth for SaaS shelves as plain Starlight docs (no starlight-blog). Each product gets a dedicated guides topic with Cookbooks and How-to collapsibles, entered from secondary nav rather than the journey sidebars.
Local Netlify edge middleware mishandles empty-body POSTs and threw unhandled TypeError: fetch failed on every page load's session probe. Exclude /auth/* and /api/* from edge functions and send an explicit JSON body on refresh POSTs.
Move cookbook image assets to match the product-scoped page paths. The Chargebee cookbook already pointed at @/assets/docs/saaskit/cookbooks/ while the files still sat under the retired cookbooks/ namespace, which failed the production build with ImageNotFound. Local dev never caught it because it compiles pages only on visit. - Move chargebee assets to src/assets/docs/saaskit/cookbooks/ and voice assistant assets to src/assets/docs/agentkit/cookbooks/, repointing the two voice-assistant references that were still on the old path - Exclude the cross-product hub /cookbooks/ from sidebar topics and give it the splash template, so it no longer inherits the Auth for SaaS journey rail or lights up a product nav pill; link it from both product shelves - Redirect the routes starlight-blog used to generate: /cookbooks/tags/*, /cookbooks/authors/*, and pagination pages 2-5 - Rewrite the connected-account how-to to stop duplicating the status table and per-status remedies already in the AgentKit troubleshooting guide; it now covers dashboard navigation and delegates the rest - Correct the AgentKit how-to overview, which promised workspace tasks it does not ship, and cross-link the shared workspace guides from both how-to overviews - Keep /api/* tracked in track-agents: agents fetch the OpenAPI specs under it, and only /auth/refresh hit the empty-body POST proxy bug - Add saaskit/cookbooks and saaskit/how-to to the SaaSKit and Integration Guides llms.txt sets, which lost their cookbook paths in the move - Move the orphaned scim-simulator page into dev-kit/tools/ beside the other testing utilities, retiring the now-empty dev-kit/guides/ tree - Restore the P.A.T. framework, content-layer model, and naming rules to COOKBOOKS.md, and document the image and redirect rules for future moves
Move Auth for SaaS cookbooks and how-tos out of Developer Resources into a secondary nav Guides item that matches AgentKit and opens the dedicated guides sidebar.
Guides sits with SDKs/APIs; Enterprise Deployment stays at the end of the bar.
Secondary nav ends with Guides, then Developer Resources dropdown, then Enterprise Deployment last.
Rename secondary-nav Guides to Cookbooks, keep How-to open, and serve the same dashboard how-tos from /how-to in both product shelves. Add the first workspace-role, account, and development-domain recipes from the live dashboard.
Preserve URL fragments when stamping ?product= on /how-to/ links. Document assignHowToTopic. Tell readers not to copy client secrets before deleting an account.
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
✅ Deploy Preview for scalekit-starlight ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
saif-at-scalekit
force-pushed
the
cookbook/protect-mcp-use-server-with-scalekit
branch
from
August 17, 2026 09:45
f1d31f5 to
bca362f
Compare
saif-at-scalekit
changed the base branch from
main
to
prototype/sidebar-cookbooks-howto
August 17, 2026 09:45
Draft only. Do not merge until mcp-use/oauth/scalekit installs from npm.
Teach Scalekit login, todo:read/todo:write grants, and Inspector allow/deny. Rename the file to match the new task.
946 moved cookbooks to product paths and dropped starlight-blog frontmatter. Keep this recipe next to the other Auth for SaaS pages and point the M2M link at the new URL.
saif-at-scalekit
force-pushed
the
cookbook/protect-mcp-use-server-with-scalekit
branch
from
August 17, 2026 09:46
bca362f to
52ad4fb
Compare
Match the xmcp roll-out-to-a-team shape: leaked mcp.json first, four checks before you share the URL, then identity and scopes as two layers. Alice and Bob prove isolation. Reconnect the client after a DCR or CIMD toggle.
Keep the Inspector allow/deny recipe. Apply the xmcp page's writing moves: conclusion first, outcome headings, four checks, and a tight troubleshooting table. Leave the npm-export caution in place.
saif-at-scalekit
force-pushed
the
prototype/sidebar-cookbooks-howto
branch
from
August 20, 2026 06:44
e32ac62 to
5083ccd
Compare
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.

Do not merge yet
This cookbook imports
oauthScalekitProviderfrommcp-use/oauth/scalekit. The page must not go live while that path 404s on npm.Merge gates
mcp-userelease exportsmcp-use/oauth/scalekitUntil then, keep this draft. The in-page caution sends readers to scalekit-mcpuse-example.
What this cookbook teaches
A practical Inspector loop, not a provider-wiring page:
todo:readandtodo:write(same pair as the FastMCP todo quickstart)list_todos) and deny (add_todowithout write) in the mcp-use Inspectormcp-use does not hide tools when a scope is missing. The handler must refuse. The deny path is the test.
Stacked on #946. File:
src/content/docs/saaskit/cookbooks/authorize-mcp-use-tools-with-scalekit-scopes.mdxPreview
https://deploy-preview-952--scalekit-starlight.netlify.app/saaskit/cookbooks/authorize-mcp-use-tools-with-scalekit-scopes/