Added sandbox error hint when MCP servers fail to launch in sandbox mode (#972)
This commit is contained in:
parent
6af7a5c589
commit
7e6fb7e874
|
@ -223,10 +223,13 @@ async function connectAndDiscover(
|
|||
// Exclude args and env which may contain sensitive data
|
||||
};
|
||||
|
||||
console.error(
|
||||
let errorString =
|
||||
`failed to start or connect to MCP server '${mcpServerName}' ` +
|
||||
`${JSON.stringify(safeConfig)}; \n${error}`,
|
||||
);
|
||||
`${JSON.stringify(safeConfig)}; \n${error}`;
|
||||
if (process.env.SANDBOX) {
|
||||
errorString += `\nMake sure it is available in the sandbox`;
|
||||
}
|
||||
console.error(errorString);
|
||||
// Update status to disconnected
|
||||
updateMCPServerStatus(mcpServerName, MCPServerStatus.DISCONNECTED);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue