MCPcopy Create free account
hub / github.com/cloudflare/mcp / fresh

Function fresh

src/isolate-cache.ts:28–30  ·  view source on GitHub ↗
(entry: Entry<T> | undefined, now: number)

Source from the content-addressed store, hash-verified

26let nonCodemodeToolMapSource: NonCodemodeTool[] | undefined
27
28function fresh<T>(entry: Entry<T> | undefined, now: number): entry is Entry<T> {
29 return entry !== undefined && entry.expiresAt > now
30}
31
32/**
33 * The raw `spec.json` text (for embedding into the search isolate) and its

Callers 3

getSpecFunction · 0.85
getNonCodemodeToolsFunction · 0.85
getProductsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected