MCPcopy
hub / github.com/continuedev/continue / is401Error

Function is401Error

core/context/mcp/MCPConnection.ts:51–57  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

49const COMMONS_ENV_VARS = ["HOME", "USER", "USERPROFILE", "LOGNAME", "USERNAME"];
50
51function is401Error(error: unknown) {
52 return (
53 (error instanceof SseError && error.code === 401) ||
54 (error instanceof Error && error.message.includes("401")) ||
55 (error instanceof Error && error.message.includes("Unauthorized"))
56 );
57}
58
59export type MCPExtras = {
60 ide: IDE;

Callers 1

connectClientMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected