Skip to main content
Glama

Apple Health MCP Server

by neiltron
optimizer.ts625 B
import type { TableLoader } from '../db/loader'; export class QueryOptimizer { private loader: TableLoader; constructor(loader: TableLoader) { this.loader = loader; } async optimizeQuery(query: string): Promise<string> { // Extract required tables from the query const requiredTables = this.loader.extractTableNames(query); // Ensure all required tables are loaded await Promise.all( requiredTables.map(table => this.loader.ensureTableLoaded(table)) ); // Return the original query - let the LLM handle query optimization return query; } }

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/neiltron/apple-health-mcp'

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