From 0050d336daa9b81cd6b8713ef42900c2013121c4 Mon Sep 17 00:00:00 2001 From: Dbisina Date: Mon, 26 Oct 2026 20:02:28 +0100 Subject: [PATCH] fix(start.sh): run MCP install via python -m artemis On some uv versions (reported with 0.5.9), 'uv run artemis' resolves 'artemis' to the local package directory and runs it as a script. That puts the directory on sys.path and artemis/platform shadows the stdlib platform module, so MCP installation fails with an ImportError. Use 'uv run python -m artemis', matching the script's existing UI launch command, for the install and the retry/skip hints. Fixes #106 --- start.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/start.sh b/start.sh index e288f329d..f9edc8795 100755 --- a/start.sh +++ b/start.sh @@ -380,14 +380,14 @@ fi if [[ "${INSTALL_MCP}" =~ ^[Yy]$ ]]; then echo -e " ${CYAN}Installing MCP server configuration & testing rules...${NC}" - if uv run artemis mcp --install all; then + if uv run python -m artemis mcp --install all; then echo -e " ${GREEN}✔ MCP configuration and rules installed successfully.${NC}" - echo -e " ${CYAN}💡 Tip: You can update or re-install anytime with: ${BOLD}uv run artemis mcp --install all${NC}" + echo -e " ${CYAN}💡 Tip: You can update or re-install anytime with: ${BOLD}uv run python -m artemis mcp --install all${NC}" else - echo -e " ${YELLOW}⚠ MCP installation failed. Review the error above and retry with: ${BOLD}uv run artemis mcp --install all${NC}" + echo -e " ${YELLOW}⚠ MCP installation failed. Review the error above and retry with: ${BOLD}uv run python -m artemis mcp --install all${NC}" fi else - echo -e " ${YELLOW}⏭️ Skipped. You can install MCP anytime later with: ${BOLD}uv run artemis mcp --install all${NC}" + echo -e " ${YELLOW}⏭️ Skipped. You can install MCP anytime later with: ${BOLD}uv run python -m artemis mcp --install all${NC}" fi echo ""