generate_migration_plan
Create a step-by-step migration plan for transitioning from your current authentication system (auth.js or next-auth) to Better Auth MCP Server. Specify the project path and current auth type to initiate the process.
Instructions
Create step-by-step migration plan from existing auth to Better-Auth
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currentAuthType | Yes | Current authentication system type | |
| projectPath | Yes | Path to the project root |
Implementation Reference
- src/index.ts:245-258 (handler)The handler case for 'generate_migration_plan' tool. Extracts projectPath and currentAuthType from arguments, logs the action, and returns a textual response indicating the migration plan has been generated (stub implementation).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:114-131 (registration)Registration of the 'generate_migration_plan' tool in the ListTools response, including name, description, and input schema definition.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"] } },
- src/index.ts:116-131 (schema)Input schema for the 'generate_migration_plan' tool, defining required properties projectPath (string) and currentAuthType (string enum: auth.js, 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"] } },