Spaces:
Sleeping
Sleeping
File size: 3,950 Bytes
2fcb376 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | #!/bin/bash
# Quick Connect Script - Recovery Compass MCP Hub
# Opens essential connection pages in your default browser
echo "π Recovery Compass - Quick Connect Tool"
echo "========================================"
echo ""
echo "This script will open connection pages for essential services."
echo "Press ENTER to continue or Ctrl+C to cancel..."
read
# Function to open URL
open_url() {
echo "Opening: $2"
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
open "$1"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Linux
xdg-open "$1"
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
# Windows
start "$1"
fi
sleep 2
}
echo ""
echo "π Opening Essential Connection Pages..."
echo ""
# 1. Hugging Face MCP Server (MOST IMPORTANT)
echo "1οΈβ£ Hugging Face MCP Server Login"
open_url "https://huggingface.co/mcp?login" "HF MCP Server"
echo ""
echo "β³ Please authorize the MCP Server in your browser..."
echo " Grant: Profile, List MCP tools, View repo contents"
echo ""
echo "Press ENTER when done..."
read
# 2. Your Recovery Compass Space
echo ""
echo "2οΈβ£ Your Recovery Compass Space"
open_url "https://huggingface.co/spaces/Recovery-Compass-79/README" "Recovery Compass Space"
echo ""
echo "β³ Check that your Space is running..."
echo "Press ENTER to continue..."
read
# 3. Connected Applications Settings
echo ""
echo "3οΈβ£ Connected Applications"
open_url "https://huggingface.co/settings/connected-applications" "Connected Apps Settings"
echo ""
echo "π± Review your connected applications"
echo " Current apps: Claude, DeepSite"
echo " Add more as needed"
echo ""
echo "Press ENTER to continue..."
read
# 4. API Tokens
echo ""
echo "4οΈβ£ API Tokens"
open_url "https://huggingface.co/settings/tokens" "API Tokens"
echo ""
echo "π Verify your access tokens have correct permissions"
echo " Needed: read, write, (optional: inference-api)"
echo ""
echo "Press ENTER to continue..."
read
# 5. Flux Image Generation Space
echo ""
echo "5οΈβ£ Flux Image Generation (evalstate/flux1_schnell)"
open_url "https://huggingface.co/spaces/evalstate/flux1_schnell" "Flux1 Schnell Space"
echo ""
echo "πΌοΈ Explore the Flux image generation tool"
echo " Useful for: Motivation images, visual journaling"
echo ""
echo "Press ENTER to continue..."
read
# 6. Model Search
echo ""
echo "6οΈβ£ Model Search - Mental Health"
open_url "https://huggingface.co/models?search=mental%20health" "Model Search"
echo ""
echo "π Browse mental health related models"
echo " Look for: Chatbots, sentiment analysis, emotion detection"
echo ""
echo "Press ENTER to continue..."
read
# 7. Dataset Search
echo ""
echo "7οΈβ£ Dataset Search - Recovery"
open_url "https://huggingface.co/datasets?search=mental%20health" "Dataset Search"
echo ""
echo "π Browse recovery and mental health datasets"
echo ""
echo "Press ENTER to continue..."
read
# Summary
echo ""
echo "=================================="
echo "β
Connection Setup Complete!"
echo "=================================="
echo ""
echo "π Summary of opened pages:"
echo " β Hugging Face MCP Server"
echo " β Recovery Compass Space"
echo " β Connected Applications"
echo " β API Tokens"
echo " β Flux Image Generation"
echo " β Model Search"
echo " β Dataset Search"
echo ""
echo "π― Next Steps:"
echo "1. Ensure MCP Server is authorized"
echo "2. Test your Space is running"
echo "3. Review connected apps"
echo "4. Explore available models and datasets"
echo "5. Configure mcp-config.json with your choices"
echo ""
echo "π Documentation:"
echo " - SETUP_GUIDE.md - Complete setup instructions"
echo " - RECOMMENDED_APPS.md - Full list of recommended integrations"
echo " - README.md - Space overview and API docs"
echo ""
echo "π Start using your Space:"
echo " https://huggingface.co/spaces/Recovery-Compass-79/README"
echo ""
|