Home / Function/ has() — mcp Function Reference

has() — mcp Function Reference

Architecture documentation for the has() function in graph-cache.ts from the mcp codebase.

Entity Profile

Dependency Diagram

graph TD
  5b58088c_d9af_5bc6_19ab_1fff095079b9["has()"]
  04799611_7360_96bd_a002_0c06de0b1d90["GraphCache"]
  5b58088c_d9af_5bc6_19ab_1fff095079b9 -->|defined in| 04799611_7360_96bd_a002_0c06de0b1d90
  f20c71b7_2411_d98b_88ba_3ebc36bdd1f5["buildIndexes()"]
  f20c71b7_2411_d98b_88ba_3ebc36bdd1f5 -->|calls| 5b58088c_d9af_5bc6_19ab_1fff095079b9
  8e2a6102_97e1_76b1_c08e_d7b87f095026["loadCacheFromDisk()"]
  8e2a6102_97e1_76b1_c08e_d7b87f095026 -->|calls| 5b58088c_d9af_5bc6_19ab_1fff095079b9
  40378b99_8607_8e31_116f_694f33f24f45["detectRepo()"]
  40378b99_8607_8e31_116f_694f33f24f45 -->|calls| 5b58088c_d9af_5bc6_19ab_1fff095079b9
  5f051fd3_b5fd_05fe_3e0b_f20364a0b064["precacheForDirectory()"]
  5f051fd3_b5fd_05fe_3e0b_f20364a0b064 -->|calls| 5b58088c_d9af_5bc6_19ab_1fff095079b9
  6471f5ca_fcb9_6e5d_af84_17b245dc7c0f["setupHandlers()"]
  6471f5ca_fcb9_6e5d_af84_17b245dc7c0f -->|calls| 5b58088c_d9af_5bc6_19ab_1fff095079b9
  acad5452_c49c_a5b9_12f1_5263dd556260["findSymbol()"]
  acad5452_c49c_a5b9_12f1_5263dd556260 -->|calls| 5b58088c_d9af_5bc6_19ab_1fff095079b9
  style 5b58088c_d9af_5bc6_19ab_1fff095079b9 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

Frequently Asked Questions

What does has() do?
has() is a function in the mcp codebase, defined in src/cache/graph-cache.ts.
Where is has() defined?
has() is defined in src/cache/graph-cache.ts at line 310.
What calls has()?
has() is called by 6 function(s): buildIndexes, detectRepo, findSymbol, loadCacheFromDisk, precacheForDirectory, setupHandlers.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free