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
  51f885a0_a154_2661_6db1_895d87993e3c["constructor()"]
  c038b2a8_9211_043e_36bd_8ccef7d18ab5["constructor()"]
  c038b2a8_9211_043e_36bd_8ccef7d18ab5 -->|calls| 51f885a0_a154_2661_6db1_895d87993e3c
  style 51f885a0_a154_2661_6db1_895d87993e3c 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