Files
tolaria/mcp-server/vault-path.js

8 lines
240 B
JavaScript
Raw Normal View History

2026-04-28 02:13:24 +02:00
export function requireVaultPath(env = process.env) {
const vaultPath = env.VAULT_PATH?.trim()
if (!vaultPath) {
throw new Error('VAULT_PATH is required. Open a vault in Tolaria before starting MCP tools.')
}
return vaultPath
}