Skip to content

Commit 844bbe0

Browse files
authored
Merge branch 'main' into feature/elicitations
2 parents 6cddc51 + e76bb0a commit 844bbe0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/src/mcpProxy.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ 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?");
11+
} else if (error.message && error.message.includes("404")) {
12+
console.error("Error accessing endpoint (HTTP 404)");
1513
} else {
1614
console.error("Error from MCP server:", error);
1715
}

0 commit comments

Comments
 (0)