import { app } from 'electron';
import * as fs from 'fs';
import * as path from 'path';
let userDataPath: string;
// Lazy-init or export a function that gets the path
export function getInterfacesDir() {
if (!userDataPath) {
userDataPath = app.getPath('userData');
}
const interfacesDir = path.join(userDataPath, 'interfaces');
// Make sure the directory exists
if (!fs.existsSync(interfacesDir)) {
fs.mkdirSync(interfacesDir, { recursive: true });
}
return interfacesDir;
}
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/kelnishi/PopUI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server