MCPcopy Create free account
hub / github.com/c4pt0r/pie / handle_notification

Function handle_notification

examples/mcp-notify-python/notify-server.py:89–94  ·  view source on GitHub ↗
(method: str, params: dict)

Source from the content-addressed store, hash-verified

87
88
89def handle_notification(method: str, params: dict) -> None:
90 # The only inbound notification pie sends is `notifications/initialized` per MCP spec.
91 if method == "notifications/initialized":
92 log("client signaled initialized")
93 return
94 log(f"ignoring inbound notification: {method}")
95
96
97def heartbeat_loop(stop_event: threading.Event) -> None:

Callers 1

mainFunction · 0.70

Calls 1

logFunction · 0.70

Tested by

no test coverage detected