Skip to main content
Glama
Apache 2.0
845
2,105
  • Apple
text-loader.ts400 B
import { readFile } from 'fs/promises'; import { Plugin } from 'vite'; export function textLoaderPlugin(extension: string): Plugin { return { name: 'text-loader', async transform(code, id) { if (id.endsWith(extension)) { const textContent = await readFile(id, 'utf8'); return `export default ${JSON.stringify(textContent)};`; } return code; }, }; }

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/supabase-community/mcp-supabase'

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