MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / handle_sse

Function handle_sse

tests/shared/test_sse.py:94–97  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

92 )
93
94 async def handle_sse(request: Request) -> Response:
95 async with sse.connect_sse(request.scope, request.receive, request._send) as (read_stream, write_stream):
96 await server.run(read_stream, write_stream, server.create_initialization_options())
97 return Response()
98
99 return Starlette(
100 routes=[

Callers 1

sse_endpointMethod · 0.50

Calls 3

connect_sseMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected