Skip to main content
Glama
lekt9

OpenReplay MCP Server

by lekt9

get_errors_issues

Retrieve detailed errors and issues, including their impact and affected sessions, by filtering with date ranges, error types, occurrences, and grouping options.

Instructions

Get errors and issues with their impact and affected sessions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endDateNoEnd date in ISO format
errorTypesNoFilter by error types (js_exception, missing_resource, etc.)
groupByNoHow to group errors
minOccurrencesNoMinimum number of occurrences
startDateNoStart date in ISO format

Implementation Reference

  • The main handler function that executes the logic for the 'get_errors_issues' tool. Currently, it returns a standardized response indicating that full error analysis requires JWT authentication, as it's not supported via API key authentication.
    private async getErrorsIssues(args: any) { // Error analysis requires JWT authentication return { content: [ { type: "text", text: "Error analysis is not available via API key authentication. JWT authentication is required for this feature.", }, ], }; }
  • The Zod/input schema defining the expected input parameters for the 'get_errors_issues' tool, including optional filters for date range, error types, occurrence threshold, and grouping.
    inputSchema: { type: "object", properties: { startDate: { type: "string", description: "Start date in ISO format" }, endDate: { type: "string", description: "End date in ISO format" }, errorTypes: { type: "array", items: { type: "string" }, description: "Filter by error types (js_exception, missing_resource, etc.)" }, minOccurrences: { type: "number", description: "Minimum number of occurrences" }, groupBy: { type: "string", enum: ["message", "stack", "url"], description: "How to group errors" } } }
  • src/index.ts:182-199 (registration)
    The tool registration object returned in the listTools handler, declaring the 'get_errors_issues' tool's name, description, and input schema to MCP clients.
    { name: "get_errors_issues", description: "Get errors and issues with their impact and affected sessions", inputSchema: { type: "object", properties: { startDate: { type: "string", description: "Start date in ISO format" }, endDate: { type: "string", description: "End date in ISO format" }, errorTypes: { type: "array", items: { type: "string" }, description: "Filter by error types (js_exception, missing_resource, etc.)" }, minOccurrences: { type: "number", description: "Minimum number of occurrences" }, groupBy: { type: "string", enum: ["message", "stack", "url"], description: "How to group errors" } } } },
  • The switch case dispatcher in the central CallToolRequestSchema handler that routes 'get_errors_issues' calls to the specific getErrorsIssues method.
    case "get_errors_issues": return await this.getErrorsIssues(args);

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/lekt9/openreplay-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server