Skip to content

Commit 56dcca5

Browse files
authored
fix command order for install command (#586)
1 parent 127a2be commit 56dcca5

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
"mcp-agent.secrets.yaml",
1414
"mcp_agent.secrets.yaml"
1515
]
16+
},
17+
"files.watcherExclude": {
18+
"**/target": true
1619
}
17-
}
20+
}

src/mcp_agent/cli/commands/install.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@
4949
print_success,
5050
)
5151

52-
app = typer.Typer(
53-
help="Install MCP server to client applications", no_args_is_help=False
54-
)
55-
56-
5752
def _get_claude_desktop_config_path() -> Path:
5853
"""Get the Claude Desktop config path based on platform."""
5954
if platform.system() == "Darwin": # macOS
@@ -266,7 +261,6 @@ def _build_server_config(
266261
}
267262

268263

269-
@app.callback(invoke_without_command=True)
270264
def install(
271265
server_identifier: str = typer.Argument(..., help="Server URL to install"),
272266
client: str = typer.Option(

src/mcp_agent/cli/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ def main(
183183
)(login)
184184

185185
# Register install command as top-level
186-
app.add_typer(
187-
install_cmd.app, name="install", help="Install MCP server to client applications"
186+
app.command(name="install", help="Install MCP server to client applications")(
187+
install_cmd.install
188188
)
189189

190190

0 commit comments

Comments
 (0)