+
    ÆÚjÐ  ã                   óª   € R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t
 ^ RIHt ]! ]4      tRR R lltR R ltR	 R
 ltRRRRRR/R R lltR# )z!Claude app integration utilities.N©ÚPath)ÚAny)Ú
get_loggerc                ó0   € V ^8„  d   QhR\         R\         /# )é   ÚpackageÚreturn©Ústr)Úformats   "Ú…/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/mcp/cli/claude.pyÚ__annotate__r      s   € ÷ #ñ #œSð #¬Sñ #ó    c                ó¾   €  \         P                  P                  R4      pRT9   g   RT9   d   T # T  RT 2#   \         P                  P                   d    T u # i ; i)u÷  Requirement string pinning spawned environments to the running SDK version.

`uv run --with mcp` resolves the requirement in a fresh environment, where
an unpinned `mcp` means the latest stable release â€” not necessarily the
version the user installed (pre-releases in particular are never selected
without an explicit pin). Source builds carry dev/local version segments
that are not published to PyPI, so they fall back to the unpinned form,
as does a missing distribution (no metadata to pin from).
Úmcpz.devÚ+z==)Ú	importlibÚmetadataÚversionÚPackageNotFoundError)r   r   s   & r   Úmcp_requirementr      se   € ðÜ×$Ñ$×,Ñ,¨UÓ3ˆð �Ô˜C 7œNØˆØˆY�b˜˜	Ð"Ð"øô	 ×Ñ×2Ñ2ô ØŠðús   ‚8 ¸!AÁAc                ó2   € V ^8„  d   QhR\         R,          /# )r   r	   Nr   )r   s   "r   r   r   #   s   € ÷ ñ ¤ t¥ñ r   c                 óê  € \         P                  R8X  d#   \        \        P                  ! 4       RRR4      p M£\         P                  R8X  d#   \        \        P                  ! 4       RRR4      p Ml\         P                  P	                  R4      '       dF   \        \
        P                  P                  R	\        P                  ! 4       R
,          4      R4      p MR# V P                  4       '       d   V # R# )z2Get the Claude config directory based on platform.Úwin32ÚAppDataÚRoamingÚClaudeÚdarwinÚLibraryzApplication SupportÚlinuxÚXDG_CONFIG_HOMEz.configN)	ÚsysÚplatformr   ÚhomeÚ
startswithÚosÚenvironÚgetÚexists)Úpaths    r   Úget_claude_config_pathr+   #   sš   € ä
‡|�|�wÔÜ”D—I’I“K ¨I°xÓ@‰Ü	�‰˜Ô	!Ü”D—I’I“K Ð,AÀ8ÓL‰Ü	�‰×	 Ñ	  ×	)Ò	)Ü”B—J‘J—N‘NÐ#4´d·i²i³kÀIÕ6MÓNÐPXÓY‰áà‡{�{‡}‚}ØˆÙr   c                ó$   € V ^8„  d   QhR\         /# )r   r	   r
   )r   s   "r   r   r   3   s   € ÷ ñ ”Sñ r   c                 óp   € \         P                  ! R4      p V '       g   \        P                  R4       R# V # )z'Get the full path to the uv executable.Úuvzeuv executable not found in PATH, falling back to 'uv'. Please ensure uv is installed and in your PATH)ÚshutilÚwhichÚloggerÚerror)Úuv_paths    r   Úget_uv_pathr4   3   s,   € ä�lŠl˜4Ó €GßÜ�‰Øsô	
ñ Ø€Nr   Úwith_editableÚwith_packagesÚenv_varsc                óÂ   € V ^8„  d   QhR\         R\         R\        R,          R\        \         ,          R,          R\        \         \         3,          R,          R\        /# )r   Ú	file_specÚserver_namer5   Nr6   r7   r	   )r   r   ÚlistÚdictÚbool)r   s   "r   r   r   >   sf   € ÷ lñ lÜðläðlô ˜$•;ð	lô
 œ•9˜tÕ#ðlô ”3œ�8�n˜tÕ#ðlô 
ñlr   c               ó”  € \        4       p\        4       pV'       g   \        R4      hVR,          pVP                  4       '       g    VP	                  RRR7        \        P                  ! VP                  4       4      pR
V9  d   / VR
&   WR
,          9   d>   RVR
,          V,          9   d)   VR
,          V,          R,          p	V'       d   / V	CVCpMT	pRR.p
\        R4      0pV'       d   VP                  R V 4       4       \        V4       F  pV
P                  RV.4       K  	  V'       d   V
P                  R\        V4      .4       \!        V 4      ^8„  ;'       d    V ^,          R8H  pRV'       d
   V R,          MT 9   d4   V P#                  R^4      w  rï\%        V4      P'                  4        RV 2p M"\        \%        V 4      P'                  4       4      p V
P                  RRV .4       RVRV
/pV'       d   VVR&   VVR
,          V&   VP	                  \        P(                  ! V^R7      RR7       \        P+                  RV R2R\        V4      /R7       R#   \
         d'    \        P                  RR\        T4      /R7        R	# i ; i  \
         d'    \        P                  RR\        T4      /R7        R	# i ; i)ap  Add or update an MCP server in Claude's configuration.

Args:
    file_spec: Path to the server file, optionally with :object suffix
    server_name: Name for the server in Claude's config
    with_editable: Optional directory to install in editable mode
    with_packages: Optional list of additional packages to install
    env_vars: Optional dictionary of environment variables. These are merged with
        any existing variables, with new values taking precedence.

Raises:
    RuntimeError: If Claude Desktop's config directory is not found, indicating
        Claude Desktop may not be installed or properly set up.
z�Claude Desktop config directory not found. Please ensure Claude Desktop is installed and has been run at least once to initialize its config.zclaude_desktop_config.jsonz{}zutf-8)Úencodingz#Failed to create Claude config fileÚconfig_file)ÚextraFÚ
mcpServersÚenvÚrunz--frozenzmcp[cli]c              3   ó8   "  € T F  q'       g   K  Vx € K  	  R # 5i)N© )Ú.0Úpkgs   & r   Ú	<genexpr>Ú'update_claude_config.<locals>.<genexpr>}   s   é € Ð@©= C»CŸCšC«=ùs   ‚	�
z--withz--with-editableÚ::r   NNr   ÚcommandÚargs)ÚindentzAdded server 'z' to Claude configTzFailed to update Claude config)r+   r4   ÚRuntimeErrorr)   Ú
write_textÚ	Exceptionr1   Ú	exceptionr   ÚjsonÚloadsÚ
read_bytesr   ÚupdateÚsortedÚextendÚlenÚrsplitr   ÚresolveÚdumpsÚinfo)r9   r:   r5   r6   r7   Ú
config_dirr3   r@   ÚconfigÚexisting_envrM   ÚpackagesrH   Úhas_windows_driveÚ	file_pathÚserver_objectÚserver_configs   &&$$$            r   Úupdate_claude_configrf   >   sÈ  € ô, (Ó)€JÜ‹m€GßÜðUó
ð 	
ð
 Ð;Õ;€KØ×Ñ×Òð		Ø×"Ñ" 4°'Ð"Ô:ðAÜ—’˜K×2Ñ2Ó4Ó5ˆØ˜vÔ%Ø#%ˆF�<Ñ ð  Õ.Ô.°5¸FÀ<Õ<PÐQ\Õ<]Ô3]Ø! ,Õ/°Õ<¸UÕCˆLßà7˜lÐ7¨hÐ7‘à'�ð �zÐ"ˆô $ JÓ/Ð0ˆßØ�O‰OÑ@©=Ó@Ô@ô ˜(Ö#ˆCØ�K‰K˜ 3˜Ö(ñ $÷ Ø�K‰KÐ*¬C°Ó,>Ð?Ô@ô
   	›N¨QÑ.×FÐF°9¸Qµ<À3Ñ3FÐð ×$5�9˜R–=¸9ÔEØ'0×'7Ñ'7¸¸QÓ'?Ñ$ˆIÜ 	›?×2Ñ2Ó4Ð5°Q°}°oÐF‰IäœD ›O×3Ñ3Ó5Ó6ˆIð 	�‰�U˜E 9Ð-Ô.à)2°G¸VÀTÐ(Jˆ÷ Ø#+ˆM˜%Ñ à,9ˆˆ|Õ˜[Ñ)à×ÑœtŸzšz¨&¸Ô;ÀgÐÔNÜ�‰Ø˜[˜MÐ);Ð<Ø ¤# kÓ"2Ð3ð 	ô 	
ñ øôE ô 	Ü×ÑØ5à!¤3 {Ó#3ðð ô ò ð	ûôF ô Ü×ÑØ,àœs ;Ó/ðð 	ô 	
ò ðúsF   ÁI" ÁA0J ÃA%J Ä30J Å$J Å:BJ È A J É"-JÊJÊ-KËK)r   )Ú__doc__Úimportlib.metadatar   rS   r&   r/   r"   Úpathlibr   Útypingr   Ú&mcp.server.mcpserver.utilities.loggingr   Ú__name__r1   r   r+   r4   rf   rF   r   r   Ú<module>rm      sf   ðÙ 'ã Û Û 	Û Û 
Ý Ý å =á	�HÓ	€÷#õ&õ ðlð "&ð	lð
 '+ðlð '+÷lñ lr   