MCPcopy Index your code
hub / github.com/github/copilot-sdk / notify

Method notify

python/copilot/_jsonrpc.py:216–229  ·  view source on GitHub ↗

Send a JSON-RPC notification (no response expected). Args: method: Method name params: Optional parameters

(self, method: str, params: dict | None = None)

Source from the content-addressed store, hash-verified

214 self._pending_inline_callbacks.pop(request_id, None)
215
216 async def notify(self, method: str, params: dict | None = None):
217 """
218 Send a JSON-RPC notification (no response expected).
219
220 Args:
221 method: Method name
222 params: Optional parameters
223 """
224 message = {
225 "jsonrpc": "2.0",
226 "method": method,
227 "params": params or {},
228 }
229 await self._send_message(message)
230
231 def set_notification_handler(self, handler: Callable[[str, dict], None]):
232 """Set the handler for incoming notifications from the server."""

Callers

nothing calls this directly

Calls 1

_send_messageMethod · 0.95

Tested by

no test coverage detected