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.
development
Federation-wide gold (XAUUSD) trading capability. Python stack, OANDA broker, backtesting, macro signals, RSI strategy. Every organ has a role.
development
Capital claim state management — tracks claim lifecycle across WEALTH organ.
development
Archived constitutional warga placeholder retained only for audit provenance. Do not use for active work; use the live arifOS governance and constitutional skills instead.
testing
Warga (citizen) agent skills for AAA federation members. See subdirectories for specialized warga skills.