MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / app

Function app

tests/server/test_streamable_http_modern.py:64–66  ·  view source on GitHub ↗
(scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

62
63def _asgi_client(server: Server[Any], security_settings: TransportSecuritySettings | None = None) -> httpx.AsyncClient:
64 async def app(scope: Scope, receive: Receive, send: Send) -> None:
65 async with server.lifespan(server) as lifespan_state:
66 await handle_modern_request(server, security_settings, lifespan_state, scope, receive, send)
67
68 return httpx.AsyncClient(
69 transport=httpx.ASGITransport(app=app),

Callers

nothing calls this directly

Calls 2

handle_modern_requestFunction · 0.90
lifespanMethod · 0.80

Tested by

no test coverage detected