Skip to content

Commit 47ecfda

Browse files
committed
Add --webui flag
1 parent 89b209b commit 47ecfda

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ For the new version, you don't need to install the `stata-mcp` package again, yo
5858
```bash
5959
uvx stata-mcp --usable
6060
uvx stata-mcp --version
61-
uvx stata-mcp-webui # launch the configuration web UI
61+
uvx stata-mcp --webui # launch the configuration web UI
6262
```
6363

6464
If you want to use it locally, you can install it via pip or download the source code.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dependencies = [
1414

1515
[project.scripts]
1616
stata-mcp = "stata_mcp:main"
17-
stata-mcp-webui = "stata_mcp.webui:main"
1817

1918
[build-system]
2019
requires = ["hatchling"]

src/stata_mcp/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,11 @@ def main() -> None:
707707
"--install",
708708
action="store_true",
709709
help="install Stata-MCP to Claude Desktop")
710+
parser.add_argument(
711+
"--webui",
712+
action="store_true",
713+
help="launch the configuration web UI",
714+
)
710715

711716
# mcp.run
712717
parser.add_argument(
@@ -722,6 +727,9 @@ def main() -> None:
722727
sys.exit(usable())
723728
elif args.install:
724729
Installer(sys_os=sys.platform).install()
730+
elif args.webui:
731+
from .webui import main as webui_main
732+
webui_main()
725733
else:
726734
print("Starting Stata-MCP...")
727735

src/stata_mcp/core/stata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from .StataDo.do import StataDo
21
from .StataController.controller import StataController
2+
from .StataDo.do import StataDo
33
from .StataFinder.finder import StataFinder
44

55
__all__ = [

0 commit comments

Comments
 (0)