Skip to main content
Glama
paths.ts208 B
import * as os from 'node:os'; export function expandPath(p: string): string { if (p.startsWith('~/')) { return p.replace('~', os.homedir()); } if (p === '~') { return os.homedir(); } return p; }

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/domdomegg/filesystem-mcp'

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