-
Notifications
You must be signed in to change notification settings - Fork 99
Description
Feature Description
Enable the mcp.json
configuration for basic-memory to support per-project variables, allowing users to specify project names and memory root paths directly in the configuration file. This will allow users to easily copy, modify, and reuse these configurations across different projects, with support for arguments like --project
and --memory_home
.
Problem This Feature Solves
Currently, mcp.json
only supports a generic setup, which is limiting in multi-project environments. Users cannot specify different project roots or memory paths per project, making it harder to reuse and adapt configurations for different projects. I'm guessing this can be applied to other editor, but I'd use that with Roo Code + VSCode.
Proposed Solution
Allow mcp.json
to accept variables such as --project
and --memory_home
in the args
array, e.g.:
{
"mcpServers": {
"basic-memory": {
"command": "uvx",
"args": ["basic-memory", "--project=project", "--memory_home=~/path", "mcp"]
}
}
}
- The system should recognize and use these variables per project.
- If the project or path does not exist, it should be created automatically.
- Make it easy to copy/paste the configuration for use in other projects with minimal adjustments.
Alternative Solutions
Manual editing of the configuration and setup of project directories, but this is cumbersome and error-prone. We could also try and use env variables (like BASIC_MEMORY_HOME if #219 gets resolved!)
Additional Context
This change would streamline workflows for users managing multiple projects and simplify onboarding for new projects by reducing manual setup.
Impact
Improves flexibility, portability, and user experience in multi-project workflows with basic-memory MCP.