Wall-clock now() in Unix epoch milliseconds. Used internally by the activity-tracking + idle-disconnect path. Kept as a free function (rather than going through `HostEnv`) because the MCP manager predates host_env wiring and the host's `Clock` impl is not yet threaded into the manager.
()
| 422 | /// predates host_env wiring and the host's `Clock` impl is not yet |
| 423 | /// threaded into the manager. |
| 424 | fn now_epoch_ms() -> u64 { |
| 425 | std::time::SystemTime::now() |
| 426 | .duration_since(std::time::UNIX_EPOCH) |
| 427 | .map(|d| d.as_millis() as u64) |
| 428 | .unwrap_or(0) |
| 429 | } |
| 430 | |
| 431 | /// Convert MCP tool result to string output |
| 432 | pub fn tool_result_to_string(result: &CallToolResult) -> String { |
no test coverage detected