MCP Gateway & Registry — macOS Setup Skill
Repository: https://github.com/agentic-community/mcp-gateway-registry
This skill: https://github.com/agentic-community/mcp-gateway-registry/blob/main/.claude/skills/macos-setup/SKILL.md
Full macOS guide: https://github.com/agentic-community/mcp-gateway-registry/blob/main/docs/macos-setup-guide.md
How to run this skill without cloning the repository
This skill is self-contained. You can invoke it from any directory in Claude Code using the GitHub URL. It will clone the repository for you.
/macos-setup
Or reference it remotely if you have not installed this repo:
@https://raw.githubusercontent.com/agentic-community/mcp-gateway-registry/main/.claude/skills/macos-setup/SKILL.md
What this skill does
/macos-setup setup — Full guided installation on a fresh macOS machine:
- Clones the MCP Gateway & Registry repository
- Installs and configures all services (Keycloak, registry, auth-server, MCP servers)
- Builds all Docker images from source
- Registers the Cloudflare Documentation MCP server so it appears immediately on login
- Ends with a complete summary of every step taken
/macos-setup teardown — Removes all MCP Gateway components from your system
CRITICAL: First action is ALWAYS Step 0
DO NOT run any Bash commands. DO NOT check prerequisites. DO NOT read any files.
The very first action when this skill is invoked MUST be using AskUserQuestion to complete Step 0.
Nothing else happens until the user has answered all three Step 0 questions.
Step tracking
Throughout the entire execution, Claude must maintain an internal step log. After every phase completes (success, skip, or failure), append an entry to this log. Display the full log as a formatted table in the Final Summary phase.
Step log format: { phase, name, status (DONE / SKIPPED / FAILED), notes }
Step 0: Determine Mode — MUST BE FIRST, NO EXCEPTIONS
STOP. Do not run any commands. Use AskUserQuestion right now to ask all three questions below before taking any other action.
Question 1 — Operation:
Which operation would you like to perform?
Setup - Install the MCP Gateway & Registry (AI-registry) from scratch.
Builds all services from source. Estimated time: 20-40 minutes.
Teardown - Stop all services and remove all components. Irreversible.
If the user invoked the skill with an argument (/macos-setup setup or /macos-setup teardown), skip this question.
Question 2 — Execution mode (Setup only):
How should I run the setup?
Default (recommended) - Use sensible defaults for all prompts. I will only
pause for decisions that truly require your input. Passwords will be
auto-generated and shown in the final summary.
Interactive - Ask for your confirmation and input before every phase.
You control each step individually.
Store the answer as EXECUTION_MODE = default or interactive.
Question 3 — Installation directory (Setup only):
Where should the AI-registry project be installed?
Default: ~/AI-registry
Enter a path, or press Enter / select the default option to use ~/AI-registry.
Store the answer as INSTALL_DIR. If the user provides no input or selects the default, set INSTALL_DIR=~/AI-registry and inform the user:
"Using default installation directory: ~/AI-registry"
Expand the path immediately:
INSTALL_DIR=$(eval echo "${INSTALL_DIR}")
echo "Installation directory: ${INSTALL_DIR}"
Log: { 0, "Mode & Directory Selection", DONE, "Mode: ${EXECUTION_MODE}, Dir: ${INSTALL_DIR}" }
SETUP WORKFLOW
For every phase below, apply this rule:
- Interactive mode: announce the phase, use
AskUserQuestionto confirm before executing - Default mode: announce what you are doing with a one-line message, then execute immediately without asking confirmation
Phase 1: Prerequisites Check
Announce: "Checking prerequisites..."
echo "=== Docker ==="
docker --version 2>/dev/null && docker ps >/dev/null 2>&1 && echo "DOCKER_OK" || echo "DOCKER_FAIL"
echo "=== Python (>=3.14 required by pyproject.toml) ==="
# Ask uv, not PATH. Phase 5 runs `uv sync`, which resolves its own managed
# interpreters and ignores whatever `python3` happens to be first on PATH -- a
# system python3 of 3.13 is fine as long as uv can see a >=3.14 somewhere.
# Checking `python3 --version` instead reports a false failure on exactly the
# machines where setup would have worked.
if uv python find '>=3.14' >/dev/null 2>&1; then
echo "Interpreter for uv: $(uv python find '>=3.14' 2>/dev/null)"
echo "PYTHON_OK"
else
echo "System python3: $(python3 --version 2>&1 || echo 'not found')"
echo "PYTHON_TOO_OLD"
fi
echo "=== uv ==="
uv --version 2>/dev/null && echo "UV_OK" || echo "UV_FAIL"
echo "=== Node.js (required for building from source) ==="
node --version 2>/dev/null && echo "NODE_OK" || echo "NODE_FAIL"
echo "=== git ==="
git --version 2>/dev/null && echo "GIT_OK" || echo "GIT_FAIL"
echo "=== jq ==="
jq --version 2>/dev/null && echo "JQ_OK" || echo "JQ_FAIL"
echo "=== gettext ==="
gettext --version 2>/dev/null && echo "GETTEXT_OK" || echo "GETTEXT_FAIL"
For any failed check, display the install instructions:
| Check | Install command |
|-------|----------------|
| DOCKER_FAIL | "Install Docker Desktop from https://www.docker.com/products/docker-desktop/ then start it and wait for the whale icon in the menu bar" |
| PYTHON_TOO_OLD | uv python install 3.14 — the project requires Python >=3.14 (pyproject.toml), and Phase 5 (uv sync) fails with No interpreter found for Python >=3.14 otherwise. uv manages this interpreter itself, so the system python3 is left untouched (it may stay on 3.13 or older). |
| UV_FAIL | brew install uv |
| NODE_FAIL | brew install node@20 or download from https://nodejs.org/ |
| GIT_FAIL | xcode-select --install |
| JQ_FAIL | brew install jq |
| GETTEXT_FAIL | brew install gettext |
Do not proceed if Docker or git fail. Python, uv, Node.js, jq, and gettext must also be present before continuing. Ask the user to install missing tools and retry.
Do not proceed on PYTHON_TOO_OLD. With no >=3.14 interpreter available to uv, Phase 5 fails four phases later with No interpreter found for Python >=3.14, an error that names uv rather than the unmet prerequisite. Resolve it here: run uv python install 3.14, then re-run the Python check and confirm PYTHON_OK before continuing.
Note the check deliberately asks uv, not python3 --version. uv sync uses its own managed interpreters, so a system python3 older than 3.14 is not a problem as long as uv python find '>=3.14' succeeds. Gating on python3 instead blocks setup on machines where it would have worked.
Log: { 1, "Prerequisites Check", DONE/FAILED, list of what passed/failed }
Phase 2: Clone Repository
Announce: "Cloning the MCP Gateway & Registry repository to ${INSTALL_DIR}..."
First check if the directory already exists:
if [ -d "${INSTALL_DIR}" ]; then
echo "ALREADY_EXISTS"
ls "${INSTALL_DIR}/docker-compose.yml" 2>/dev/null && echo "REPO_OK" || echo "NOT_A_REPO"
else
echo "WILL_CLONE"
fi
If ALREADY_EXISTS and REPO_OK: Inform the user and ask (both modes):
The directory ${INSTALL_DIR} already contains the repository.
Use existing - Continue setup with the existing copy
Re-clone - Remove it and clone fresh (WARNING: deletes existing data)
If WILL_CLONE: Clone the repository:
# Create parent directory if needed
mkdir -p "$(dirname "${INSTALL_DIR}")"
# Clone
git clone https://github.com/agentic-community/mcp-gateway-registry.git "${INSTALL_DIR}"
echo "Clone exit code: $?"
After cloning or confirming existing, change into the directory:
cd "${INSTALL_DIR}"
echo "Working directory: $(pwd)"
ls docker-compose.yml build_and_run.sh 2>/dev/null && echo "REPO_VERIFIED" || echo "REPO_INVALID"
All subsequent phases run commands from within ${INSTALL_DIR}.
Key files now available locally (GitHub references for documentation):