handoff-mcp-server 0.18.4 → 0.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.lock +1 -1
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/src/mcp/handlers/mod.rs +4 -1
package/Cargo.lock
CHANGED
package/Cargo.toml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "handoff-mcp-server",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.6",
|
|
4
4
|
"description": "MCP server that gives AI coding agents persistent memory across sessions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "AlphaElements <66808803+alphaelements@users.noreply.github.com>",
|
package/src/mcp/handlers/mod.rs
CHANGED
|
@@ -41,7 +41,10 @@ pub fn resolve_project_dir(arguments: &Value) -> Result<PathBuf> {
|
|
|
41
41
|
.filter(|s| !s.is_empty() && !s.starts_with("${"))
|
|
42
42
|
{
|
|
43
43
|
Some(dir) => PathBuf::from(dir),
|
|
44
|
-
None => std::env::
|
|
44
|
+
None => match std::env::var("CLAUDE_PROJECT_DIR") {
|
|
45
|
+
Ok(dir) if !dir.is_empty() => PathBuf::from(dir),
|
|
46
|
+
_ => std::env::current_dir().context("Failed to get current directory")?,
|
|
47
|
+
},
|
|
45
48
|
};
|
|
46
49
|
std::fs::canonicalize(&raw)
|
|
47
50
|
.with_context(|| format!("Invalid project path: {raw}", raw = raw.display()))
|