(server, method, params)
| 310 | } |
| 311 | |
| 312 | _sendNotification(server, method, params) { |
| 313 | if (!server.process || !server.process.stdin) return; |
| 314 | const msg = JSON.stringify({ jsonrpc: '2.0', method, params }) + '\n'; |
| 315 | try { server.process.stdin.write(msg); } catch {} |
| 316 | } |
| 317 | } |
| 318 | |
| 319 | module.exports = { MCPClient }; |