has() — mcp Function Reference
Architecture documentation for the has() function in graph-cache.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 90af3150_ce81_c645_faa7_5b8b9bcf5ecc["has()"] 11d5249b_82de_e1fb_e621_e95ae1a093c5["buildIndexes()"] 11d5249b_82de_e1fb_e621_e95ae1a093c5 -->|calls| 90af3150_ce81_c645_faa7_5b8b9bcf5ecc 4def3ca5_c0bf_fbae_1c00_3a7385fe0264["loadCacheFromDisk()"] 4def3ca5_c0bf_fbae_1c00_3a7385fe0264 -->|calls| 90af3150_ce81_c645_faa7_5b8b9bcf5ecc ec84daee_4b9f_c373_088b_c46d9bf9913e["detectRepo()"] ec84daee_4b9f_c373_088b_c46d9bf9913e -->|calls| 90af3150_ce81_c645_faa7_5b8b9bcf5ecc 9003922a_3c12_9d09_182b_1d8c2e1893be["precacheForDirectory()"] 9003922a_3c12_9d09_182b_1d8c2e1893be -->|calls| 90af3150_ce81_c645_faa7_5b8b9bcf5ecc f3f1255a_0f7f_c2b0_e99d_eae489cac19d["setupHandlers()"] f3f1255a_0f7f_c2b0_e99d_eae489cac19d -->|calls| 90af3150_ce81_c645_faa7_5b8b9bcf5ecc 1767161e_720a_f6c8_bf00_3dc68740b823["handler()"] 1767161e_720a_f6c8_bf00_3dc68740b823 -->|calls| 90af3150_ce81_c645_faa7_5b8b9bcf5ecc 37989e20_855d_701d_ca13_a196d7d4a37e["handler()"] 37989e20_855d_701d_ca13_a196d7d4a37e -->|calls| 90af3150_ce81_c645_faa7_5b8b9bcf5ecc 2d87a17c_e46f_9198_c263_81d7c3c3054e["findSymbol()"] 2d87a17c_e46f_9198_c263_81d7c3c3054e -->|calls| 90af3150_ce81_c645_faa7_5b8b9bcf5ecc style 90af3150_ce81_c645_faa7_5b8b9bcf5ecc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/cache/graph-cache.ts lines 310–312
has(cacheKey: string): boolean {
return this.cache.has(cacheKey);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does has() do?
has() is a function in the mcp codebase.
What calls has()?
has() is called by 8 function(s): buildIndexes, detectRepo, findSymbol, handler, handler, loadCacheFromDisk, precacheForDirectory, setupHandlers.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free