Skip to main content
Glama
verify-db-read.ts810 B
import { listAppointments } from './tools/appointments.js'; async function runTest() { console.log("Starting Read-Only Database Test..."); try { // Fetching appointments without filters to test general access const appointments = await listAppointments({}); console.log("Successfully connected to Supabase!"); console.log(`Found ${appointments?.length ?? 0} appointments.`); if (appointments && appointments.length > 0) { console.log("Sample Data (first 2):", JSON.stringify(appointments.slice(0, 2), null, 2)); } else { console.log("No appointments found (expected if DB is empty, but connection worked)."); } } catch (err) { console.error("Test Failed:", err); process.exit(1); } } 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