Skip to main content
Glama
LexiconAlex

Better Auth MCP Server

by LexiconAlex

test_security

Run security tests on authentication setups to verify password policies, rate limiting, and session management configurations.

Instructions

Run security tests on Better-Auth setup

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
testsYes

Implementation Reference

  • Handler for the 'test_security' tool. Extracts 'tests' array from arguments, logs the tests being run, and returns a success message indicating completion of security tests.
    case "test_security": {
      const { tests } = request.params.arguments as { tests: string[] };
      logger.info(`Running security tests: ${tests.join(", ")}`);
      // Implementation would run security tests
      return {
        content: [{
          type: "text",
          text: `Security tests completed for: ${tests.join(", ")}`
        }]
      };
    }
  • Input schema for 'test_security' tool defining an object with a 'tests' array property, where items are strings from the enum ['password-policy', 'rate-limiting', 'session-management'], and 'tests' is required.
    inputSchema: {
      type: "object",
      properties: {
        tests: {
          type: "array",
          items: {
            type: "string",
            enum: ["password-policy", "rate-limiting", "session-management"]
          }
        }
      },
      required: ["tests"]
    }
  • src/index.ts:151-167 (registration)
    Registration of the 'test_security' tool in the ListToolsRequestHandler, including name, description, and input schema.
    {
      name: "test_security",
      description: "Run security tests on Better-Auth setup",
      inputSchema: {
        type: "object",
        properties: {
          tests: {
            type: "array",
            items: {
              type: "string",
              enum: ["password-policy", "rate-limiting", "session-management"]
            }
          }
        },
        required: ["tests"]
      }
    },

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