Skip to main content
Glama
path.utils.ts415 B
import * as path from 'path'; /** * Ensures that the given path is absolute. If it's relative, it resolves it * to an absolute path based on the current working directory. * * @param inputPath The path to check. * @returns The absolute path. */ export function ensureAbsolutePath(inputPath: string): string { if (!path.isAbsolute(inputPath)) { return path.resolve(inputPath); } return inputPath; }

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/Jakedismo/KuzuMem-MCP'

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