(
id: serde_json::Value,
params: Option<&serde_json::Value>,
_client_identity: &DaemonClientIdentity,
)
| 2156 | |
| 2157 | #[cfg(unix)] |
| 2158 | async fn projectless_tools_call_response( |
| 2159 | id: serde_json::Value, |
| 2160 | params: Option<&serde_json::Value>, |
| 2161 | _client_identity: &DaemonClientIdentity, |
| 2162 | ) -> crate::mcp::JsonRpcResponse { |
| 2163 | let (tool_name, arguments) = match projectless_tool_call(params) { |
| 2164 | Ok(tool_call) => tool_call, |
| 2165 | Err(message) => { |
| 2166 | return JsonRpcResponse::error(id, ErrorCode::InvalidParams, message.to_string()); |
| 2167 | } |
| 2168 | }; |
| 2169 | |
| 2170 | match crate::mcp::tools::handle_profile_scoped_lcm_tool_call(tool_name, arguments).await { |
| 2171 | Ok(result) => JsonRpcResponse::success(id, result.value), |
| 2172 | Err(e) => JsonRpcResponse::error(id, ErrorCode::InternalError, e.to_string()), |
| 2173 | } |
| 2174 | } |
| 2175 | |
| 2176 | #[cfg(unix)] |
| 2177 | fn projectless_tool_call( |
no test coverage detected