I am using sendLoggingMessage
to send log from server to client, and it works on the inspector. However, cursor will break the connection at this api call.
const transport = new StdioServerTransport();
**await** server.connect(transport);
server.sendLoggingMessage({
level: "info",
data: "server is up ....",
});
2025-04-06 08:08:21.046 [error] tdio: Error in MCP: Client closed
Plus, according to mcp doc, the console.error
should be captured by client, but the following log was not seen in cursor mcp output:
console.error('server is up')