+
    ÆÚj  ã                   ó¤   € R t ^ RIHt ^ RIHtHt ^ RIt^ RIHt ^ RI	H
t
 ^ RIHtHt ^ RIHt R.t]
! R	]]R
R7      t ! R R]],          4      tR# )aÄ  `BaseContext` - the user-facing per-request context.

Composition over a `DispatchContext`: forwards the transport metadata, the
back-channel (`send_raw_request`/`notify`), progress reporting, and the cancel
event. Adds `meta` (the inbound request's `_meta` field).

Satisfies `Outbound`, so `ClientPeer` can wrap it. Shared between client and
server: the server's `Context` extends this with `lifespan`/`connection`;
`ClientContext` is just an alias.
)ÚMapping)ÚAnyÚGenericN©ÚRequestParamsMeta)ÚTypeVar)ÚCallOptionsÚDispatchContext)ÚTransportContextÚBaseContextÚ
TransportTT)ÚboundÚdefaultÚ	covariantc                   óì   a € ] tR t^t o RtRV 3R lR llt]V 3R lR l4       t]V 3R lR l4       t]V 3R	 lR
 l4       t	]V 3R lR l4       t
RV 3R lR lltRV 3R lR lltRV 3R lR lltRtV tR# )r   zŠPer-request context wrapping a `DispatchContext`.

`ServerRunner` constructs one per inbound request and passes it to the
user's handler.
Nc                óH   <€ V ^8„  d   QhRS[ S[,          RS[R,          RR/# )é   ÚdctxÚmetaNÚreturn)r	   r   r   )ÚformatÚ__classdict__s   "€Ú‰/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/mcp/shared/context.pyÚ__annotate__ÚBaseContext.__annotate__"   s/   ø€ ÷ ñ ™_©ZÕ8ð Ñ@QÐTXÕ@Xð Ðdhñ ó    c                ó   € Wn         W n        R # ©N©Ú_dctxÚ_meta)Úselfr   r   s   &&&r   Ú__init__ÚBaseContext.__init__"   s   € ØŒ
ØŽ
r   c                ó    <€ V ^8„  d   QhRS[ /# ©r   r   )r   )r   r   s   "€r   r   r   '   s   ø€ ÷ $ñ $™:ñ $r   c                ó.   € V P                   P                  # )z5Transport-specific metadata for this inbound request.)r   Ú	transport©r!   s   &r   r'   ÚBaseContext.transport&   s   € ð �z‰z×#Ñ#Ð#r   c                ó4   <€ V ^8„  d   QhRS[ P                  /# r%   )ÚanyioÚEvent)r   r   s   "€r   r   r   ,   s   ø€ ÷ +ñ +¡%§+¡+ñ +r   c                ó.   € V P                   P                  # )zCSet when the peer sends `notifications/cancelled` for this request.)r   Úcancel_requestedr(   s   &r   r.   ÚBaseContext.cancel_requested+   s   € ð �z‰z×*Ñ*Ð*r   c                ó    <€ V ^8„  d   QhRS[ /# r%   )Úbool)r   r   s   "€r   r   r   1   s   ø€ ÷ +ñ +¡$ñ +r   c                ó.   € V P                   P                  # )zÙWhether the back-channel can currently deliver server-initiated requests.

`False` when the transport has no back-channel, or when the underlying
dispatch context has been closed because the inbound request finished.
)r   Úcan_send_requestr(   s   &r   r3   ÚBaseContext.can_send_request0   s   € ð �z‰z×*Ñ*Ð*r   c                ó.   <€ V ^8„  d   QhRS[ R,          /# )r   r   Nr   )r   r   s   "€r   r   r   :   s   ø€ ÷ ñ Ñ'¨$Õ.ñ r   c                ó   € V P                   # )z0The inbound request's `_meta` field, if present.)r    r(   s   &r   r   ÚBaseContext.meta9   s   € ð �z‰zÐr   c          
      óz   <€ V ^8„  d   QhRS[ RS[S[ S[3,          R,          RS[R,          RS[S[ S[3,          /# ©r   ÚmethodÚparamsNÚoptsr   )Ústrr   r   r   Údict)r   r   s   "€r   r   r   >   sT   ø€ ÷ Gñ GáðGñ ™™S˜Õ! DÕ(ðGñ ˜DÕ ð	Gñ
 
‰c‘3ˆh�ñGr   c              ƒ  óV   "  € V P                   P                  WV4      G Rj  x€L
 #  L5i)z Send a request to the peer on the back-channel.

Raises:
    MCPError: The peer responded with an error.
    NoBackChannelError: `can_send_request` is `False`.
N)r   Úsend_raw_request©r!   r:   r;   r<   s   &&&&r   r@   ÚBaseContext.send_raw_request>   s$   é € ð —Z‘Z×0Ñ0°ÀÓF×FÐFÑFùs   ‚ )¢'£)c                ób   <€ V ^8„  d   QhRS[ RS[S[ S[3,          R,          RS[R,          RR/# r9   )r=   r   r   r   )r   r   s   "€r   r   r   L   s?   ø€ ÷ 6ñ 6¡3ð 6±¹¹S¸Õ0AÀDÕ0Hð 6ÑP[Ð^bÕPbð 6Ðnrñ 6r   c              ƒ  óZ   "  € V P                   P                  WV4      G Rj  x€L
  R#  L5i)z4Send a notification to the peer on the back-channel.N)r   ÚnotifyrA   s   &&&&r   rE   ÚBaseContext.notifyL   s   é € à�j‰j×Ñ °Ó5×5Ô5ùó   ‚ +¢)£+c                óL   <€ V ^8„  d   QhRS[ RS[ R,          RS[R,          RR/# )r   ÚprogressÚtotalNÚmessager   )Úfloatr=   )r   r   s   "€r   r   r   P   s5   ø€ ÷ <ñ <©eð <¹EÀD½Lð <ÑZ]Ð`dÕZdð <Ðptñ <r   c              ƒ  óZ   "  € V P                   P                  WV4      G Rj  x€L
  R#  L5i)znReport progress for this request, if the peer supplied a progress token.

A no-op when no token was supplied.
N)r   rI   )r!   rI   rJ   rK   s   &&&&r   Úreport_progressÚBaseContext.report_progressP   s!   é € ð
 �j‰j×!Ñ! (°7Ó;×;Ô;ùrG   r   r   )NN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r"   Úpropertyr'   r.   r3   r   r@   rE   rN   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r      s‰   ø‡ € ñ÷ò ð ÷$ó ð$ð ÷+ó ð+ð ÷+ó ð+ð ÷ó ð÷Gò G÷6ò 6÷<÷ <ð <r   )rT   Úcollections.abcr   Útypingr   r   r+   Ú	mcp_typesr   Útyping_extensionsr   Úmcp.shared.dispatcherr   r	   Úmcp.shared.transport_contextr
   Ú__all__r   r   © r   r   Ú<module>r`      sL   ðñ	õ $ß ã Ý 'Ý %ç >Ý 9àˆ/€á�\Ð)9ÐCSÐ_cÔd€
ô:<�'˜*Õ%ö :<r   