Skip to content

Commit c0e9899

Browse files
committed
fix connection refused error message
Signed-off-by: Manabu McCloskey <[email protected]>
1 parent 873b838 commit c0e9899

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server/src/mcpProxy.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ function onClientError(error: Error) {
66
}
77

88
function onServerError(error: Error) {
9-
if (
10-
(error?.message &&
11-
error.message.includes("Error POSTing to endpoint (HTTP 404)")) ||
12-
(error?.cause && JSON.stringify(error.cause).includes("ECONNREFUSED"))
13-
) {
9+
if (error?.cause && JSON.stringify(error.cause).includes("ECONNREFUSED")) {
1410
console.error("Connection refused. Is the MCP server running?");
1511
} else {
1612
console.error("Error from MCP server:", error);

0 commit comments

Comments
 (0)