KnearMe MCP Worker Troubleshooting
401/auth challenge for all requests
Section titled “401/auth challenge for all requests”Likely causes:
- Wrong
JWT_PUBLIC_KEY. OAUTH_ISSUERmismatch.OAUTH_RESOURCEmismatch.
Fixes:
- Re-push correct key.
- Validate issuer/resource configuration in
wrangler.tomland deployed env.
tools/call fails while tools/list works
Section titled “tools/call fails while tools/list works”Cause: upstream portfolio API issues or route mismatch.
Action: validate PORTFOLIO_API_URL and test endpoint availability directly.
Environment confusion (staging vs production)
Section titled “Environment confusion (staging vs production)”Cause: wrong env deployment target.
Action: deploy explicitly with env flags/pipeline config and verify runtime vars after deploy.