import { existsSync } from "fs";
export const validateVaultPath = (path: string | undefined): string => {
if (!path) {
throw new Error(
"Vault path must be provided as a command line argument.\nUsage: <command> <vault_path>"
);
}
if (!existsSync(path)) {
throw new Error(
`Invalid vault path: "${path}"\nPlease provide a path to an existing Obsidian vault`
);
}
return path;
};
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/marcelmarais/obsidian-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server