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
paths.ts•208 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;
}