Troubleshooting
Build fails static analysis (ESLint / Semgrep)
Build fails static analysis (ESLint / Semgrep)
Every generated server is scanned before deploy. If a build is blocked:
- Check the build log for the flagged rule and file.
- Generated output must avoid
eval()and dynamic imports — if a custom edit introduced one, remove it. - Re-run the build after the offending pattern is gone.
Deployment never reaches terminal state
Deployment never reaches terminal state
- Confirm status first:
mcp deployments get <deploymentId>. - Tail events:
mcp deployments logs <deploymentId> --follow --since 1h. - In CI, bound the wait:
mcp --json deployments logs $ID --follow --follow-timeout 300. - Verify you’re querying the correct deployment id and organization scope.
401 / 403 from API routes
401 / 403 from API routes
- Verify
MCPCLOUD_API_KEYis present and not revoked (mcp whoami). - Confirm the caller has the required org capability (billing/audit routes are capability-gated to admin/owner).
- Re-check
organizationIdand resource ids in the query or body.
Runtime token exchange fails
Runtime token exchange fails
- Include both
deploymentIdandorganizationIdin the exchange. - Confirm the deployment’s access mode and runtime-auth posture:
mcp deployments runtime-auth <deploymentId>. - Remember: control-plane API keys are not runtime tokens — see Runtime access.
- Inspect
error.requestIdfor traceability when filing an issue.
A client can't connect to the server
A client can't connect to the server
- Check the transport: most remote clients need Streamable HTTP (the default); some legacy clients need SSE.
- For
privateOrg/unlisteddeployments, the client must present a runtime token — a bare URL won’t work. - Validate the active endpoint URL from the server workspace.
- See the per-client Clients guides for exact config.
Tools behave oddly or the agent skips them
Tools behave oddly or the agent skips them
- Run enrichment so descriptions are agent-readable:
mcp tools enrich <serverId>. - Confirm the tool surface is what you expect:
mcp tools list <serverId>. - Curate out noisy or duplicate operations before re-deploying.
CLI command fails in CI
CLI command fails in CI
- Ensure
MCPCLOUD_API_KEYis in pipeline secrets (env var takes precedence over config file). - CI mode refuses prompts — use
--key/MCPCLOUD_API_KEYfor login, and--non-interactiveformcp init. - Prefer
--json+jqfor deterministic parsing. - Source project/server ids from the current environment, not stale artifacts.
Skill install returns purchase_required (402)
Skill install returns purchase_required (402)
The artifact is monetized. Purchase it, or install a free alternative. Marketplace creators keep 80% of revenue.
Hit a plan limit
Hit a plan limit
Servers, deployments, skills, API keys, and credits are capped per plan and per organization. Upgrade the plan or buy a credit pack on a paid tier. See Credits & plans.