Skip to main content
Glama
LexiconAlex

Better Auth MCP Server

by LexiconAlex

test_auth_flows

Verify authentication workflows such as login, registration, password reset, and 2FA to ensure secure credential management and multi-protocol compatibility in applications.

Instructions

Test authentication workflows

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flowsYesAuthentication flows to test

Implementation Reference

  • The handler case for the 'test_auth_flows' tool. It extracts the 'flows' argument, logs the flows being tested, and returns a text content response indicating the tests are completed. Currently a placeholder implementation.
    case "test_auth_flows": { const { flows } = request.params.arguments as { flows: string[] }; logger.info(`Testing auth flows: ${flows.join(", ")}`); // Implementation would test specified authentication flows return { content: [{ type: "text", text: `Auth flow tests completed for: ${flows.join(", ")}` }] }; }
  • The input schema definition for the 'test_auth_flows' tool, specifying an object with a required 'flows' array of strings from enum ['login', 'register', 'password-reset', '2fa'].
    inputSchema: { type: "object", properties: { flows: { type: "array", items: { type: "string", enum: ["login", "register", "password-reset", "2fa"] }, description: "Authentication flows to test" } }, required: ["flows"] }
  • src/index.ts:133-150 (registration)
    The tool registration object in the listTools handler, defining name, description, and inputSchema for 'test_auth_flows'.
    { name: "test_auth_flows", description: "Test authentication workflows", inputSchema: { type: "object", properties: { flows: { type: "array", items: { type: "string", enum: ["login", "register", "password-reset", "2fa"] }, description: "Authentication flows to test" } }, required: ["flows"] } },

Other Tools

Related Tools

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