BoltAI Does Not Respect XDG Base Directory Spec
under review
Zack
For *NIX systems, there is an open specification for a standard set of directories that applications should tap into regarding where a user would prefer an app's configuration/state/metadata files go to over just some
.dotdir
cluttering up a user's home directory, which may or may not contain sensitive data. https://specifications.freedesktop.org/basedir-spec/latest/Currently MCP configuration on macOS gets dropped in
~/.boltai
, regardless of the presence of a known preferred XDG standard location. A good number of apps will fallback to a home dotdir if a known XDG location isn't present on the machine and it would be nice if BoltAI at least made the attempt to read/store data in the standard's location before writing to ~/.boltai
.The most fitting place to check first for a user's config of MCPs would be at
~/.local/share/boltai/mcp.json
($XDG_DATA_HOME/boltai/mcp.json
) to conform with the following:"$XDG_DATA_HOME defines the base directory relative to which user-specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used."
$XDG_DATA_HOME (~/.local/share/boltai) is preferred over $XDG_CONFIG_HOME (~/.config/boltai) because it is common for people to put their config dir in a git repository and share publicly on something like GitHub. Because the MCP file will probably contain tokens/auth, it is more fit to be a private "user data" file than a public config file.
Zack
Fixed incorrect path in paragraph 3
Daniel Nguyen
under review