We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AviOfLagos/MCP-coding-assistant'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
getProjectPath.ts•415 B
import fs from 'fs';
export function getProjectPath(): string | undefined {
const projectPath = process.env.PROJECT_PATH;
if (projectPath && fs.existsSync(projectPath)) {
console.log(`Using project path from environment variable: ${projectPath}`);
return projectPath;
} else {
console.error('PROJECT_PATH environment variable is not set or the path does not exist.');
return undefined;
}
}