generate_migration_plan
Create a step-by-step migration plan to transition from existing authentication systems like auth.js or next-auth to Better-Auth's enterprise-grade solution.
Instructions
Create step-by-step migration plan from existing auth to Better-Auth
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the project root | |
| currentAuthType | Yes | Current authentication system type |
Implementation Reference
- src/index.ts:245-258 (handler)The switch case handler that executes the generate_migration_plan tool: extracts projectPath and currentAuthType, logs the action, and returns a text response with a placeholder migration plan.case "generate_migration_plan": { const { projectPath, currentAuthType } = request.params.arguments as { projectPath: string, currentAuthType: string }; logger.info(`Generating migration plan for ${currentAuthType}`); // Implementation would create migration steps based on current auth return { content: [{ type: "text", text: `Migration plan generated for ${currentAuthType}` }] }; }
- src/index.ts:116-130 (schema)Input schema for the generate_migration_plan tool, defining required parameters: projectPath (string) and currentAuthType (string enum: auth.js or next-auth).inputSchema: { type: "object", properties: { projectPath: { type: "string", description: "Path to the project root" }, currentAuthType: { type: "string", description: "Current authentication system type", enum: ["auth.js", "next-auth"] } }, required: ["projectPath", "currentAuthType"] }
- src/index.ts:113-131 (registration)Tool registration in the ListTools response, including name, description, and input schema for generate_migration_plan.{ name: "generate_migration_plan", description: "Create step-by-step migration plan from existing auth to Better-Auth", inputSchema: { type: "object", properties: { projectPath: { type: "string", description: "Path to the project root" }, currentAuthType: { type: "string", description: "Current authentication system type", enum: ["auth.js", "next-auth"] } }, required: ["projectPath", "currentAuthType"] } },