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

Method sse_endpoint

src/mcp/server/mcpserver/server.py:997–999  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

995 # Auth is disabled, no need for RequireAuthMiddleware
996 # Since handle_sse is an ASGI app, we need to create a compatible endpoint
997 async def sse_endpoint(request: Request) -> Response: # pragma: no cover
998 # Convert the Starlette request to ASGI parameters
999 return await handle_sse(request.scope, request.receive, request._send) # type: ignore[reportPrivateUsage]
1000
1001 routes.append(
1002 Route(

Callers

nothing calls this directly

Calls 1

handle_sseFunction · 0.50

Tested by

no test coverage detected