+
    ÆÚj�  ã                  ó–   € ^ RI Ht ^ RIHtHt ^ RIHtHtHtH	t	H
t
  ! R R]4      t ! R R]4      t ! R R	]4      t ! R
 R]4      tR# )é    )Úannotations)ÚAnyÚcast)ÚINVALID_REQUESTÚURL_ELICITATION_REQUIREDÚElicitRequestURLParamsÚ	ErrorDataÚJSONRPCErrorc                  ó   € ] tR t^tRtRtR# )ÚMCPDeprecationWarningaC  A custom deprecation warning for the MCP SDK.

Unlike the built-in `DeprecationWarning`, this inherits from `UserWarning` so
it is shown by default, helping users discover deprecated features without
enabling warnings explicitly.

Reference: https://sethmlarson.dev/deprecations-via-warnings-dont-work-for-python-libraries
© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    ÚŒ/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/mcp/shared/exceptions.pyr   r      s   † õr   r   c                  ó¼   a € ] tR t^t$ RtR]R&   RR V 3R lllt]R R l4       t]R R	 l4       t	]R
 R l4       t
]R R l4       t]R R l4       tR R ltRtV ;t# )ÚMCPErrorzCException type raised when an error arrives over an MCP connection.r	   Úerrorc               ó$   € V ^8„  d   QhRRRRRR/# )é   ÚcodeÚintÚmessageÚstrÚdatar   r   )Úformats   "r   Ú__annotate__ÚMCPError.__annotate__   s!   € ÷ ?ñ ?˜Sð ?¨3ð ?°cñ ?r   c                	óz   <€ \         SV `  WV4       Ve   \        WVR7      V n        R # \        WR7      V n        R # )N©r   r   r   ©r   r   )ÚsuperÚ__init__r	   r   )Úselfr   r   r   Ú	__class__s   &&&&€r   r'   ÚMCPError.__init__   s2   ø€ Ü‰Ñ˜¨Ô-ØÒÜ"¨ÀDÔIˆDŽJä"¨Ô>ˆDŽJr   c               ó   € V ^8„  d   QhRR/# )r   Úreturnr   r   )r    s   "r   r!   r"       ó   € ÷ ñ �cñ r   c                	ó.   € V P                   P                  # ©N)r   r   ©r(   s   &r   r   ÚMCPError.code   ó   € à�z‰z�‰Ðr   c               ó   € V ^8„  d   QhRR/# ©r   r,   r   r   )r    s   "r   r!   r"   $   s   € ÷ "ñ "˜ñ "r   c                	ó.   € V P                   P                  # r/   )r   r   r0   s   &r   r   ÚMCPError.message#   s   € à�z‰z×!Ñ!Ð!r   c               ó   € V ^8„  d   QhRR/# )r   r,   r   r   )r    s   "r   r!   r"   (   r-   r   c                	ó.   € V P                   P                  # r/   )r   r   r0   s   &r   r   ÚMCPError.data'   r2   r   c               ó    € V ^8„  d   QhRRRR/# )r   r   r
   r,   r   r   )r    s   "r   r!   r"   ,   s   € ÷ 0ñ 0 |ð 0¸ñ 0r   c                	ó8   € V P                  VP                  4      # r/   )Úfrom_error_datar   ©Úclsr   s   &&r   Úfrom_jsonrpc_errorÚMCPError.from_jsonrpc_error+   s   € à×"Ñ" 5§;¡;Ó/Ð/r   c               ó    € V ^8„  d   QhRRRR/# )r   r   r	   r,   r   r   )r    s   "r   r!   r"   0   s   € ÷ Lñ L Ið L°(ñ Lr   c                	óT   € V ! VP                   VP                  VP                  R 7      # )r$   r$   r=   s   &&r   r<   ÚMCPError.from_error_data/   s   € á˜Ÿ
™
¨E¯M©MÀÇ
Á
ÔKÐKr   c               ó   € V ^8„  d   QhRR/# r4   r   )r    s   "r   r!   r"   3   s   € ÷ ñ ˜ñ r   c                	ó   € V P                   # r/   )r   r0   s   &r   Ú__str__ÚMCPError.__str__3   s   € Ø�|‰|Ðr   )r   r/   )r   r   r   r   r   Ú__annotations__r'   Úpropertyr   r   r   Úclassmethodr?   r<   rF   r   Ú__classcell__©r)   s   @r   r   r      s†   ø‡ ÙMàÓ÷?ò ?ð ôó ðð ô"ó ð"ð ôó ðð ô0ó ð0ð ôLó ðL÷ó r   r   c                  ó2   a € ] tR t^7tRtR V 3R lltRtV ;t# )ÚNoBackChannelErrorah  Raised when a server-initiated request has no channel that can deliver it.

Raised by `DispatchContext.send_raw_request` when its request-scoped channel
reports `TransportContext.can_send_request` as `False` (the cases are
documented on that field), and by a connection's standalone channel when it
has none; serializes to an `INVALID_REQUEST` error response.
c               ó   € V ^8„  d   QhRR/# )r   Úmethodr   r   )r    s   "r   r!   ÚNoBackChannelError.__annotate__@   s   € ÷ ñ ˜sñ r   c                	óH   <€ \         SV `  \        R V: R2R7       Wn        R# )zCannot send zK: this transport context has no back-channel for server-initiated requests.r%   N)r&   r'   r   rP   )r(   rP   r)   s   &&€r   r'   ÚNoBackChannelError.__init__@   s,   ø€ Ü‰ÑÜ à˜v™jÐ(sÐtð 	ô 	
ð Žr   )rP   )r   r   r   r   r   r'   r   rK   rL   s   @r   rN   rN   7   s   ø† ñ÷ö r   rN   c                  ób   a € ] tR t^JtRtR	R V 3R lllt]R R l4       t]R R l4       t	Rt
V ;t# )
ÚUrlElicitationRequiredErrora  Specialized error for when a tool requires URL mode elicitation(s) before proceeding.

Servers can raise this error from tool handlers to indicate that the client
must complete one or more URL elicitations before the request can be processed.

Example:
    ```python
    raise UrlElicitationRequiredError([
        ElicitRequestURLParams(
            message="Authorization required for your files",
            url="https://example.com/oauth/authorize",
            elicitation_id="auth-001"
        )
    ])
    ```
c               ó    € V ^8„  d   QhRRRR/# )r   Úelicitationsúlist[ElicitRequestURLParams]r   z
str | Noner   )r    s   "r   r!   Ú(UrlElicitationRequiredError.__annotate__\   s   € ÷ 
ñ 
Ð%Að 
ÈJñ 
r   c                óÆ   <€ Vf   R\        V4      ^8”  d   RMR R2pWn        \        ST `  \        TRV Uu. uF  q3P                  RRR7      NK  	  up/R	7       R# u upi )
z'Initialize UrlElicitationRequiredError.NzURL elicitationÚsÚ z	 requiredrW   T)Úby_aliasÚexclude_noner$   )ÚlenÚ_elicitationsr&   r'   r   Ú
model_dump)r(   rW   r   Úer)   s   &&& €r   r'   Ú$UrlElicitationRequiredError.__init__\   so   ø€ àŠ?Ø'¬s°<Ó/@À1Ô/D©È"Ð'MÈYÐWˆGà)Ôä‰ÑÜ)ØØ Ñ[gÓ"hÑ[gÐVW§<¡<¸ÈD <Ö#QÑ[gÑ"hÐið 	ö 	
ùò #is   ¸Ac               ó   € V ^8„  d   QhRR/# )r   r,   rX   r   )r    s   "r   r!   rY   j   s   € ÷ "ñ "Ð:ñ "r   c                ó   € V P                   # )zEThe list of URL elicitations required before the request can proceed.©r`   r0   s   &r   rW   Ú(UrlElicitationRequiredError.elicitationsi   s   € ð ×!Ñ!Ð!r   c               ó    € V ^8„  d   QhRRRR/# )r   r   r	   r,   rU   r   )r    s   "r   r!   rY   o   s   € ÷ 0ñ 0˜yð 0Ð-Hñ 0r   c                óÄ  € VP                   \        8w  d    \        R\         RVP                    24      h\        \        \
        \        3,          VP                  ;'       g    / 4      p\        \        \        \
        \        3,          ,          VP                  R. 4      4      pV Uu. uF  p\        P                  ! V4      NK  	  ppV ! WQP                  4      # u upi )z5Reconstruct from an ErrorData received over the wire.zExpected error code z, got rW   )r   r   Ú
ValueErrorr   Údictr   r   r   ÚlistÚgetr   Úmodel_validater   )r>   r   r   Úraw_elicitationsrb   rW   s   &&    r   Ú
from_errorÚ&UrlElicitationRequiredError.from_errorn   s°   € ð �:‰:Ô1Ô1ÜÐ3Ô4LÐ3MÈVÐTY×T^ÑT^ÐS_Ð`ÓaÐaä”Dœœc˜•N E§J¡J×$4Ð$4°"Ó5ˆÜ¤¤T¬#¬s¨(¥^Õ 4°d·h±h¸~ÈrÓ6RÓSÐÙJZÓ[ÑJZÀQÔ.×=Ò=¸aÖ@ÑJZˆÐ[Ù�<§¡Ó/Ð/ùò \s   Â*Crf   r/   )r   r   r   r   r   r'   rI   rW   rJ   rp   r   rK   rL   s   @r   rU   rU   J   s:   ø† ñ÷"
ò 
ð ô"ó ð"ð ô0ó ö0r   rU   N)Ú
__future__r   Útypingr   r   Ú	mcp_typesr   r   r   r	   r
   ÚUserWarningr   Ú	Exceptionr   rN   rU   r   r   r   Ú<module>rw      sB   ðÝ "ç ç pÕ pô˜Kô ô!ˆyô !ôH˜ô ô&-0 (ö -0r   