Skip to content

Commit 5868c6b

Browse files
committed
print explicit 404 message
Signed-off-by: Manabu McCloskey <[email protected]>
1 parent c0e9899 commit 5868c6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/mcpProxy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ function onClientError(error: Error) {
88
function onServerError(error: Error) {
99
if (error?.cause && JSON.stringify(error.cause).includes("ECONNREFUSED")) {
1010
console.error("Connection refused. Is the MCP server running?");
11+
} else if (error.message && error.message.includes("404")) {
12+
console.error("Error accessing endpoint (HTTP 404)");
1113
} else {
1214
console.error("Error from MCP server:", error);
1315
}

0 commit comments

Comments
 (0)