feat(mcp): implement double-insurance global-only MCP and testing rules installation

- Install MCP configs and Artemis mobile testing rules strictly into user home directories (~), avoiding project workspace pollution
- Add double-insurance rules synchronization injecting into both primary global instruction files (e.g. ~/.gemini/GEMINI.md, ~/.claude/CLAUDE.md, ~/.cursorrules, ~/.codeium/windsurf/memories/global_rules.md) and modular rules/ directories
- Support JSONC parsing (comments and trailing commas) and automatic .bak backups when merging existing IDE configuration files
- Update README and Quick Start documentation to clarify automatic global MCP & rule mounting across all major AI IDEs
This commit is contained in:
somew1nd committed 2026-08-18 18:40:38 -07:00
1 parent 9e5aee85c8
commit ec5010220b
8 files changed
+305 -35

No files matched your search

+3 -3
View File
@@ -155,17 +155,17 @@ fi
# 7. Optionally configure MCP for detected AI IDEs
echo ""
echo -e " ${CYAN}🔌 Would you like to configure ARTEMIS MCP for your AI IDEs?${NC}"
echo -e " ${CYAN}🔌 Would you like to configure ARTEMIS MCP & testing rules for your AI IDEs?${NC}"
echo -e " (Supported: Antigravity, Cursor, Claude Code/Desktop, OpenClaw, Windsurf)"
if [ -t 0 ]; then
read -r -p " Install MCP configuration now? [Y/n]: " INSTALL_MCP
read -r -p " Install MCP configuration & rules now? [Y/n]: " INSTALL_MCP
INSTALL_MCP=${INSTALL_MCP:-Y}
else
INSTALL_MCP="n"
fi
if [[ "${INSTALL_MCP}" =~ ^[Yy]$ ]]; then
echo -e " ${GREEN}✔ Installing MCP server configuration...${NC}"
echo -e " ${GREEN}✔ Installing MCP server configuration & testing rules...${NC}"
uv run artemis mcp --install all >/dev/null 2>&1 || true
echo -e " ${CYAN}💡 Tip: You can update or re-install anytime with: ${BOLD}uv run artemis mcp --install all${NC}"
else