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
  f44288ac_9699_6d30_dcdb_c995d1acd1a5["constructor()"]
  fb3524f1_6068_fb0f_15f3_83e2b15a3f3f["constructor()"]
  fb3524f1_6068_fb0f_15f3_83e2b15a3f3f -->|calls| f44288ac_9699_6d30_dcdb_c995d1acd1a5
  style f44288ac_9699_6d30_dcdb_c995d1acd1a5 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.
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