Skip to content

Move database storage to platform-specific directories#1

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/move-boost-db-storage-location
Draft

Move database storage to platform-specific directories#1
Copilot wants to merge 4 commits intomainfrom
copilot/move-boost-db-storage-location

Conversation

Copy link

Copilot AI commented Feb 10, 2026

The database was stored in ~/.boost/boost.db across all platforms. This moves it to follow OS conventions for persistent application data.

Changes

  • Database path logic (src/server/db.ts):

    • macOS: ~/Library/boost/boost.db
    • Linux: $XDG_DATA_HOME/boost/boost.db, falls back to ~/.local/state/boost/boost.db
  • Documentation (README.md): Updated database location references

function getDbPath(): string {
  const home = homedir();
  const plat = platform();
  
  if (plat === 'darwin') {
    return join(home, 'Library', 'boost', 'boost.db');
  } else {
    const xdgDataHome = process.env.XDG_DATA_HOME;
    return xdgDataHome 
      ? join(xdgDataHome, 'boost', 'boost.db')
      : join(home, '.local', 'state', 'boost', 'boost.db');
  }
}

Note: Existing databases at ~/.boost/boost.db will not be migrated automatically.

Original prompt

the storage location of boost.db should be moved to ~/Library/boost/boost.db on mac and $XDG_DATA_HOME/boost/boost.db  or $HOME/.local/state/boost/boost.db if $XDG_DATA_HOME is empty on linux. If that is the best space to save persisted data for mcps


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits February 10, 2026 07:37
Co-authored-by: nixolas1 <3536134+nixolas1@users.noreply.github.com>
Co-authored-by: nixolas1 <3536134+nixolas1@users.noreply.github.com>
Co-authored-by: nixolas1 <3536134+nixolas1@users.noreply.github.com>
Copilot AI changed the title [WIP] Move storage location of boost.db to appropriate directories Move database storage to platform-specific directories Feb 10, 2026
Copilot AI requested a review from nixolas1 February 10, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants