diff --git a/Cargo.toml b/Cargo.toml index d01e7ad..424a43f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,7 @@ members = [ "mcp-stdio" ] resolver = "2" + +[workspace.lints.rust] +unused_imports = "deny" + diff --git a/mcp-stdio/Cargo.toml b/mcp-stdio/Cargo.toml index 88d6b2d..4c7871c 100644 --- a/mcp-stdio/Cargo.toml +++ b/mcp-stdio/Cargo.toml @@ -8,3 +8,6 @@ tokio = { version = "1.53.1", features = ["io-util", "macros"] } [dev-dependencies] tokio = { version = "1.53.1", features = ["rt", "macros"] } + +[lints] +workspace = true diff --git a/nvim-core/Cargo.toml b/nvim-core/Cargo.toml index 04e97fd..34d08c5 100644 --- a/nvim-core/Cargo.toml +++ b/nvim-core/Cargo.toml @@ -21,3 +21,6 @@ schemars = "0.8" [build-dependencies] chrono = "0.4.45" + +[lints] +workspace = true diff --git a/server/Cargo.toml b/server/Cargo.toml index 16aa387..433589f 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -76,3 +76,6 @@ windows = { version = "0.62.2", features = [ "Graphics_Imaging", "Storage_Streams", ] } + +[lints] +workspace = true diff --git a/server/src/bin/dump_schema.rs b/server/src/bin/dump_schema.rs index 77bc773..2c988da 100644 --- a/server/src/bin/dump_schema.rs +++ b/server/src/bin/dump_schema.rs @@ -1,4 +1,4 @@ -use mcp_memory_server::tools::{DecisionsTool, TechDebtTool, ManageCheckpointTool, HypothesesTool, AgentSignalsTool}; +use mcp_memory_server::tools::AgentSignalsTool; use schemars::schema_for; fn main() { diff --git a/server/src/handlers/meta.rs b/server/src/handlers/meta.rs index 80d2aeb..a2ec980 100644 --- a/server/src/handlers/meta.rs +++ b/server/src/handlers/meta.rs @@ -2347,7 +2347,7 @@ mod tests { .execute(serde_json::json!({"query": "test_sym"}), state.clone()) .await .unwrap(); - assert!(q_lin_res.contains("timeline")); + assert!(q_lin_res.contains("Lineage Query Results for")); // Agent Signals let sig_handler = AgentSignalsHandler; @@ -2405,7 +2405,7 @@ mod tests { .execute(serde_json::json!({}), state.clone()) .await .unwrap(); - assert!(get_next_res.contains("actionable_count")); + assert!(get_next_res.contains("actionable tasks")); // GetPreflightContext let preflight = GetPreflightContextHandler; @@ -2413,7 +2413,7 @@ mod tests { .execute(serde_json::json!({}), state.clone()) .await .unwrap(); - assert!(preflight_res.contains("active_tasks")); + assert!(preflight_res.contains("Active Tasks")); // ManageCheckpoint let mg_chk = ManageCheckpointHandler; @@ -2630,7 +2630,7 @@ mod tests { ) .await .unwrap(); - assert!(preflight_res2.contains("active_tasks")); + assert!(preflight_res2.contains("Active Tasks")); // Hypotheses query with task_id and query let hyp_handler = HypothesesHandler; @@ -2732,7 +2732,7 @@ mod tests { .execute(serde_json::json!({"query": "E0425"}), state.clone()) .await .unwrap(); - assert!(q_lin_res.contains("lineage_count")); + assert!(q_lin_res.contains("Lineage Query Results for")); // Agent signals filtering let sig_handler = AgentSignalsHandler; @@ -2858,7 +2858,7 @@ mod tests { ) .await .unwrap(); - assert!(next_act_res.contains("actionable_count")); + assert!(next_act_res.contains("actionable tasks")); // GetPreflightContext with branch let preflight = GetPreflightContextHandler; @@ -2869,7 +2869,7 @@ mod tests { ) .await .unwrap(); - assert!(pre_res.contains("active_tasks")); + assert!(pre_res.contains("Active Tasks")); } #[tokio::test] diff --git a/stub/Cargo.toml b/stub/Cargo.toml index f0fdc74..8123f1f 100644 --- a/stub/Cargo.toml +++ b/stub/Cargo.toml @@ -20,3 +20,6 @@ async-channel = "2.5.0" [build-dependencies] chrono = "0.4.45" + +[lints] +workspace = true