Skip to main content
Glama
LexiconAlex

Better Auth MCP Server

by LexiconAlex

analyze_current_auth

Detect and analyze existing authentication implementations in your project to understand current setup and identify configuration details.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectPathYesPath to the project root

Implementation Reference

  • src/index.ts:99-112 (registration)
    Registration of the 'analyze_current_auth' tool in the listTools handler, including name, description, and input schema.
    { 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"] } },
  • The handler function for the 'analyze_current_auth' tool. It extracts the projectPath from arguments, logs the action, and returns a text content response indicating analysis completion. The actual detection logic is currently a comment (stubbed implementation).
    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}` }] }; }

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/LexiconAlex/better-auth-mcp-server'

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