analyze_current_auth
Detect and analyze the auth.js/next-auth implementation in your project to ensure proper authentication setup and identify potential issues.
Instructions
Detect and analyze existing auth.js/next-auth implementation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the project root |
Implementation Reference
- src/index.ts:233-243 (handler)Handler for the analyze_current_auth tool. Extracts projectPath from arguments, logs the action, and returns a text content response indicating analysis completion. Note: actual detection logic is a placeholder comment.case "analyze_current_auth": { const { projectPath } = request.params.arguments as { projectPath: string }; logger.info(`Analyzing existing auth in ${projectPath}`); // Implementation would detect and analyze current auth setup return { content: [{ type: "text", text: `Auth analysis complete for ${projectPath}` }] }; }
- src/index.ts:99-112 (registration)Registration of the analyze_current_auth tool in the ListToolsRequestSchema handler, including name, description, and input schema requiring projectPath.{ name: "analyze_current_auth", description: "Detect and analyze existing auth.js/next-auth implementation", inputSchema: { type: "object", properties: { projectPath: { type: "string", description: "Path to the project root" } }, required: ["projectPath"] } },