Skip to main content
Glama
resourceprovider.ts389 B
import fs from "node:fs"; import path from "node:path"; import {fileURLToPath} from 'url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); // get the source directory export function readFile(sPath: string, relativeTo?: string): string { const sResourcecPath = path.resolve(relativeTo? relativeTo : __dirname, sPath); return fs.readFileSync(sResourcecPath, "utf8"); }

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/SimplifierIO/simplifier-mcp'

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