MCPcopy Create free account
hub / github.com/AI45Lab/Code / last_used_at_ms

Method last_used_at_ms

core/src/mcp/manager.rs:180–182  ·  view source on GitHub ↗

Return the last-used timestamp (Unix epoch ms) for a connected server, or `None` if the server is unknown / not connected.

(&self, name: &str)

Source from the content-addressed store, hash-verified

178 /// Return the last-used timestamp (Unix epoch ms) for a connected
179 /// server, or `None` if the server is unknown / not connected.
180 pub async fn last_used_at_ms(&self, name: &str) -> Option<u64> {
181 self.last_used_at_ms.read().await.get(name).copied()
182 }
183
184 /// Mark a server as active right now. The framework calls this
185 /// automatically on connect and on every successful

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected