Skip to main content
Glama

Redis Cloud API MCP Server

Official
by redis
api-errors.ts949 B
export const enum ErrorCode { TOOL = "TOOL_ERROR", } export const enum HttpStatus { INTERNAL_SERVER_ERROR = 500, } export class BaseError extends Error { readonly code: ErrorCode; readonly status: HttpStatus; readonly details?: unknown; readonly timestamp: string; constructor( message: string, code: ErrorCode, status: HttpStatus, details?: unknown, ) { super(message); this.name = this.constructor.name; this.code = code; this.status = status; this.details = details; this.timestamp = new Date().toISOString(); // Maintains proper stack trace for where error was thrown Error.captureStackTrace(this, this.constructor); } toString(): string { return `[${this.code}] ${this.message}`; } } export class ToolError extends BaseError { constructor(message: string, details?: unknown) { super(message, ErrorCode.TOOL, HttpStatus.INTERNAL_SERVER_ERROR, details); } }

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/redis/mcp-redis-cloud'

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