Skip to content

Commit a1026fa

Browse files
authored
Merge pull request pathintegral-institute#1 from melio/update-list
Update list
2 parents 84d9fcb + 9fbbd61 commit a1026fa

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

pages/install

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,32 +78,32 @@ ensure_pip() {
7878
# Function to install MCPM
7979
install_mcp() {
8080
info "Installing MCPM..."
81-
81+
8282
# Check if we're on macOS
8383
if [[ "$(uname)" == "Darwin" ]]; then
8484
# macOS installation path
8585
if command_exists pipx; then
8686
info "Using pipx to install MCPM (recommended)..."
87-
pipx install mcpm
87+
pipx install "git+https://github.com/melio/mcpmelio.git@melio"
8888
elif command_exists brew; then
8989
info "pipx not found, installing it via Homebrew..."
9090
brew install pipx
9191
info "Now installing MCPM with pipx..."
92-
pipx install mcpm
92+
pipx install git+https://github.com/melio/mcpmelio.git@melio
9393
else
9494
info "Creating a dedicated virtual environment for MCPM..."
9595
MCPM_VENV="$HOME/.mcpm-venv"
9696
python3 -m venv "$MCPM_VENV"
9797
"$MCPM_VENV/bin/pip" install mcpm
98-
98+
9999
# Create symlinks to the user's bin directory
100100
USER_BIN="$HOME/.local/bin"
101101
mkdir -p "$USER_BIN"
102102
ln -sf "$MCPM_VENV/bin/mcpm" "$USER_BIN/mcpm"
103-
103+
104104
info "Installed MCPM in a virtual environment at $MCPM_VENV"
105105
info "Added symlink to $USER_BIN/mcpm"
106-
106+
107107
# Add PATH warning if needed
108108
if ! echo "$PATH" | grep -q "$USER_BIN"; then
109109
echo "Warning: $USER_BIN is not in your PATH"
@@ -115,14 +115,14 @@ install_mcp() {
115115
# Non-macOS installation path - try standard methods
116116
if command_exists pipx; then
117117
info "Using pipx to install MCPM (recommended)..."
118-
pipx install mcpm
118+
pipx install git+https://github.com/melio/mcpmelio.git@melio
119119
else
120120
# Try to use pip in user mode with appropriate flags
121121
info "Installing with pip in user mode..."
122122
python3 -m pip install --user mcpm || {
123123
error "Failed to install MCPM. Please check your permissions and try again."
124124
echo "You may want to try one of these alternatives:"
125-
echo " 1. Install pipx (https://pypa.github.io/pipx/) and run: pipx install mcpm"
125+
echo " 1. Install pipx (https://pypa.github.io/pipx/) and run: pipx install git+https://github.com/melio/mcpmelio.git@melio"
126126
echo " 2. Create a virtual environment and install there:"
127127
echo " python3 -m venv ~/.mcpm-venv"
128128
echo " source ~/.mcpm-venv/bin/activate"
@@ -149,7 +149,7 @@ verify_installation() {
149149
else
150150
PATH_DIRS=$(echo $PATH | tr ':' '\n')
151151
USER_BIN_DIR="$HOME/.local/bin"
152-
152+
153153
if ! echo "$PATH_DIRS" | grep -q "$USER_BIN_DIR"; then
154154
info "MCPM might be installed but not in your PATH."
155155
echo "Try adding this to your shell profile (~/.bashrc, ~/.zshrc, etc.):"

src/mcpm/utils/repository.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
logger = logging.getLogger(__name__)
1717

1818
# Default repository URL - can be overridden with MCPM_REPO_URL environment variable
19-
DEFAULT_REPO_URL = os.environ.get("MCPM_REPO_URL", "https://mcpm.sh/api/servers.json")
19+
DEFAULT_REPO_URL = os.environ.get("MCPM_REPO_URL", "https://aitools.eilat.melioservices.com/mcpm/servers.json")
2020

2121
# Default cache file path
2222
DEFAULT_CACHE_FILE = os.path.join(DEFAULT_CONFIG_DIR, "servers_cache.json")
@@ -97,10 +97,10 @@ def _fetch_servers(self, force_refresh: bool = False) -> Dict[str, Dict[str, Any
9797
with open(file_path, "r", encoding="utf-8") as f:
9898
self.servers_cache = json.load(f)
9999
self.last_refresh = datetime.now()
100-
100+
101101
# Save the updated cache to file
102102
self._save_cache_to_file()
103-
103+
104104
return self.servers_cache
105105
else:
106106
response = requests.get(self.repo_url)

0 commit comments

Comments
 (0)