mcp-server-memory: use working directory for default path #2160
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes the default behavior from using the installation path (which is not guaranteed to remain stable, e.g., when using npx) to the current working directory.
Description
Server Details
Motivation and Context
It's still difficult to properly pass-through environment variables using
mcp.json
files, even more so when they're based on the current working directory (non-static).With this PR applied, the default location will be in whatever location I launch the tool that invokes it, which seems more reasonable a default.
How Has This Been Tested?
I am using it with
aider
.Breaking Changes
The previous default was non-stable to begin with (every upgrade would cause the entire memory to be lost), so impact is minimal.
Checklist