Skip to main content
Glama
verify-db-read.js874 B
import { listAppointments } from './dist/tools/appointments.js'; import dotenv from 'dotenv'; // Load it here too just in case dotenv.config(); async function runTest() { console.log("--- DIAGNOSTICS ---"); console.log("CWD:", process.cwd()); console.log("Has SUPABASE_URL:", !!process.env.SUPABASE_URL); console.log("Has SUPABASE_KEY:", !!process.env.SUPABASE_SERVICE_ROLE_KEY); console.log("-------------------"); console.log("Starting Read-Only Database Test..."); try { const appointments = await listAppointments({}); console.log("SUCCESS: Connected to Supabase!"); console.log(`Count: ${appointments.length}`); } catch (err) { console.log("ERROR_TYPE:", err.name); console.log("ERROR_MSG:", err.message); // console.log("FULL_ERR:", JSON.stringify(err, null, 2)); } } runTest();

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/cscrespo/gaia-health-mcp'

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