pub async fn collect_usage(
service: &Arc<NativeService>,
client: &str,
granted: &BTreeSet<String>,
filter: Option<&BTreeSet<String>>,
refresh: bool,
discover: bool,
identity: bool,
) -> Result<Value>Expand description
Discover (when asked), probe every granted connection of wanted, and
shape the snapshot into the usage report. Shared by the MCP usage tool
and the originlm usage / olm usage command so both show the same numbers.