Commit 44d6a73
LittleCoinCoin
fix(cli): resolve argparse naming conflict
The MCP configure command had a critical argparse naming conflict where
the --command flag (for server command) was overwriting the top-level
'command' dest (which should be 'mcp'). This caused the CLI routing
logic to fail because args.command would be 'python' instead of 'mcp'.
Changes:
- Added dest='server_command' to --command argument in configure parser
- Updated handler call to use args.server_command instead of args.command
- Fixed test_configure_argument_parsing_basic to handle SystemExit properly
- Fixed test_configure_argument_parsing_with_options CLI arguments
This resolves the issue where 'hatch mcp configure' commands would
display help instead of executing the configuration.1 parent 1774610 commit 44d6a73
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | | - | |
| 1112 | + | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| |||
1785 | 1785 | | |
1786 | 1786 | | |
1787 | 1787 | | |
1788 | | - | |
| 1788 | + | |
1789 | 1789 | | |
1790 | 1790 | | |
1791 | 1791 | | |
| |||
0 commit comments