#!/bin/bash
# XRAY MCP Server Uninstallation Script
# Usage: bash uninstall.sh
set -e
echo "ποΈ Uninstalling XRAY MCP Server..."
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Check if uv is installed
if ! command -v uv &> /dev/null; then
echo -e "${RED}β${NC} uv is not installed. Uninstallation requires uv."
echo "Please install uv (https://github.com/astral-sh/uv) and try again."
exit 1
fi
# Uninstall the xray tool
echo -e "${YELLOW}π§${NC} Uninstalling xray tool..."
if uv tool uninstall xray; then
echo -e "${GREEN}β${NC} xray tool uninstalled successfully."
else
echo -e "${YELLOW}β ${NC} Could not uninstall xray tool. It might not be installed."
fi
# Remove the installation directory
INSTALL_DIR="$HOME/.xray"
if [ -d "$INSTALL_DIR" ]; then
echo -e "${YELLOW}ποΈ${NC} Removing installation directory: $INSTALL_DIR"
rm -rf "$INSTALL_DIR"
echo -e "${GREEN}β${NC} Installation directory removed."
fi
# Verify uninstallation
if ! command -v xray-mcp &> /dev/null; then
echo -e "${GREEN}β Uninstallation complete!${NC}"
else
echo -e "${RED}β Uninstallation failed.${NC} xray-mcp is still on the PATH."
echo "This might be due to your shell caching the command. Please restart your shell."
fi
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/srijanshukla18/xray'
If you have feedback or need assistance with the MCP directory API, please join our Discord server