has() — mcp Function Reference
Architecture documentation for the has() function in graph-cache.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD c652ed9f_2901_0635_2a5b_fc305e9cd6c1["has()"] 2f679171_fd3f_3cd5_48b2_587cc9ec01fd["buildIndexes()"] 2f679171_fd3f_3cd5_48b2_587cc9ec01fd -->|calls| c652ed9f_2901_0635_2a5b_fc305e9cd6c1 f528cae6_71d3_4b84_026d_d4778648e9c8["loadCacheFromDisk()"] f528cae6_71d3_4b84_026d_d4778648e9c8 -->|calls| c652ed9f_2901_0635_2a5b_fc305e9cd6c1 b0309b0d_ce6c_f9db_7d04_57a3e85e30fc["detectRepo()"] b0309b0d_ce6c_f9db_7d04_57a3e85e30fc -->|calls| c652ed9f_2901_0635_2a5b_fc305e9cd6c1 966fdd0a_509a_01b0_865e_32cfde84f964["precacheForDirectory()"] 966fdd0a_509a_01b0_865e_32cfde84f964 -->|calls| c652ed9f_2901_0635_2a5b_fc305e9cd6c1 4646463d_3032_7be4_79ae_2b8f22f309dd["setupHandlers()"] 4646463d_3032_7be4_79ae_2b8f22f309dd -->|calls| c652ed9f_2901_0635_2a5b_fc305e9cd6c1 fdc0fb6f_bf66_23e1_e32e_b17145da77c5["handler()"] fdc0fb6f_bf66_23e1_e32e_b17145da77c5 -->|calls| c652ed9f_2901_0635_2a5b_fc305e9cd6c1 d01a6f75_522a_03cd_b386_1c1c752e4564["handler()"] d01a6f75_522a_03cd_b386_1c1c752e4564 -->|calls| c652ed9f_2901_0635_2a5b_fc305e9cd6c1 ad473066_969b_8fc8_45fe_f01051030d72["findSymbol()"] ad473066_969b_8fc8_45fe_f01051030d72 -->|calls| c652ed9f_2901_0635_2a5b_fc305e9cd6c1 style c652ed9f_2901_0635_2a5b_fc305e9cd6c1 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