Home / Function/ constructor() — mcp Function Reference

constructor() — mcp Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6b8403ed_3225_353c_2302_260d0a18d1db["constructor()"]
  04799611_7360_96bd_a002_0c06de0b1d90["GraphCache"]
  6b8403ed_3225_353c_2302_260d0a18d1db -->|defined in| 04799611_7360_96bd_a002_0c06de0b1d90
  65787d30_1025_d531_cde5_ded3572607bd["constructor()"]
  65787d30_1025_d531_cde5_ded3572607bd -->|calls| 6b8403ed_3225_353c_2302_260d0a18d1db
  style 6b8403ed_3225_353c_2302_260d0a18d1db fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/cache/graph-cache.ts lines 269–273

  constructor(options?: { maxGraphs?: number; maxNodes?: number; maxAgeMs?: number }) {
    this.maxGraphs = options?.maxGraphs || DEFAULT_MAX_GRAPHS;
    this.maxNodes = options?.maxNodes || DEFAULT_MAX_NODES;
    this.maxAgeMs = options?.maxAgeMs || DEFAULT_CACHE_TTL_MS;
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the mcp codebase, defined in src/cache/graph-cache.ts.
Where is constructor() defined?
constructor() is defined in src/cache/graph-cache.ts at line 269.
What calls constructor()?
constructor() is called by 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free