The server is missing or disconnected
Check the server address in your client’s MCP settings:
Use the connection instructions for your client, then restart the connection. In Claude Code, inspect
/mcp. In Codex, run codex mcp list --json. In Cursor, check Customize; in VS Code, use MCP: List Servers.
If the URL is correct, inspect the client’s MCP output for connection errors and confirm your network can reach that hosted address.
Discovery succeeds but the request returns 401
Specification discovery checks the contract, so it can succeed without a valid API key. For a401, check the following:
- Supply
STRADDLE_API_KEYto the process that starts your client. - Confirm the key belongs to the same environment as
serverBaseUrl. - Restart the client or MCP connection after changing the credential.
bearer_token_env_var is STRADDLE_API_KEY. For Claude Code, the header must keep the literal variable reference shown in Connect MCP. For the Cursor plugin, check its Configure credential field.
The request returns 403 or 404
For403, check whether the key can use the operation and selected account. For 404, confirm the resource ID and environment, then review the account header rule.
Use the resource’s exact ID from the same environment. Keep the method, path, HTTP status, and request ID from the failure so the next investigation has concrete evidence.
Scalar cannot find the operation
“Failed to get operation” points to the operation ID. “Does not belong to the given document version” points to the document and operation pair. Repeatsearch-openapi-operations in the current session. Use x-scalar-document-version-id and the matching operation’s x-scalar-operation-id from that result. The OpenAPI name, such as getAccount, is not the Scalar operation ID.
Then rebuild the request with those IDs. See API requests.
The request targets the wrong environment
InspectserverBaseUrl in the tool request. Set it to the resolved host, such as https://sandbox.straddle.com.
Set the account in the MCP request separately from the CLI’s selected account. Include the header when the operation requires it.
Docs MCP lists API execution tools
Use Docs MCP’ssearch-documentation tool for documentation. Send API tasks through straddle-api, where the client is configured with your Straddle key.
The hosted server controls its tool list. Check the server URL to confirm which connection supplied the tools.