Skip to main content
Glama

MCP Gemini Server

by bsmi021
debug-error.ts676 B
// Simple helper to debug errors import { GeminiApiError, mapToMcpError } from "../../src/utils/errors.js"; // Create a test error with details const errorWithDetails = new GeminiApiError("API error with details", { key: "value", }); const mappedError = mapToMcpError(errorWithDetails, "DEBUG_TOOL"); // Log the result for inspection console.log("Original Error:", { message: errorWithDetails.message, details: errorWithDetails.details, hasDetailsProperty: "details" in errorWithDetails, }); console.log("Mapped Error:", { code: mappedError.code, message: mappedError.message, details: mappedError.details, hasDetailsProperty: "details" in mappedError, });

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/bsmi021/mcp-gemini-server'

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