
    ,j                    >    d Z ddlmZ ddlZddlmZ ddlmZ dd
ZdS )z``hermes mcp`` subcommand parser.

Extracted from ``hermes_cli/main.py:main()`` (god-file Phase 2 follow-up).
Handler injected to avoid importing ``main``.
    )annotationsN)Callable)add_accept_hooks_flagcmd_mcpr   returnNonec                   |                      ddd          }|                    d          }|                     dd	          }|                    d
ddd           t          |           |                     dd	          }|                    dd	           |                    dd	           |                    ddd           |                    dt          j        g d           |                    dddgd            |                    d!d"	           |                    d#d$g d%           |                     d&d'gd()          }|                    dd*	           |                     d+d,gd-)           |                     d.d/	          }|                    dd0	           |                     d1d2gd3)          }|                    dd4	           |                     d5d6	          }	|	                    dd7	           |                     d8d9	           |                     d:d;	           |                     d<d=	          }
|
                    d>d?	           t          |           |                    |@           dAS )Bz0Attach the ``mcp`` subcommand to ``subparsers``.mcpz2Manage MCP servers and run Hermes as an MCP serverzManage MCP server connections and run Hermes as an MCP server.

MCP servers provide additional tools via the Model Context Protocol.
Use 'hermes mcp add' to connect to a new server, or
'hermes mcp serve' to expose Hermes conversations over MCP.)helpdescription
mcp_action)destservezBRun Hermes as an MCP server (expose conversations to other agents))r   z-vz	--verbose
store_truez Enable verbose logging on stderr)actionr   addz+Add an MCP server (discovery-first install)namez Server name (used as config key)z--urlzHTTP/SSE endpoint URLz	--commandmcp_commandzStdio command (e.g. npx))r   r   z--argsz4Arguments for stdio command; must be the last option)nargsdefaultr   z--authoauthheaderzAuth method)choicesr   z--presetzKnown MCP preset namez--env*z3Environment variables for stdio servers (KEY=VALUE)removermzRemove an MCP server)aliasesr   zServer name to removelistlszList configured MCP serverstestzTest MCP server connectionzServer name to test	configureconfigzToggle tool selectionzServer name to configureloginz5Force re-authentication for an OAuth-based MCP serverzServer name to re-authenticatepickerz>Interactive catalog picker (also the default for `hermes mcp`)catalogz7List Nous-approved MCPs available for one-click installinstallz=Install a catalog MCP by name (e.g. `hermes mcp install n8n`)
identifierz)Catalog entry name (or `official/<name>`))funcN)
add_parseradd_subparsersadd_argumentr   argparse	REMAINDERset_defaults)
subparsersr   
mcp_parsermcp_submcp_serve_p	mcp_add_pmcp_rm_p
mcp_test_p	mcp_cfg_pmcp_login_pmcp_install_ps              ?/home/ubuntu/.hermes/hermes-agent/hermes_cli/subcommands/mcp.pybuild_mcp_parserr:      so   &&AJ	 ' 	 	J ''\'::G$$Q %  K /	     +&&&""A #  I 6(JKKK7)@AAA -.H      C	     8gx-@}UUU:,CDDDB	     !!(TFAW!XXH&'>???vv4QRRR##F1M#NNJF)>???""hZ.E #  I 6(BCCC$$D %  K V*JKKK M     F     &&L '  M 8    
 *%%%)))))    )r   r   r   r   )	__doc__
__future__r   r,   typingr   hermes_cli.subcommands._sharedr   r:    r;   r9   <module>rA      st     # " " " " "        @ @ @ @ @ @]* ]* ]* ]* ]* ]*r;   