diff --git a/.vscode/settings.json b/.vscode/settings.json index 1f0f83df1..5a1d06956 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,5 +13,8 @@ "mcp-agent.secrets.yaml", "mcp_agent.secrets.yaml" ] + }, + "files.watcherExclude": { + "**/target": true } -} +} \ No newline at end of file diff --git a/src/mcp_agent/cli/commands/install.py b/src/mcp_agent/cli/commands/install.py index b8596f250..97e3785b5 100644 --- a/src/mcp_agent/cli/commands/install.py +++ b/src/mcp_agent/cli/commands/install.py @@ -49,11 +49,6 @@ print_success, ) -app = typer.Typer( - help="Install MCP server to client applications", no_args_is_help=False -) - - def _get_claude_desktop_config_path() -> Path: """Get the Claude Desktop config path based on platform.""" if platform.system() == "Darwin": # macOS @@ -266,7 +261,6 @@ def _build_server_config( } -@app.callback(invoke_without_command=True) def install( server_identifier: str = typer.Argument(..., help="Server URL to install"), client: str = typer.Option( diff --git a/src/mcp_agent/cli/main.py b/src/mcp_agent/cli/main.py index 430f0baad..959badfe4 100644 --- a/src/mcp_agent/cli/main.py +++ b/src/mcp_agent/cli/main.py @@ -183,8 +183,8 @@ def main( )(login) # Register install command as top-level -app.add_typer( - install_cmd.app, name="install", help="Install MCP server to client applications" +app.command(name="install", help="Install MCP server to client applications")( + install_cmd.install )