We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 484b5b8 + 844bbe0 commit 29678ddCopy full SHA for 29678dd
server/src/mcpProxy.ts
@@ -6,12 +6,10 @@ function onClientError(error: Error) {
6
}
7
8
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
- ) {
+ if (error?.cause && JSON.stringify(error.cause).includes("ECONNREFUSED")) {
14
console.error("Connection refused. Is the MCP server running?");
+ } else if (error.message && error.message.includes("404")) {
+ console.error("Error accessing endpoint (HTTP 404)");
15
} else {
16
console.error("Error from MCP server:", error);
17
0 commit comments