MCPcopy
hub / github.com/coder/mux / onUncaughtError

Method onUncaughtError

src/node/services/mcpServerManager.ts:1851–1862  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

1849 let transportErrored = false;
1850
1851 const onUncaughtError = (error: unknown) => {
1852 if (transportErrored) {
1853 return;
1854 }
1855 log.error("[MCP] Uncaught transport error", { name, error: getErrorMessage(error) });
1856 if (isClosedClientError(error)) {
1857 transportErrored = true;
1858 if (instanceRef.current) {
1859 instanceRef.current.isClosed = true;
1860 }
1861 }
1862 };
1863
1864 const transportBase = {
1865 url: info.url,

Callers

nothing calls this directly

Calls 2

getErrorMessageFunction · 0.90
isClosedClientErrorFunction · 0.85

Tested by

no test coverage detected