Skip to content

Commit e9d5ddd

Browse files
Allow force running of wizard
1 parent 0170529 commit e9d5ddd

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "open-edison"
3-
version = "0.1.57"
3+
version = "0.1.58"
44
description = "Open-source MCP security, aggregation, and monitoring. Single-user, self-hosted MCP proxy."
55
readme = "README.md"
66
authors = [

src/cli.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ def _parse_args(argv: list[str] | None = None) -> argparse.Namespace:
4747
action="store_true",
4848
help="(For the setup wizard) Skip OAuth for remote servers (they will be omitted from import)",
4949
)
50+
parser.add_argument(
51+
"--wizard-force",
52+
action="store_true",
53+
help="(For the setup wizard) Force running the setup wizard even if it has already been run",
54+
)
5055
# Website runs from packaged assets by default; no extra website flags
5156

5257
# Subcommands (extensible)
@@ -132,7 +137,7 @@ def main(argv: list[str] | None = None) -> NoReturn: # noqa: C901
132137
raise SystemExit(result_code)
133138

134139
# Run import tui if necessary
135-
run_import_tui(args)
140+
run_import_tui(args, force=args.wizard_force)
136141

137142
try:
138143
asyncio.run(_run_server(args))

src/setup_tui/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,14 @@ def error(self, msg: object, *args: object, **kwargs: object) -> None:
242242

243243

244244
# Triggered from cli.py
245-
def run_import_tui(args: argparse.Namespace) -> None:
245+
def run_import_tui(args: argparse.Namespace, force: bool = False) -> None:
246246
"""Run the import TUI, if necessary."""
247247
# Find config dir, check if ".setup_tui_run" exists
248248
config_dir = get_config_dir()
249249
config_dir.mkdir(parents=True, exist_ok=True)
250250

251251
setup_tui_run_file = config_dir / ".setup_tui_run"
252-
if not setup_tui_run_file.exists():
252+
if not setup_tui_run_file.exists() or force:
253253
run(dry_run=args.wizard_dry_run, skip_oauth=args.wizard_skip_oauth)
254254

255255
setup_tui_run_file.touch()

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)