diff --git a/crates/ruvector-cli/Cargo.toml b/crates/ruvector-cli/Cargo.toml index 668210073..c30695874 100644 --- a/crates/ruvector-cli/Cargo.toml +++ b/crates/ruvector-cli/Cargo.toml @@ -42,7 +42,7 @@ indicatif = { workspace = true } console = { workspace = true } # Async -tokio = { workspace = true } +tokio = { workspace = true, features = ["io-std"] } futures = { workspace = true } # Error handling diff --git a/crates/ruvector-cli/src/mcp/handlers.rs b/crates/ruvector-cli/src/mcp/handlers.rs index 27cf7b872..626243081 100644 --- a/crates/ruvector-cli/src/mcp/handlers.rs +++ b/crates/ruvector-cli/src/mcp/handlers.rs @@ -118,6 +118,14 @@ impl McpHandler { "resources/read" => self.handle_resources_read(request.id, request.params).await, "prompts/list" => self.handle_prompts_list(request.id).await, "prompts/get" => self.handle_prompts_get(request.id, request.params).await, + + "resources/templates/list" => { + let empty_templates = serde_json::json!({ + "resourceTemplates": [] + }); + McpResponse::success(request.id, empty_templates) + }, + _ => McpResponse::error( request.id, McpError::new(error_codes::METHOD_NOT_FOUND, "Method not found"),