Skip to main content
Glama

XRAY MCP

uninstall.shβ€’1.33 kB
#!/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