Skip to main content

Module tool_discovery_cache

Module tool_discovery_cache 

Source
Expand description

Tool discovery caching system for MCP to avoid redundant tool searches

This module provides multi-level caching for MCP tool discovery with bloom filters for fast exact-name negative lookups and an LRU cache for positive results. The bloom filter only screens exact tool names; fuzzy discovery keywords are never screened against it because its definitive “no” does not extend to fuzzy matching.

Structs§

BloomFilter
Bloom filter for fast negative lookups (tool doesn’t exist)
CachedToolDiscovery
Enhanced tool discovery with caching
ToolCacheStats
Cache statistics for monitoring
ToolDiscoveryResult
Cached tool discovery result (matches actual API)