OAuth Quick Start Guide โ
๐ Get Started in 2 Minutes โ
Step 1: Open Settings โ
- Go to your Frappe site
- Search for "Assistant Core Settings"
- Click the OAuth tab
Step 2: Enable OAuth โ
Check the box: โ Enable Dynamic Client Registration
Step 3: Configure Client Access โ
For MCP Inspector (testing): In "Allowed Public Client Origins", add:
http://localhost:6274For Claude Desktop: Leave "Allowed Public Client Origins" blank (Claude Desktop doesn't need it)
For your web app: Add your app's URL:
https://your-app.comStep 4: Save โ
Click Save button
โ That's It! โ
Your OAuth is now configured. MCP clients can auto-register and connect.
๐งช Test with MCP Inspector โ
- Open http://localhost:6274/
- Select "Streamable HTTP"
- Enter your MCP endpoint URL:
https://your-frappe-site.com/api/method/frappe_assistant_core.api.fac_endpoint.handle_mcp - Click "Open Auth Settings"
- Click "Quick OAuth Flow"
- Authorize when prompted โ
๐ฏ What You See โ
Main Section (Always Visible) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OAuth Configuration โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ Enable Dynamic Client Registration โ
โ โ
โ Allowed Public Client Origins: โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ http://localhost:6274 โ โ
โ โ https://your-app.com โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโAdvanced Settings (Collapsed) โ
Don't touch these unless you know what you're doing!
Click to expand "Advanced OAuth Settings" only if needed.
Resource Metadata (Collapsed) โ
Optional branding info - skip for now
Click to expand "Resource Metadata" only if you want to customize URLs.
๐ Security Quick Tips โ
โ DO:
- Use specific URLs in "Allowed Public Client Origins"
- Use HTTPS in production
- Keep "Skip Authorization Prompt" disabled
โ DON'T:
- Use
*in production (allows all origins) - Enable "Skip Authorization Prompt" in production
- Share OAuth client secrets
๐ Common Issues โ
"Dynamic client registration is not enabled" โ
โ Check the box: โ Enable Dynamic Client Registration
"CORS error" โ
โ Add your client's URL to "Allowed Public Client Origins"
"redirect_uris must be https" โ
โ Use https:// or http://localhost: only
๐ Need More Help? โ
Read the full guide: OAuth Setup Guide
๐ You're All Set! โ
Your Frappe Assistant Core is now OAuth-enabled and ready for MCP clients.
Questions? Open an issue: https://github.com/buildswithpaul/Frappe_Assistant_Core/issues