Skip to main content

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-remote runs through npx.
  • Check the service is up: https://mcp.custodianlabs.io/health should return "status": "ok".

The generated code fails​

ErrorFix
AuthenticationErrorSet CUSTODIAN_SDK_API_KEY in the shell where you run the script.
FileNotFoundErrorPut the files named in add_data_source_file() next to the script, or change the names.
ModuleNotFoundError: custodian_labsRun pip install custodian-labs.

More: Error handling.