#!/bin/sh # fuast agent setup: # # curl -fsSL fuast.com/install | sh # # Connects fuast's MCP server (https://fuast.com/mcp) to Claude Code, Codex and Gemini CLI # when they are installed, and saves the fuast skill so your coding agent knows # how to build and deploy an app with it. No account is created and nothing is # deployed. Run it again to update the skill. set -u # One function, called on the last line: sh reads all of it before running any of # it, and every command gets /dev/null as stdin, so none can swallow the rest of # a piped script. main() { URL="https://fuast.com/mcp" NAME="fuast" SKILL_URL="https://fuast.com/skill.md" found=0 say() { printf '%s\n' "$*"; } have() { command -v "$1" >/dev/null 2>&1; } # Agent CLIs often live in a folder that a non-interactive shell (ssh, an agent's own shell) does not search. for d in "$HOME/.local/bin" "$HOME/.bun/bin" "$HOME/.npm-global/bin" "$HOME/.local/node/bin" /opt/homebrew/bin /usr/local/bin; do case ":$PATH:" in *":$d:"*) ;; *) if [ -d "$d" ]; then PATH="$PATH:$d"; fi ;; esac done export PATH fetch() { if have curl; then curl -fsSL "$1" -o "$2" elif have wget; then wget -q "$1" -O "$2" else return 1; fi } # skill