Initialize Vault Sources Database
Set up the provenance database for tracking input sources in this Obsidian vault.
Steps
- •Call the
db_statusMCP tool to check if the database is already initialized. - •If already initialized, report the current statistics (number of inputs, notes, links, events) and stop.
- •If not initialized, ask the user for confirmation before proceeding.
- •Call the
db_initMCP tool to create and migrate the database. - •Call
db_statusagain to confirm successful initialization. - •Report the database path and confirm that all tables were created.
Important
- •Never create the database silently. Always ask the user first.
- •If
db_initfails because the database already exists, report this clearly. - •The database path is configured via the
VAULT_SOURCES_DB_PATHenvironment variable.