Merge branch 'main' into feature/elicitations
This commit is contained in:
commit
844bbe08d4
2 changed files with 6 additions and 5 deletions
3
package-lock.json
generated
3
package-lock.json
generated
|
|
@ -37,6 +37,9 @@
|
||||||
"prettier": "3.3.3",
|
"prettier": "3.3.3",
|
||||||
"rimraf": "^6.0.1",
|
"rimraf": "^6.0.1",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22.7.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cli": {
|
"cli": {
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,10 @@ function onClientError(error: Error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onServerError(error: Error) {
|
function onServerError(error: Error) {
|
||||||
if (
|
if (error?.cause && JSON.stringify(error.cause).includes("ECONNREFUSED")) {
|
||||||
(error?.message &&
|
|
||||||
error.message.includes("Error POSTing to endpoint (HTTP 404)")) ||
|
|
||||||
(error?.cause && JSON.stringify(error.cause).includes("ECONNREFUSED"))
|
|
||||||
) {
|
|
||||||
console.error("Connection refused. Is the MCP server running?");
|
console.error("Connection refused. Is the MCP server running?");
|
||||||
|
} else if (error.message && error.message.includes("404")) {
|
||||||
|
console.error("Error accessing endpoint (HTTP 404)");
|
||||||
} else {
|
} else {
|
||||||
console.error("Error from MCP server:", error);
|
console.error("Error from MCP server:", error);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue