Skip to content

Commit 2a07045

Browse files
committed
refactor utils and add suspend
1 parent 792d80d commit 2a07045

File tree

9 files changed

+10
-8
lines changed

9 files changed

+10
-8
lines changed

src/mcp_agent/cli/cloud/commands/logger/tail/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from mcp_agent.cli.exceptions import CLIError
1919
from 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
2121
from mcp_agent.cli.core.api_client import UnauthenticatedError
2222
from mcp_agent.cli.core.utils import parse_app_identifier, resolve_server_url
2323
from mcp_agent.cli.utils.ux import print_error

src/mcp_agent/cli/cloud/commands/servers/delete/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from mcp_agent.cli.core.utils import run_async
66
from mcp_agent.cli.exceptions import CLIError
77
from 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,

src/mcp_agent/cli/cloud/commands/servers/describe/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from mcp_agent.cli.exceptions import CLIError
99
from 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,

src/mcp_agent/cli/cloud/commands/servers/list/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from mcp_agent.cli.core.utils import run_async
1010
from 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,

src/mcp_agent/cli/cloud/commands/servers/utils.py renamed to src/mcp_agent/cli/cloud/commands/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Shared utilities for server commands."""
1+
"""Shared utilities for cloud commands."""
22

33
from functools import wraps
44
from typing import Union

src/mcp_agent/cli/cloud/commands/workflows/cancel/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from mcp_agent.cli.utils.ux import console
1111
from mcp_agent.config import MCPServerSettings, Settings, LoggerSettings
1212
from 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

1616
async def _cancel_workflow_async(

src/mcp_agent/cli/cloud/commands/workflows/describe/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from mcp_agent.cli.utils.ux import console
1414
from mcp_agent.config import MCPServerSettings, Settings, LoggerSettings
1515
from 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

1919
async def _describe_workflow_async(

src/mcp_agent/cli/cloud/commands/workflows/resume/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from mcp_agent.cli.utils.ux import console
1212
from mcp_agent.config import MCPServerSettings, Settings, LoggerSettings
1313
from 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

1717
async def _signal_workflow_async(

src/mcp_agent/cli/cloud/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from mcp_agent.cli.cloud.commands.workflows import (
3131
describe_workflow,
3232
resume_workflow,
33+
suspend_workflow,
3334
cancel_workflow,
3435
)
3536
from mcp_agent.cli.cloud.commands.servers import (
@@ -150,6 +151,7 @@ def invoke(self, ctx):
150151
app_cmd_workflows.command(name="describe")(describe_workflow)
151152
app_cmd_workflows.command(name="status")(describe_workflow) # alias for describe
152153
app_cmd_workflows.command(name="resume")(resume_workflow)
154+
app_cmd_workflows.command(name="suspend")(suspend_workflow)
153155
app_cmd_workflows.command(name="cancel")(cancel_workflow)
154156

155157
# Sub-typer for `mcp-agent servers` commands

0 commit comments

Comments
 (0)