这是一款用于身份验证管理的企业级解决方案,能提供安全可靠的身份验证服务。它具备基于 AES - 256 加密的安全凭证管理、多协议认证以及实时威胁检测与防御等功能,为企业的身份验证管理保驾护航。
analyze_project
- 分析项目结构并提供建议的身份验证设置setup_better_auth
- 使用项目 ID 和 API 密钥配置身份验证提供程序analyze_current_auth
- 检测现有的 auth.js/next - auth 实现generate_migration_plan
- 创建分步迁移计划test_auth_flows
- 验证登录/注册/重置/双因素认证流程test_security
- 运行符合 OWASP 标准的安全检查analyze_logs
- 查看身份验证系统日志以发现潜在问题monitor_auth_flows
- 实时监控身份验证流程better - auth://config
- 当前 Better - Auth 配置设置better - auth://logs
- 身份验证系统日志要自动通过 Smithery 安装 Better Auth MCP 服务器,可执行以下命令:
npx -y @smithery/cli install @nahmanmate/better-auth-mcp-server
完成安装后,您可以在 node_modules/.bin
中找到可执行文件。
要手动安装,请从 GitHub 克隆仓库:
git clone https://github.com/better-auth-mcp-server/better-auth-mcp-server.git
cd better-auth-mcp-server
npm install
克隆并安装:
git clone https://github.com/better-auth-mcp-server/better-auth-mcp-server.git
cd better-auth-mcp-server
npm install
构建服务器:
npm run build
带有自动重建功能的开发:
npm run watch
# 必需
BETTER_AUTH_PROJECT_ID=your-project-id
BETTER_AUTH_API_KEY=your-api-key
# 可选
BETTER_AUTH_ENV=development|staging|production
LOG_LEVEL=info|debug|error
要调试服务器,请运行:
npm run debug
要使用 MCP Inspector 进行调试,请安装并运行:
npm install -g @mcp/debug && mcp-debug better-auth-mcp-server
const { BetterAuth } = require('better-auth-mcp-server');
const auth = new BetterAuth({
projectId: 'your-project-id',
apiKey: 'your-api-key'
});
// 使用 auth 对象进行身份验证操作
const { BetterAuth } = require('better-auth-mcp-server');
const auth = new BetterAuth({
projectId: 'your-project-id',
apiKey: 'your-api-key',
environment: 'production',
logLevel: 'info'
});
// 使用 auth 对象进行身份验证操作
npm run debug
# 或者使用 MCP Inspector
mcp-debug better-auth-mcp-server