MCPcopy Create free account
hub / github.com/github/copilot-sdk / on_open

Method on_open

python/e2e/test_canvas_e2e.py:34–40  ·  view source on GitHub ↗
(self, ctx: CanvasProviderOpenRequest)

Source from the content-addressed store, hash-verified

32 self.close_calls: list[CanvasProviderCloseRequest] = []
33
34 async def on_open(self, ctx: CanvasProviderOpenRequest) -> CanvasProviderOpenResult:
35 self.open_calls.append(ctx)
36 return CanvasProviderOpenResult(
37 url="https://example.test/counter",
38 title="Counter Canvas",
39 status="ready",
40 )
41
42 async def on_close(self, ctx: CanvasProviderCloseRequest) -> None:
43 self.close_calls.append(ctx)

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80

Tested by

no test coverage detected