MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / notify

Method notify

src/mcp/client.ts:308–311  ·  view source on GitHub ↗
(method: string, params?: unknown)

Source from the content-addressed store, hash-verified

306 }
307
308 private notify(method: string, params?: unknown): void {
309 const notif: JsonRpcNotification = { jsonrpc: '2.0', method, params };
310 this.send(notif).catch(e => logger.warn(`MCP ${this.name} notify failed`, { method, err: e.message }));
311 }
312
313 private async send(msg: object): Promise<void> {
314 if (!this.transport) throw new Error(`MCP ${this.name} transport not initialized`);

Callers 1

startMethod · 0.95

Calls 2

sendMethod · 0.95
warnMethod · 0.80

Tested by

no test coverage detected