We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pluginslab/wp-devdocs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
local-folder.js•429 B
import { existsSync } from 'node:fs';
/**
* Validate and return a local folder path.
*/
export async function fetchLocalFolder(source) {
const localPath = source.local_path;
if (!localPath) {
throw new Error(`Source "${source.name}" is type local-folder but has no local_path configured`);
}
if (!existsSync(localPath)) {
throw new Error(`Local path does not exist: ${localPath}`);
}
return localPath;
}