File tree Expand file tree Collapse file tree 9 files changed +10
-8
lines changed Expand file tree Collapse file tree 9 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1717
1818from mcp_agent .cli .exceptions import CLIError
1919from mcp_agent .cli .auth import load_credentials , UserCredentials
20- from mcp_agent .cli .cloud .commands .servers . utils import setup_authenticated_client
20+ from mcp_agent .cli .cloud .commands .utils import setup_authenticated_client
2121from mcp_agent .cli .core .api_client import UnauthenticatedError
2222from mcp_agent .cli .core .utils import parse_app_identifier , resolve_server_url
2323from mcp_agent .cli .utils .ux import print_error
Original file line number Diff line number Diff line change 55from mcp_agent .cli .core .utils import run_async
66from mcp_agent .cli .exceptions import CLIError
77from mcp_agent .cli .mcp_app .api_client import MCPApp
8- from ..utils import (
8+ from ... utils import (
99 setup_authenticated_client ,
1010 resolve_server ,
1111 handle_server_api_errors ,
Original file line number Diff line number Diff line change 77
88from mcp_agent .cli .exceptions import CLIError
99from mcp_agent .cli .mcp_app .api_client import MCPApp , MCPAppConfiguration
10- from ..utils import (
10+ from ... utils import (
1111 setup_authenticated_client ,
1212 validate_output_format ,
1313 resolve_server ,
Original file line number Diff line number Diff line change 88
99from mcp_agent .cli .core .utils import run_async
1010from mcp_agent .cli .mcp_app .api_client import MCPApp , MCPAppConfiguration
11- from ..utils import (
11+ from ... utils import (
1212 setup_authenticated_client ,
1313 validate_output_format ,
1414 handle_server_api_errors ,
Original file line number Diff line number Diff line change 1- """Shared utilities for server commands."""
1+ """Shared utilities for cloud commands."""
22
33from functools import wraps
44from typing import Union
Original file line number Diff line number Diff line change 1010from mcp_agent .cli .utils .ux import console
1111from mcp_agent .config import MCPServerSettings , Settings , LoggerSettings
1212from mcp_agent .mcp .gen_client import gen_client
13- from ...servers . utils import setup_authenticated_client , resolve_server , handle_server_api_errors
13+ from ...utils import setup_authenticated_client , resolve_server , handle_server_api_errors
1414
1515
1616async def _cancel_workflow_async (
Original file line number Diff line number Diff line change 1313from mcp_agent .cli .utils .ux import console
1414from mcp_agent .config import MCPServerSettings , Settings , LoggerSettings
1515from mcp_agent .mcp .gen_client import gen_client
16- from ...servers . utils import setup_authenticated_client , resolve_server , handle_server_api_errors
16+ from ...utils import setup_authenticated_client , resolve_server , handle_server_api_errors
1717
1818
1919async def _describe_workflow_async (
Original file line number Diff line number Diff line change 1111from mcp_agent .cli .utils .ux import console
1212from mcp_agent .config import MCPServerSettings , Settings , LoggerSettings
1313from mcp_agent .mcp .gen_client import gen_client
14- from ...servers . utils import setup_authenticated_client , resolve_server , handle_server_api_errors
14+ from ...utils import setup_authenticated_client , resolve_server , handle_server_api_errors
1515
1616
1717async def _signal_workflow_async (
Original file line number Diff line number Diff line change 3030from mcp_agent .cli .cloud .commands .workflows import (
3131 describe_workflow ,
3232 resume_workflow ,
33+ suspend_workflow ,
3334 cancel_workflow ,
3435)
3536from mcp_agent .cli .cloud .commands .servers import (
@@ -150,6 +151,7 @@ def invoke(self, ctx):
150151app_cmd_workflows .command (name = "describe" )(describe_workflow )
151152app_cmd_workflows .command (name = "status" )(describe_workflow ) # alias for describe
152153app_cmd_workflows .command (name = "resume" )(resume_workflow )
154+ app_cmd_workflows .command (name = "suspend" )(suspend_workflow )
153155app_cmd_workflows .command (name = "cancel" )(cancel_workflow )
154156
155157# Sub-typer for `mcp-agent servers` commands
You can’t perform that action at this time.
0 commit comments