+
    Q(i                         R t ^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIt^ RI	t	^ RI
Ht ^ RIHt ^ RIHt ^RIHt ]! ]4      tRRR	RR
RRRRRRR/R R lltRRRRR	RR
RRRRRRR/R R lltR# )z<Stdio command generation for FastMCP install using Cyclopts.N)Path)	Annotated)print)
get_logger)UVEnvironment)process_common_argswith_editablewith_packagescopyFpython_versionwith_requirementsprojectc                   V ^8  d   QhR\         R\        R,          R\        \         ,          R,          R\        \        ,          R,          R\        R\        R,          R\         R,          R	\         R,          R
\        /	# )   fileserver_objectNr   r	   r
   r   r   r   return)r   strlistbool)formats   "_/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/fastmcp/cli/install/stdio.py__annotate__r      s     6 6
6:6 :$	6
 9t#6 6 $J6 d{6 D[6 
6    c               
    \        TT;'       g    . R.,           VVVR7      pV'       d   V P                  4        RV 2p	M\        V P                  4       4      p	VP                  RRV	.4      p
\        P
                  ! V
4      pV'       d$   \        P                  ! V4       \        R4       R# \        P                  ! V4       R#   \        \        \        P                  3 d   p\        RT R24        R	p?R
# R	p?ii ; i)ad  Generate the stdio command for running a FastMCP server.

Args:
    file: Path to the server file
    server_object: Optional server object name (for :object suffix)
    with_editable: Optional list of directories to install in editable mode
    with_packages: Optional list of additional packages to install
    copy: If True, copy to clipboard instead of printing to stdout
    python_version: Optional Python version to use
    with_requirements: Optional requirements file to install from
    project: Optional project directory to run within

Returns:
    True if generation was successful, False otherwise
fastmcp)pythondependenciesrequirementsr   editable:runu.   [green]✓ Command copied to clipboard[/green]Tz'[red]Failed to generate stdio command: z[/red]NF)r   resolver   build_commandshlexjoin	pyperclipr
   
rich_printbuiltinsr   OSError
ValueErrorPyperclipException)r   r   r   r	   r
   r   r   r   
env_configserver_specfull_commandcommand_stres   &&$$$$$$     r   install_stdior1      s    4"!'--2)<*"

 !\\^,Am_=Kdlln-K "//E;0OPjj.NN;'GH  NN;'Z!=!=> <QCvFGs.   C C A C !C 0C  D(C==Dserver_namer   c                   V ^8  d   QhR\         R\        \         R,          \        P                  ! RR.RR7      3,          R\        \        \
        ,          R,          \        P                  ! R	R
R7      3,          R\        \        \         ,          R,          \        P                  ! RRR7      3,          R\        \        \        P                  ! RRR7      3,          R\        \         R,          \        P                  ! RRR7      3,          R\        \
        R,          \        P                  ! RRR7      3,          R\        \
        R,          \        P                  ! RRR7      3,          RR/	# )r   r-   r2   Nz--namez-nz;Custom name for the server (used for dependency resolution))namehelpr   z--with-editablezVDirectory with pyproject.toml to install in editable mode (can be used multiple times))r5   r	   z--withz;Additional packages to install (can be used multiple times)r
   z--copyz7Copy command to clipboard instead of printing to stdoutr   z--pythonz(Python version to use (e.g., 3.10, 3.11)r   z--with-requirementsz.Requirements file to install dependencies fromr   z	--projectz2Run the command within the given project directoryr   )r   r   cyclopts	Parameterr   r   r   )r   s   "r   r   r   N   s    N NN d
D!N	
	N T
Ti	
	N" S	DX	
	#N. J	
	/N< d
;	
	=NJ !t!A	
	KNX tE	
	YNf 
gNr   c                  "   T;'       g    . pT;'       g    . p\        WV. R4      G Rj  xL
 w  rrp\        VV	VVVVVVR7      pV'       g   \        P                  ! ^4       R# R#  L=5i)a  Generate the stdio command for running a FastMCP server.

Outputs the shell command that an MCP host would use to start this server
over stdio transport. Useful for manual configuration or debugging.

Args:
    server_spec: Python file to run, optionally with :object suffix
N)r   r   r   r	   r
   r   r   r   )r   r1   sysexit)r-   r2   r   r	   r
   r   r   r   r   r   _namepackages	_env_dictsuccesss   &$$$$$$$      r   stdio_commandr?   N   s     x "''RM!''RM<O-T= 73D) ##+	G  7s   A,A,A*>A,)__doc__r(   r$   r9   pathlibr   typingr   r6   r&   richr   r'   fastmcp.utilities.loggingr   6fastmcp.utilities.mcp_server_config.v1.environments.uvr   sharedr   __name__loggerr1   r?    r   r   <module>rJ      s    B   
     $ 0 P '	H	6 (,	6
 '+6 6 "&6 &*6  6rN 	N  	!N, 	-N: 	;NH 	INV 	WNd 	eN Nr   