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
Governed intelligence skill for AAA as the abstraction, attestation, and abduction control plane across arifOS, APEX, A-FORGE, GEOX, WEALTH, WELL, and the ariffazil profile repository. Use when the user asks to explain or design AAA, route agentic work, reduce chaos/entropy in an arifOS federation task, create AREP/task declarations, classify risk, plan multi-repo changes, review governance boundaries, or translate human intent into evidence-backed, authority-safe, recursively agentic workflows. Provides deterministic F1-F13 floor checking, bounded abduction, and FederationReceipt composition.
development
Check every skill’s “use when” and “do not use when” clauses for collisions, missing negatives, and vague verbs like “help,” “assist,” or “improve.” Load when linting, reviewing, or validating trigger boundaries.
development
Bootstrap, design, and package new skills. Load when capturing user intent for a new skill or drafting its initial instruction framework.
content-media
Diagnose which federation services are up, down, or drifting. Produce a prioritized remediation plan.