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 +1 -1
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/src/mcp/handlers/mod.rs +7 -2
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.17.
|
|
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>",
|
package/src/mcp/handlers/mod.rs
CHANGED
|
@@ -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
|
|
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)
|
|
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 {
|