MCPcopy
hub / github.com/Doorman11991/smallcode / _sendNotification

Method _sendNotification

src/tools/mcp_client.js:312–316  ·  view source on GitHub ↗
(server, method, params)

Source from the content-addressed store, hash-verified

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
319module.exports = { MCPClient };

Callers 1

_connectServerMethod · 0.95

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected