fetchWithTimeout() — mcp Function Reference
Architecture documentation for the fetchWithTimeout() function in server.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD abf72c06_de6b_892c_0f25_3b443e42e1e8["fetchWithTimeout()"] 54581714_e921_5e5e_17c6_d2040cdc3b55["server.ts"] abf72c06_de6b_892c_0f25_3b443e42e1e8 -->|defined in| 54581714_e921_5e5e_17c6_d2040cdc3b55 style abf72c06_de6b_892c_0f25_3b443e42e1e8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/server.ts lines 34–40
const fetchWithTimeout: typeof fetch = (url, init) => {
return fetch(url, {
...init,
// @ts-ignore - 'dispatcher' is a valid undici option
dispatcher: agent,
});
};
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does fetchWithTimeout() do?
fetchWithTimeout() is a function in the mcp codebase, defined in src/server.ts.
Where is fetchWithTimeout() defined?
fetchWithTimeout() is defined in src/server.ts at line 34.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free