🛡️ Module 5 · Harden
Troubleshoot & harden
Most reports that Shopify MCP is “broken” are really auth, scopes, or a stale process. Cheat sheet: 401 = credential/domain · 403 = missing or unapproved scope.
Public teaser. Incident trees, refresh cadence, and session quarantine unlock after subscribe.

✨ Public teaser
What free visitors need to know
Module 5 is the field manual for Shopify + Grok failures: the 401/403 matrix, client_credentials expiry (~24h), domain typos, stale MCP, and secret hygiene — including that session logs can retain secrets.
Not “MCP broken”
Most failures are auth, scopes, or stale process — diagnose before rewriting configs.
401 / 403 cheat sheet
401 → credential/domain problems · 403 → missing or unapproved scope.
~24h tokens
Client-credentials Admin tokens often live about a day — refresh before demos.
Host only
Custom domains and typos are not Admin hosts — use
YOUR_SHOP.myshopify.comonly.Secret surfaces
Keep secrets out of chat, git, screenshots, and session zip shares.
Laminated card
401 vs 403 plus rotate-if-pasted reminder — the demo idea for this module.
🩺 Copyable teaser
401 / 403 cheat sheet
Triage vocabulary before you rotate everything.
401 → credential / domain / expired token
403 → missing scope OR merchant not re-approved
# Tools listed ≠ store connected
# ~24h client_credentials token expiry is common 🗺️ Outline
The field manual (titles public, steps locked)
- ★
Public
Start every incident with the 401/403 matrix
Branch first — refuse to debug by pasting Admin tokens into chat.
Locked · Subscribers
Credential path — prefix literacy · expiry (~24h) · revoke after reauth
shpat_…only in Admin slot; re-exchange offline when tokens die.
Locked · Subscribers
Domain and host mistakes
No protocol, no trailing slash, no
wwww— myshopify host only.
Locked · Subscribers
Scope / merchant-approval path (403)
Plus stale MCP restart, app_not_installed exchange failures.
Locked · Subscribers
Secret hygiene checklist · Session logs retain secrets
Rotate-if-pasted · quarantine sessions · smoke-test pack · maintenance cadence.
🔒 Behind the paywall
Incident trees stay closed
Subscribers get the full field manual: credential vs scope branches, stale MCP restarts, secret hygiene ritual, and a smoke-test pack to close every incident.
- 401/403 decision tree
- ~24h refresh + revoke-after-reauth
- Stale MCP (
/new, toggle, or remove) - Session quarantine + rotate-if-pasted
➡️ Next
Ready for the field manual?
Unlock Module 5, or jump back to the guides library to see all five modules in one place.