Skip to main content
Glama

mcp-turso-cloud

errors.ts532 B
/** * Error handling utilities for the Turso MCP server */ /** * Custom error class for Turso API errors */ export class TursoApiError extends Error { status_code: number; constructor(message: string, status_code: number) { super(message); this.name = 'TursoApiError'; this.status_code = status_code; } } /** * Get error message from various error types */ export function get_error_message(error: unknown): string { if (error instanceof Error) { return error.message; } return 'An unknown error occurred'; }

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

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