handoff-mcp-server 0.17.1 → 0.17.3

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 CHANGED
@@ -136,7 +136,7 @@ dependencies = [
136
136
 
137
137
  [[package]]
138
138
  name = "handoff-mcp"
139
- version = "0.17.1"
139
+ version = "0.17.3"
140
140
  dependencies = [
141
141
  "anyhow",
142
142
  "chrono",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "handoff-mcp"
3
- version = "0.17.1"
3
+ version = "0.17.3"
4
4
  edition = "2021"
5
5
  description = "MCP server that gives AI coding agents persistent memory across sessions"
6
6
  license = "MIT"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "handoff-mcp-server",
3
- "version": "0.17.1",
3
+ "version": "0.17.3",
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>",
@@ -35,11 +35,16 @@ use serde_json::Value;
35
35
  use crate::mcp::types::JsonRpcResponse;
36
36
 
37
37
  pub fn resolve_project_dir(arguments: &Value) -> Result<PathBuf> {
38
- let raw = match arguments.get("project_dir").and_then(|v| v.as_str()) {
38
+ let raw = match arguments
39
+ .get("project_dir")
40
+ .and_then(|v| v.as_str())
41
+ .filter(|s| !s.is_empty() && !s.starts_with("${"))
42
+ {
39
43
  Some(dir) => PathBuf::from(dir),
40
44
  None => std::env::current_dir().context("Failed to get current directory")?,
41
45
  };
42
- std::fs::canonicalize(&raw).with_context(|| format!("Invalid project path: {}", raw.display()))
46
+ std::fs::canonicalize(&raw)
47
+ .with_context(|| format!("Invalid project path: {raw}", raw = raw.display()))
43
48
  }
44
49
 
45
50
  pub fn handle_tool_call(name: &str, arguments: &Value) -> JsonRpcResponse {