Skip to main content
Glama
getVaultManager.ts416 B
import state from "@/config.js"; import { VaultManager } from "./VaultManager.js"; let instance: VaultManager | null = null; export function getGlobalVaultManager(): VaultManager { if (instance) { return instance; } const vaultPath = state.vaultPath; if (!vaultPath) { throw new Error("VAULT_DIR_PATH environment variable is not set"); } instance = new VaultManager(vaultPath, 20); return instance; }

Latest Blog Posts

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/sunub/obsidian-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server