(
dctx: DispatchContext[TransportContext], method: str, params: Mapping[str, Any] | None
)
| 507 | """ |
| 508 | |
| 509 | async def handle( |
| 510 | dctx: DispatchContext[TransportContext], method: str, params: Mapping[str, Any] | None |
| 511 | ) -> dict[str, Any]: |
| 512 | meta = (params or {}).get("_meta", {}) |
| 513 | connection = Connection.from_envelope( |
| 514 | meta.get(PROTOCOL_VERSION_META_KEY, LATEST_MODERN_VERSION), |
| 515 | meta.get(CLIENT_INFO_META_KEY), |
| 516 | meta.get(CLIENT_CAPABILITIES_META_KEY), |
| 517 | ) |
| 518 | return await serve_one(server, dctx, method, params, connection=connection, lifespan_state=lifespan_state) |
| 519 | |
| 520 | return handle |
nothing calls this directly
no test coverage detected