Skip to content

Commit 2a1ea1a

Browse files
committed
Fix regression in CLI ("cloud cloud")
1 parent 662e6fb commit 2a1ea1a

File tree

1 file changed

+5
-41
lines changed

1 file changed

+5
-41
lines changed

src/mcp_agent/cli/cloud/main.py

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def invoke(self, ctx):
128128
no_args_is_help=True,
129129
cls=HelpfulTyperGroup,
130130
)
131+
app_cmd_app.command(name="list")(list_servers)
131132
app_cmd_app.command(name="delete")(delete_app)
132133
app_cmd_app.command(name="status")(get_app_status)
133134
app_cmd_app.command(name="workflows")(list_app_workflows)
@@ -164,15 +165,6 @@ def invoke(self, ctx):
164165
)(list_workflows)
165166
app.add_typer(app_cmd_servers, name="servers", help="Manage MCP Servers")
166167

167-
# Alias for servers - apps should behave identically
168-
app.add_typer(app_cmd_servers, name="apps", help="Manage MCP Apps (alias for servers)")
169-
170-
# Sub-typer for `mcp-agent cloud` commands
171-
app_cmd_cloud = typer.Typer(
172-
help="Cloud operations and management",
173-
no_args_is_help=True,
174-
cls=HelpfulTyperGroup,
175-
)
176168
# Sub-typer for `mcp-agent cloud auth` commands
177169
app_cmd_cloud_auth = typer.Typer(
178170
help="Cloud authentication commands",
@@ -203,38 +195,10 @@ def invoke(self, ctx):
203195
help="Retrieve and stream logs from deployed MCP apps",
204196
)(tail_logs)
205197

206-
# Add deploy command to cloud namespace
207-
app_cmd_cloud.command(
208-
name="deploy",
209-
help="""
210-
Deploy an MCP agent using the specified configuration.
211-
212-
An MCP App is deployed from bundling the code at the specified config directory.\n\n
213-
214-
This directory must contain an 'mcp_agent.config.yaml' at its root.\n\n
215-
216-
If secrets are required (i.e. `no_secrets` is not set), a secrets file named 'mcp_agent.secrets.yaml' must also be present.\n
217-
The secrets file is processed to replace secret tags with secret handles before deployment and that transformed
218-
file is included in the deployment bundle in place of the original secrets file.
219-
""".strip(),
220-
)(deploy_config)
221-
222-
# Add sub-typers to cloud
223-
app_cmd_cloud.add_typer(app_cmd_cloud_auth, name="auth", help="Authentication commands")
224-
app_cmd_cloud.add_typer(
225-
app_cmd_cloud_logger, name="logger", help="Logging and observability"
226-
)
227-
app_cmd_cloud.add_typer(
228-
app_cmd_workflows, name="workflows", help="Workflow management commands"
229-
)
230-
app_cmd_cloud.add_typer(
231-
app_cmd_servers, name="servers", help="Server management commands"
232-
)
233-
app_cmd_cloud.add_typer(
234-
app_cmd_servers, name="apps", help="App management commands (alias for servers)"
235-
)
236-
# Register cloud commands
237-
app.add_typer(app_cmd_cloud, name="cloud", help="Cloud operations and management")
198+
# Add sub-typers directly to app (which is the cloud namespace when mounted)
199+
app.add_typer(app_cmd_cloud_auth, name="auth", help="Authentication commands")
200+
app.add_typer(app_cmd_cloud_logger, name="logger", help="Logging and observability")
201+
app.add_typer(app_cmd_workflows, name="workflows", help="Workflow management commands")
238202
# Top-level auth commands that map to cloud auth commands
239203
app.command(
240204
name="login",

0 commit comments

Comments
 (0)