fix: use parse_known_args to allow importing mcp_server during pytest collection
This commit is contained in:
@@ -44,7 +44,8 @@ def _parse_args():
|
||||
metavar="PATH",
|
||||
help="Path to the palace directory (overrides config file and env var)",
|
||||
)
|
||||
return parser.parse_args()
|
||||
args, _ = parser.parse_known_args()
|
||||
return args
|
||||
|
||||
|
||||
_args = _parse_args()
|
||||
|
||||
Reference in New Issue
Block a user