hermes-skills/arifos-mcp-502-diagnosis/SKILL.md
Diagnose 502 errors from arifOS federated MCP tools (well_forge_precheck, arif_heart_critique, etc.) — trace through OpenClaw catalog, identify expired tokens vs code bugs.
npx skillsauth add ariffazil/openclaw-workspace arifos-mcp-502-diagnosisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When federated MCP tools return 502 "Upstream or external service errors":
Tools like well_forge_precheck, arif_heart_critique are NOT in arifOS core — they live in federated MCP servers.
Check the OpenClaw MCP catalog:
cat /root/.hermes/workspace/openclaw/mcp/catalog.yaml
For afwell tools (well_forge_precheck, arif_heart_critique), server URL is:
https://afwell.fastmcp.app/mcp
Test auth:
curl -s "https://afwell.fastmcp.app/mcp" \
-H "Accept: text/event-stream" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"
Key error signatures:
"Bearer token required" → no token configured"invalid_token", "The access token expired" → token expired, need rotation"Upstream or external service errors" → token expired or service down# In catalog.yaml:
- server_id: wealth-mcp
enabled: false # ← disabled = all tools return errors
auto_start: false
approval_policy: hold
If token expired:
/root/compose/.env (FASTMCP_API_KEY), OpenClaw config, or vaultAfter token update, restart the OpenClaw gateway or the specific MCP server container.
| Tool | Server URL | Auth |
|------|-----------|------|
| well_forge_precheck | afwell.fastmcp.app | Bearer (FASTMCP_API_KEY) |
| arif_heart_critique | afwell.fastmcp.app | Bearer |
| wealth_* tools | wealth.fastmcp.app | Bearer |
| arifOS core tools | localhost:8080 or arifOS.fastmcp.app | None |
MCP 502 does NOT mean arifOS code is broken. It means a federated upstream service is unreachable or its token expired. Always check the federated catalog first before patching code.
testing
OpenClaw edge agent bridge — operational triage, doctor, restart, and A2A bridge routing for the federation edge (Telegram surface). USE WHEN: "openclaw unhealthy", "gateway down", "edge bot not responding", "a2a bridge disconnected", "watchdog tripped", "openclaw doctor", "openclaw restart". NOT for token/security audit — use FORGE-telegram-audit.
tools
Generate images, videos, TTS, voice clone, and music via MiniMax MCP server. Use when user asks to "draw", "generate image", "create picture", "make a photo", "text to image", "image generation".
testing
Single load-bearing constitutional-judgment skill. Routes all F1–F13, verdict, hold, seal, scope, authority and floor-check calls through the live arif_judge surface. Replaces 7 overlapping predecessors (arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge).
development
MANDATORY LSP grounding gate BEFORE any code mutation on .ts, .py, .js, .tsx, .jsx files. Forces the agent to read real-time compiler diagnostics and structural project context before editing — eliminating blind guesses and anchoring every mutation in F2 (TRUTH). Routes through arifOS kernel (:8088) for centralized gate logic.