analyze_logs
Examine authentication logs on Better Auth MCP Server to identify and resolve issues. Specify a time range to evaluate system activity and enhance security.
Instructions
Analyze Better-Auth logs for issues
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeRange | Yes | Time range to analyze (e.g. '24h', '7d') |
Implementation Reference
- src/index.ts:284-294 (handler)The handler for the 'analyze_logs' tool. It extracts the 'timeRange' parameter, logs the analysis start, and returns a placeholder text response indicating completion of log analysis.case "analyze_logs": { const { timeRange } = request.params.arguments as { timeRange: string }; logger.info(`Analyzing logs for time range: ${timeRange}`); // Implementation would analyze Better-Auth logs return { content: [{ type: "text", text: `Log analysis complete for time range: ${timeRange}` }] }; }
- src/index.ts:170-182 (registration)Registration of the 'analyze_logs' tool in the ListToolsRequestSchema handler, including name, description, and input schema definition.name: "analyze_logs", description: "Analyze Better-Auth logs for issues", inputSchema: { type: "object", properties: { timeRange: { type: "string", description: "Time range to analyze (e.g. '24h', '7d')" } }, required: ["timeRange"] } },
- src/index.ts:172-181 (schema)Input schema definition for the 'analyze_logs' tool, specifying the required 'timeRange' string parameter.inputSchema: { type: "object", properties: { timeRange: { type: "string", description: "Time range to analyze (e.g. '24h', '7d')" } }, required: ["timeRange"] }