clinicaltrialsgov-mcp-server
Version:
ClinicalTrials.gov Model Context Protocol (MCP) Server that provides a suite of tools for interacting with the official ClinicalTrials.gov v2 API. Enables AI agents and LLMs to programmatically search, retrieve, and analyze clinical trial data.
25 lines (24 loc) • 1.01 kB
TypeScript
/**
* @fileoverview Initializes and exports a singleton Supabase client instance.
* This module ensures that the Supabase client is initialized once and shared
* across the application, using credentials from the central configuration.
* It handles both the standard client and the admin client (using the service role key).
*
* @module src/services/supabase/supabaseClient
*/
import { SupabaseClient } from "@supabase/supabase-js";
type Database = Record<string, unknown>;
/**
* Returns the singleton Supabase client instance.
* Throws an McpError if the client is not initialized.
* @returns The Supabase client.
*/
export declare const getSupabaseClient: () => SupabaseClient<Database>;
/**
* Returns the singleton Supabase admin client instance.
* This client uses the service role key and bypasses RLS.
* Throws an McpError if the admin client is not initialized.
* @returns The Supabase admin client.
*/
export declare const getSupabaseAdminClient: () => SupabaseClient<Database>;
export {};