I’ve been loving the ability to use custom MCP servers in Cursor, especially using the memory MCP (@itseasy21/mcp-knowledge-graph
) to retain context across sessions. However, my team has encountered an issue with the configuration that’s making it difficult to deploy consistently across multiple developers’ environments.
Currently, we need to hardcode absolute paths to the memory file in our mcp.json config, like this:
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@itseasy21/mcp-knowledge-graph"],
"env": {
"MEMORY_FILE_PATH": "/Users/myname/projects/my-project/memory.jsonl"
}
}
}
}
This means each developer has to maintain their own version of the config file with their specific file path, which is not ideal for version control or onboarding new team members.
It would be incredibly helpful if Cursor supported the ${workspaceFolder}
VS Code variable in the mcp.json configuration, similar to how VS Code handles this in launch.json and other config files. This would allow us to write a portable config:
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@itseasy21/mcp-knowledge-graph"],
"env": {
"MEMORY_FILE_PATH": "${workspaceFolder}/memory.jsonl"
}
}
}
}
This would make it much easier for teams to share consistent MCP configurations and would align with expectations for developers coming from VS Code. It would also make it simpler to set up memory-based MCPs that store their data within the project folder rather than in arbitrary locations.
Would love to see this feature added to improve the team development experience with custom MCPs. Thanks for considering!