Skip to main content
Glama

YepCode MCP Server

Official
by yepcode
utils.ts1.01 kB
import { fileURLToPath } from "url"; import { join, dirname } from "path"; import { readFileSync } from "fs"; export const isEmpty = (value: unknown): boolean => { return ( value === null || value === undefined || value === "" || (isObject(value) && Object.keys(value).length === 0) ); }; export const isObject = (value: unknown): value is object => { return typeof value === "object" && value !== null && !Array.isArray(value); }; export const isString = (value: unknown): value is string => { return typeof value === "string"; }; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); export function getVersion(): string { try { const packageJsonPath = join(__dirname, "../package.json"); const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8")); return packageJson.version || "1.0.0"; } catch (err) { console.error("[yepcode-mcp-server]", "Unable to retrieve version:", err); return "unknown"; } }

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/yepcode/mcp-server-js'

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