MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / readVaultRootFromConfig

Function readVaultRootFromConfig

apps/desktop/src/mcp/vault-ops.ts:216–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214}
215
216export async function readVaultRootFromConfig(): Promise<string | null> {
217 const parsed = await readConfigFile()
218 const vaultRoot = parsed?.vaultRoot
219 return typeof vaultRoot === 'string' && vaultRoot.trim() ? vaultRoot : null
220}
221
222export interface KnownVault {
223 root: string

Callers 1

resolveVaultRootFunction · 0.85

Calls 1

readConfigFileFunction · 0.70

Tested by

no test coverage detected