test_security
Test key security features like password policies, rate-limiting, and session management in Better Auth MCP Server to ensure robust authentication system setup.
Instructions
Run security tests on Better-Auth setup
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tests | Yes |
Implementation Reference
- src/index.ts:272-282 (handler)Handler for the 'test_security' tool. Extracts 'tests' argument, logs the security tests being run, and returns a text content confirming completion.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(", ")}` }] }; }
- src/index.ts:151-167 (registration)Registration of the 'test_security' tool in the listTools handler, including name, description, and input schema definition.{ 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"] } },
- src/index.ts:154-166 (schema)Input schema for the 'test_security' tool, defining an array of test types like password-policy, rate-limiting, session-management.inputSchema: { type: "object", properties: { tests: { type: "array", items: { type: "string", enum: ["password-policy", "rate-limiting", "session-management"] } } }, required: ["tests"] }