Skip to main content
Glama
nahmanmate

Better Auth MCP Server

by nahmanmate

analyze_current_auth

Detect and analyze existing authentication implementations in projects to understand current auth.js/next-auth configurations and identify setup requirements.

Instructions

Detect and analyze existing auth.js/next-auth implementation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectPathYesPath to the project root

Implementation Reference

  • Handler for the 'analyze_current_auth' tool. Extracts projectPath, logs the analysis start, and returns a placeholder completion message. Actual implementation is commented as a todo.
    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}`
        }]
      };
    }
  • Tool schema definition including name, description, and inputSchema requiring 'projectPath' for the 'analyze_current_auth' tool.
    {
      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"]
      }
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nahmanmate/better-auth-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server