Skip to content

Commit 9ca52f2

Browse files
authored
[ez] Move deploy command to cloud namespace (#431)
### TL;DR Added `cloud deploy` command as an alias for the existing `deploy` command.
1 parent 078b11a commit 9ca52f2

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

src/mcp_agent/cli/cloud/main.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,7 @@ def invoke(self, ctx):
110110
# Deployment command
111111
app.command(
112112
name="deploy",
113-
help="""
114-
Deploy an MCP agent using the specified configuration.
115-
116-
An MCP App is deployed from bundling the code at the specified config directory.\n\n
117-
118-
This directory must contain an 'mcp_agent.config.yaml' at its root.\n\n
119-
120-
If secrets are required (i.e. `no_secrets` is not set), a secrets file named 'mcp_agent.secrets.yaml' must also be present.\n
121-
The secrets file is processed to replace secret tags with secret handles before deployment and that transformed
122-
file is included in the deployment bundle in place of the original secrets file.
123-
""".strip(),
113+
help="Deploy an MCP agent (alias for 'cloud deploy')"
124114
)(deploy_config)
125115

126116

@@ -214,6 +204,22 @@ def invoke(self, ctx):
214204
help="Retrieve and stream logs from deployed MCP apps",
215205
)(tail_logs)
216206

207+
# Add deploy command to cloud namespace
208+
app_cmd_cloud.command(
209+
name="deploy",
210+
help="""
211+
Deploy an MCP agent using the specified configuration.
212+
213+
An MCP App is deployed from bundling the code at the specified config directory.\n\n
214+
215+
This directory must contain an 'mcp_agent.config.yaml' at its root.\n\n
216+
217+
If secrets are required (i.e. `no_secrets` is not set), a secrets file named 'mcp_agent.secrets.yaml' must also be present.\n
218+
The secrets file is processed to replace secret tags with secret handles before deployment and that transformed
219+
file is included in the deployment bundle in place of the original secrets file.
220+
""".strip(),
221+
)(deploy_config)
222+
217223
# Add sub-typers to cloud
218224
app_cmd_cloud.add_typer(app_cmd_cloud_auth, name="auth", help="Authentication commands")
219225
app_cmd_cloud.add_typer(

0 commit comments

Comments
 (0)