We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dceluis/tasker-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
prepare.shβ’2.35 KiB
#!/bin/bash
set -eou pipefail
# Function to check if a command exists
command_exists () {
command -v "$1" >/dev/null 2>&1
}
# Function to compare version numbers
version_gt() {
test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"
}
missing_deps=0
# Check for Go
if ! (command_exists go); then
missing_deps=1
echo "β Go (supported version between 1.18 - 1.23) is not installed."
echo ""
echo "To install Go, visit the official download page:"
echo "π https://go.dev/dl/"
echo ""
echo "Or install it using a package manager:"
echo ""
echo "πΉ macOS (Homebrew):"
echo " brew install go"
echo ""
echo "πΉ Ubuntu/Debian:"
echo " sudo apt-get -y install golang-go"
echo ""
echo "πΉ Arch Linux:"
echo " sudo pacman -S go"
echo ""
echo "πΉ Windows:"
echo " scoop install go"
echo ""
fi
# Check for the right version of Go, needed by TinyGo (supports go 1.18 - 1.23)
if (command_exists go); then
compat=0
for v in `seq 18 23`; do
if (go version | grep -q "go1.$v"); then
compat=1
fi
done
if [ $compat -eq 0 ]; then
echo "β Supported Go version is not installed. Must be Go 1.18 - 1.23."
echo ""
fi
fi
ARCH=$(uname -m)
# Check for TinyGo and its version
if ! (command_exists tinygo); then
missing_deps=1
echo "β TinyGo is not installed."
echo ""
echo "To install TinyGo, visit the official download page:"
echo "π https://tinygo.org/getting-started/install/"
echo ""
echo "Or install it using a package manager:"
echo ""
echo "πΉ macOS (Homebrew):"
echo " brew tap tinygo-org/tools"
echo " brew install tinygo"
echo ""
echo "πΉ Ubuntu/Debian:"
echo " wget https://github.com/tinygo-org/tinygo/releases/download/v0.34.0/tinygo_0.34.0_$ARCH.deb"
echo " sudo dpkg -i tinygo_0.34.0_$ARCH.deb"
echo ""
echo "πΉ Arch Linux:"
echo " pacman -S extra/tinygo"
echo ""
echo "πΉ Windows:"
echo " scoop install tinygo"
echo ""
else
# Check TinyGo version
tinygo_version=$(tinygo version | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+' | head -n1)
if ! version_gt "$tinygo_version" "0.34.0"; then
missing_deps=1
echo "β TinyGo version must be greater than 0.34.0 (current version: $tinygo_version)"
echo "Please update TinyGo to a newer version."
echo ""
fi
fi
go install golang.org/x/tools/cmd/goimports@latest