We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/boringstudio-org/mcp-gitea-proxy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
run-with-node.sh•712 B
#!/bin/bash
# Base directory where fnm stores node versions
FNM_DIR="$HOME/.local/share/fnm/node-versions"
# Find the latest version directory
# 1. List directories in FNM_DIR
# 2. Sort them (version sort)
# 3. Take the last one (latest)
LATEST_NODE_DIR=$(ls -d "$FNM_DIR"/v* 2>/dev/null | sort -V | tail -n 1)
if [ -z "$LATEST_NODE_DIR" ]; then
echo "Error: No Node.js versions found in $FNM_DIR" >&2
exit 1
fi
# Construct the bin path
NODE_BIN="$LATEST_NODE_DIR/installation/bin"
# Check if bin directory exists
if [ ! -d "$NODE_BIN" ]; then
echo "Error: Node bin directory not found at $NODE_BIN" >&2
exit 1
fi
# Add to PATH
export PATH="$NODE_BIN:$PATH"
# Execute the command
exec "$@"