MCPcopy Create free account
hub / github.com/Noumena-Network/code / willDefer

Function willDefer

src/services/api/claude.ts:1235–1236  ·  view source on GitHub ↗
(t: Tool)

Source from the content-addressed store, hash-verified

1233
1234 const useGlobalCacheFeature = shouldUseGlobalCacheScope()
1235 const willDefer = (t: Tool) =>
1236 useToolSearch && (deferredToolNames.has(t.name) || shouldDeferLspTool(t))
1237 // MCP tools are per-user → dynamic tool section → can't globally cache.
1238 // Only gate when an MCP tool will actually render (not defer_loading).
1239 const needsToolBasedCacheMarker =

Callers 1

queryModelFunction · 0.85

Calls 2

shouldDeferLspToolFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected