Generation issues
”Specification validation failed”
Your OpenAPI specification has structural issues. Run the Validation check in the dashboard to see specific errors. Common causes:- Missing
pathsorinfofields - Broken
$refreferences pointing to non-existent schemas - Invalid OpenAPI version identifier
Generation succeeds but some operations are missing
Operations may be skipped if they:- Have no defined HTTP method
- Have duplicate operation IDs (the second is renamed with a
_2suffix) - Reference undefined schemas that can’t be resolved
Runtime issues
”ModuleNotFoundError”
Dependencies aren’t installed. Run:”Connection refused” or timeout errors
The target API is unreachable. Check:BASE_URLin.envis correct- Your network can reach the API (try
curlor a browser) - The API isn’t rate-limiting you (check for HTTP 429 responses in logs)
Authentication errors (401 / 403)
The most common cause is missing or incorrect credentials in your.env file. The generated server reads credentials from environment variables — if they’re empty or wrong, requests will be rejected by the target API.
- Open the
.envfile and verify all credential fields are filled in with valid values - Make sure the variable names match what the generated code expects (they’re pre-configured — just fill in the values)
- For API Key or Bearer authentication, confirm the key/token is active and not expired
- See Authentication for
.envexamples for each authentication type
- Ensure
OAUTH2_CLIENT_IDandOAUTH2_CLIENT_SECRETare correct and belong to an active OAuth application - Verify the API is enabled in your provider’s developer console (e.g., Google Cloud Console, Azure Portal)
- Select valid scopes for your use case and provide them in
.envas a comma-separated list (e.g.,OAUTH2_SCOPES=read,write) - Delete
oauth2_tokens.jsonto force re-authorization if tokens become invalid
- Check the port is free — the default callback port is
8080(configured viaOAUTH2_CALLBACK_PORTin.env). If another process is using this port, the authorization flow fails silently and requests go out unauthenticated. Check with:
OAUTH2_CALLBACK_PORT in .env to a free port.
- Redirect URI must match — your OAuth provider’s allowed redirect URIs must include
http://localhost:<port>/callbackwhere<port>matchesOAUTH2_CALLBACK_PORTin.env. For example, with the default port:
”Rate limit exceeded”
This can come from two sources: Local rate limiter — The generated server includes an optional local rate limiter that caps outgoing requests per second. This is disabled by default. If you enabled it during generation (Generation tab → Config → Advanced settings → Security: Enable Rate Limiting), you can adjust the limit in.env or disable it at runtime:
.env
--rate-limiting disabled flag:
Circuit breaker is open
The target API has been failing consistently. The circuit breaker blocks requests to prevent cascading failures. Wait for the timeout period (default 60 seconds) or restart the server to reset the circuit breaker state.MCP client issues
Tools don’t appear in your MCP client
See Connecting to AI Agents — Troubleshooting.Tools appear but return errors
Runpython server.py directly in a terminal to see detailed error output. Common causes:
- Missing or incorrect credentials in
.env - API returning unexpected response format
- Network issues between your machine and the API