Troubleshooting
401: Missing API key
Your client isn't sending the Authorization header. Check the header name and that
the value starts with Bearer , including the space.
401: Invalid API key
The key isn't recognised, has expired or its plan is inactive. Copy it again from API Keys and check your plan on Subscriptions.
The tools don't show up
- Restart the client after editing its config file.
- Check the URL ends in
/mcp. - Claude Desktop: make sure Node.js is installed, since
mcp-remoteruns throughnpx. - Check the service is up:
https://mcp.custodianlabs.io/healthshould return"status": "ok".
The generated code fails
| Error | Fix |
|---|---|
AuthenticationError | Set CUSTODIAN_SDK_API_KEY in the shell where you run the script. |
FileNotFoundError | Put the files named in add_data_source_file() next to the script, or change the names. |
ModuleNotFoundError: custodian_labs | Run pip install custodian-labs. |
More: Error handling.