mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🔧 fix: Remove empty result check from MCPConnection transport send method, allow pinging mcp servers
This commit is contained in:
parent
ea2cbc55a7
commit
6b58547c63
1 changed files with 0 additions and 3 deletions
|
|
@ -320,9 +320,6 @@ export class MCPConnection extends EventEmitter {
|
|||
|
||||
const originalSend = this.transport.send.bind(this.transport);
|
||||
this.transport.send = async (msg) => {
|
||||
if ('result' in msg && !('method' in msg) && Object.keys(msg.result ?? {}).length === 0) {
|
||||
throw new Error('Empty result');
|
||||
}
|
||||
this.logger?.debug(`[MCP][${this.serverName}] Transport sending: ${JSON.stringify(msg)}`);
|
||||
return originalSend(msg);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue