Skip to content

Add cookbook: Authorize mcp-use tools with Scalekit scopes - #952

Draft
saif-at-scalekit wants to merge 13 commits into
prototype/sidebar-cookbooks-howtofrom
cookbook/protect-mcp-use-server-with-scalekit
Draft

Add cookbook: Authorize mcp-use tools with Scalekit scopes#952
saif-at-scalekit wants to merge 13 commits into
prototype/sidebar-cookbooks-howtofrom
cookbook/protect-mcp-use-server-with-scalekit

Conversation

@saif-at-scalekit

@saif-at-scalekit saif-at-scalekit commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Do not merge yet

This cookbook imports oauthScalekitProvider from mcp-use/oauth/scalekit. The page must not go live while that path 404s on npm.

Merge gates

Until 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:

  1. Authenticate a user with Scalekit on an mcp-use server
  2. Grant todo:read and todo:write (same pair as the FastMCP todo quickstart)
  3. Prove allow (list_todos) and deny (add_todo without write) in the mcp-use Inspector

mcp-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.mdx

Preview

https://deploy-preview-952--scalekit-starlight.netlify.app/saaskit/cookbooks/authorize-mcp-use-tools-with-scalekit-scopes/

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.
@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: c8e18265-e917-4027-bc31-4b14a486ca2c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@netlify

netlify Bot commented Aug 16, 2026

Copy link
Copy Markdown

Deploy Preview for scalekit-starlight ready!

Name Link
🔨 Latest commit d2605f5
🔍 Latest deploy log https://app.netlify.com/projects/scalekit-starlight/deploys/6a82daaa06de6700081a1d8f
😎 Deploy Preview https://deploy-preview-952--scalekit-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 72 (🟢 up 12 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@saif-at-scalekit saif-at-scalekit changed the title Add cookbook: Protect an mcp-use server with Scalekit Add cookbook: Authorize mcp-use tools with Scalekit scopes Aug 16, 2026
@saif-at-scalekit
saif-at-scalekit force-pushed the cookbook/protect-mcp-use-server-with-scalekit branch from f1d31f5 to bca362f Compare August 17, 2026 09:45
@saif-at-scalekit
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
saif-at-scalekit force-pushed the cookbook/protect-mcp-use-server-with-scalekit branch from bca362f to 52ad4fb Compare August 17, 2026 09:46
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.
@saif-at-scalekit saif-at-scalekit changed the title Add cookbook: Authorize mcp-use tools with Scalekit scopes Add cookbook: Share an mcp-use server with your team Aug 17, 2026
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 saif-at-scalekit changed the title Add cookbook: Share an mcp-use server with your team Add cookbook: Authorize mcp-use tools with Scalekit scopes Aug 17, 2026
@saif-at-scalekit
saif-at-scalekit force-pushed the prototype/sidebar-cookbooks-howto branch from e32ac62 to 5083ccd Compare August 20, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant