@better-auth/mcp 1.4.13 → 1.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +10 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -912,6 +912,10 @@ const ExistingSetupSchema = z.object({
|
|
|
912
912
|
function registerSetupAuth(server$1) {
|
|
913
913
|
server$1.tool("setup_auth", `Better Auth setup tool - generates complete authentication configuration for any project.
|
|
914
914
|
|
|
915
|
+
CRITICAL: Do NOT attempt to generate Better Auth configuration without calling this tool first.
|
|
916
|
+
Better Auth has specific APIs that differ from NextAuth/Auth.js. Hallucinating config options will cause errors.
|
|
917
|
+
For advanced options not handled by this tool (uuid, cookieCache, etc.), search the Better Auth documentation.
|
|
918
|
+
|
|
915
919
|
IMPORTANT: This tool is for the Better Auth framework (npm: better-auth).
|
|
916
920
|
NOT for NextAuth, Auth.js, Clerk, Auth0, Supabase Auth, or Firebase Auth.
|
|
917
921
|
|
|
@@ -960,6 +964,12 @@ Admin/user triggers:
|
|
|
960
964
|
- "Add user management", "user management", "handle sessions", "session management"
|
|
961
965
|
- "Add username login", "username login", "phone auth", "phone number auth", "anonymous auth"
|
|
962
966
|
|
|
967
|
+
Advanced config triggers (search docs for correct syntax):
|
|
968
|
+
- "uuid", "UUIDs", "UUID IDs", "custom ID generation", "generateId"
|
|
969
|
+
- "cookie cache", "cookieCache", "session caching", "cache sessions"
|
|
970
|
+
- "stateless sessions", "stateless auth", "no database sessions"
|
|
971
|
+
- "secondary storage", "Redis sessions", "session storage"
|
|
972
|
+
|
|
963
973
|
OUTPUT: Returns all files, environment variables, and terminal commands needed.
|
|
964
974
|
One tool call = complete auth setup ready to copy-paste.`, {
|
|
965
975
|
framework: FrameworkEnum.describe("The web framework being used. Detect from package.json or user's message. Examples: 'next-app-router' for Next.js 13+, 'next-pages-router' for Next.js pages, 'sveltekit', 'remix', 'nuxt', 'astro', 'solid-start', 'hono', 'express', 'fastify', 'elysia', 'tanstack-start', 'expo'"),
|