DocumentationAPI v1
MCP Server • Troubleshooting

MCP Troubleshooting

Start with the first stage that failed: server startup, account authentication, task validation, polling/timeouts, or target website verification.

01

Server is quiet or the client shows no tools

Common Causes
  • • A manually started STDIO server waits silently for JSON-RPC messages on standard input — a quiet terminal is normal.
  • • Desktop clients (Claude Desktop, Cursor, VS Code) often launch with a narrower PATH than your interactive shell.
  • • Duplicate or outdated MCP entries in your config file can shadow the updated server.
Recommended Fixes
  • • Run npx -y @byecap/mcp --help or python -m byecap_mcp --help in the exact environment to confirm installation.
  • • Use the absolute Python or Node path in command (on Windows, use forward slashes or escaped backslashes).
  • • Alternatively switch to Hosted Streamable HTTP (https://mcp.byecap.org/mcp) to avoid local PATH issues entirely, then restart the client.
Confirm the fix: list_task_types returns the ByeCap task catalog.
02

Authentication fails, credit is insufficient, or key is restricted

Common Causes
  • • Visible tools only prove MCP transport succeeded — they do not prove account authentication.
  • • ERROR_KEY_DOES_NOT_EXIST or 401 Unauthorized occurs when BYECAP_API_KEY / Authorization header is missing, misspelled, or revoked.
  • • ERROR_ZERO_BALANCE indicates your USD wallet (or Quota Package key) has no remaining credit.
  • • Per-key CIDR IP allowlists, module allowlists, or daily spend caps configured in Dashboard may reject the call.
Recommended Fixes
  • • Copy an active API key from /dashboard/api-keys and pass it directly (not a password, file path, or placeholder).
  • • Check key guardrails (allowed_ips, spend limits, allowed modules) and restart your MCP client after updating config.
  • • Top up your balance in /dashboard/billing before creating paid tasks.
Confirm the fix: get_balance returns your live wallet balance or package quota.
03

Task fails validation or image parsing

Common Causes
  • • Passing a local file path or a data:image/png;base64,... URI prefix instead of raw Base64 bytes triggers ERROR_INVALID_IMAGE.
  • • Using an outdated task type alias or omitting a conditional parameter (such as websiteURL, websiteKey, or proxy) causes validation failure.
  • • ERROR_CAPTCHA_UNSOLVABLE indicates the challenge payload was corrupted, expired, or unreadable.
Recommended Fixes
  • • Call get_task_schema for the target task type to verify exact required fields and proxy requirements.
  • • Strip any data:image/...;base64, prefix before setting body on ImageToTextTask or classification tasks.
  • • Inspect the returned error code and task ID before retrying; failed tasks are auto-refunded automatically.
Confirm the fix: Task passes input validation and returns either ready or processing with a valid taskId.
04

Task stays processing, wait times out, or connection drops

Common Causes
  • • A wait timeout does not cancel the task or indicate failure — token challenges can take several seconds.
  • • Polling too aggressively triggers ERROR_RATE_LIMIT.
  • • Blindly resubmitting after a network drop can create duplicate paid tasks.
Recommended Fixes
  • • Keep the returned taskId and call wait_for_task_result or get_task_result until a terminal state (ready or failed) arrives.
  • • Respect retry_after backoff intervals when ERROR_RATE_LIMIT is returned.
  • • Only submit a fresh task if the original task expired (TASK_EXPIRED) or returned a terminal failure.
Confirm the fix: Original taskId resolves cleanly to ready or terminal error without duplicate charges.
05

Target website rejects a ready token or clearance cookie

Common Causes
  • • Challenge parameters changed or expired before the token was injected.
  • • Proxy IP or User-Agent differed between solving and submitting (critical for Cloudflare 5s, DataDome, Akamai, and Imperva).
  • • Token was written into the textarea without invoking the page callback or submitting the form.
Recommended Fixes
  • • Use a sticky proxy session and pass the exact User-Agent used by your browser or HTTP client.
  • • Use get_injection_snippet to ensure callbacks and hidden fields (g-recaptcha-response, cf-turnstile-response) are populated properly.
  • • If a genuinely valid integration receives an invalid answer, report it within 5 minutes via report_incorrect.
Confirm the fix: Target page accepts the submission and advances past the challenge.

Quick Local Environment Check

Verify Package & Interpreter Path
# Check exact Python binary used by your MCP client
python -c "import sys; print(sys.executable)"
python -m pip show byecap-mcp
python -m byecap_mcp --help

# Or verify Node.js MCP package
npx -y @byecap/mcp --help

Frequently Asked Questions

Do I need both ByeCap MCP and a separate browser MCP server?

No. Use ByeCap MCP alone whenever you already know the sitekey, URL, or image bytes. Add a browser MCP server (Playwright or Chrome DevTools) only when your agent needs to open live web pages, inject tokens, and verify form submission.

Do I need to select and invoke MCP tools manually?

Usually not. Once connected, describe your goal in natural language and let the assistant call detect_captcha, get_task_schema, and solve_task automatically according to your client approval rules.

Do I have to reconfigure the MCP server for every new chat session?

No. Configuration persists across sessions. Only reconnect or restart your client when you change the API key, transport URL, or Python/Node interpreter path.

Still need help?

Open a ticket in Dashboard Support Tickets and include your MCP client version, failed tool name, error code, and taskId. Always redact API keys, tokens, cookies, and proxy credentials before sharing logs.

← Back to Tools & CoverageAPI Error Codes Reference