constants.ts — mcp Source File
Architecture documentation for constants.ts, a typescript file in the mcp codebase. 0 imports, 6 dependents.
Entity Profile
Dependency Diagram
graph LR 19f4d048_f875_3a64_f6f5_2d534dca972b["constants.ts"] 108c9ff4_bdb8_518a_9256_9ff4cd9d39a7["graph-cache.ts"] 108c9ff4_bdb8_518a_9256_9ff4cd9d39a7 --> 19f4d048_f875_3a64_f6f5_2d534dca972b 54581714_e921_5e5e_17c6_d2040cdc3b55["server.ts"] 54581714_e921_5e5e_17c6_d2040cdc3b55 --> 19f4d048_f875_3a64_f6f5_2d534dca972b 242ec636_ba33_547c_5cb6_5f619c73d099["overview.ts"] 242ec636_ba33_547c_5cb6_5f619c73d099 --> 19f4d048_f875_3a64_f6f5_2d534dca972b 4e8cb5f6_f6f3_2b7d_9300_e8877f606de7["symbol-context.test.ts"] 4e8cb5f6_f6f3_2b7d_9300_e8877f606de7 --> 19f4d048_f875_3a64_f6f5_2d534dca972b ca77ccf4_30df_6b5c_22dc_f7ba42fd0765["symbol-context.ts"] ca77ccf4_30df_6b5c_22dc_f7ba42fd0765 --> 19f4d048_f875_3a64_f6f5_2d534dca972b b00e0b6e_8e66_44d2_f709_c8c6bbb476c9["zip-repository.ts"] b00e0b6e_8e66_44d2_f709_c8c6bbb476c9 --> 19f4d048_f875_3a64_f6f5_2d534dca972b style 19f4d048_f875_3a64_f6f5_2d534dca972b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Application-wide constants
* Single source of truth for configuration values
*/
// HTTP timeout configuration
export const DEFAULT_API_TIMEOUT_MS = 900_000; // 15 minutes (complex repos can take 10+ min)
export const CONNECTION_TIMEOUT_MS = 30_000; // 30 seconds to establish connection
// ZIP configuration
export const ZIP_CLEANUP_AGE_MS = 24 * 60 * 60 * 1000; // 24 hours
export const MAX_ZIP_SIZE_BYTES = 500 * 1024 * 1024; // 500MB default
// Cache configuration
export const DEFAULT_MAX_GRAPHS = 20; // Maximum number of graphs to cache
export const DEFAULT_MAX_NODES = 1_000_000; // Maximum total nodes across all cached graphs
export const DEFAULT_CACHE_TTL_MS = 60 * 60 * 1000; // 1 hour - time-to-live for cached graphs
// Overview tool output limits
export const MAX_OVERVIEW_DOMAINS = 10; // Top N domains to show in overview
export const MAX_OVERVIEW_HUB_FUNCTIONS = 10; // Top N hub functions to show
// Symbol context tool output limits
export const MAX_SYMBOL_CALLERS = 10; // Top N callers to show
export const MAX_SYMBOL_CALLEES = 10; // Top N callees to show
export const MAX_SYMBOL_RELATED = 8; // Related symbols in same file
export const MAX_SOURCE_LINES = 50; // Max lines of source code to include inline
Domain
Imported By
Source
Frequently Asked Questions
What does constants.ts do?
constants.ts is a source file in the mcp codebase, written in typescript. It belongs to the McpServer domain.
What files import constants.ts?
constants.ts is imported by 6 file(s): graph-cache.ts, overview.ts, server.ts, symbol-context.test.ts, symbol-context.ts, zip-repository.ts.
Where is constants.ts in the architecture?
constants.ts is located at src/constants.ts (domain: McpServer, directory: src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free