setup_better_auth
Install and configure Better-Auth authentication system in your project with secure credential handling and multi-protocol support.
Instructions
Install and configure Better-Auth in the project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the project root | |
| config | Yes | Better-Auth configuration options |
Implementation Reference
- src/index.ts:217-231 (handler)The switch case that handles the execution of the 'setup_better_auth' tool. It extracts arguments, logs the action, stores the config, and returns a success response (with placeholder comment for actual implementation).case "setup_better_auth": { const { projectPath, config } = request.params.arguments as { projectPath: string, config: AuthConfig }; logger.info(`Setting up Better-Auth in ${projectPath}`); authConfig = config; // Implementation would install dependencies and configure Better-Auth return { content: [{ type: "text", text: `Better-Auth setup complete in ${projectPath}` }] }; }
- src/index.ts:74-97 (registration)The tool registration entry in the ListTools response, defining the name, description, and input schema for 'setup_better_auth'.{ name: "setup_better_auth", description: "Install and configure Better-Auth in the project", inputSchema: { type: "object", properties: { projectPath: { type: "string", description: "Path to the project root" }, config: { type: "object", description: "Better-Auth configuration options", properties: { projectId: { type: "string" }, apiKey: { type: "string" }, environment: { type: "string" } }, required: ["projectId", "apiKey"] } }, required: ["projectPath", "config"] } },
- src/index.ts:77-96 (schema)The input schema definition for the 'setup_better_auth' tool, specifying required projectPath and config with projectId and apiKey.inputSchema: { type: "object", properties: { projectPath: { type: "string", description: "Path to the project root" }, config: { type: "object", description: "Better-Auth configuration options", properties: { projectId: { type: "string" }, apiKey: { type: "string" }, environment: { type: "string" } }, required: ["projectId", "apiKey"] } }, required: ["projectPath", "config"] }
- src/index.ts:33-37 (helper)Interface defining the AuthConfig type used in the setup_better_auth handler and schema.interface AuthConfig { projectId?: string; apiKey?: string; environment?: string; }