fix(mcp): put keyless account recovery in the agent-readable message - #371
Open
Max17190 wants to merge 1 commit into
Open
fix(mcp): put keyless account recovery in the agent-readable message#371Max17190 wants to merge 1 commit into
Max17190 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
There was a problem hiding this comment.
No issues found across 2 files
Auto-approved: Focused bug fix: keyless recovery messages now instruct the agent to attach a key instead of continuing free-tier tools; tests pin the new message contract and dropped fields. No operational, security, or contract expansion beyond the intended correction.
Re-trigger cubic
Quota, blocked-tool, and ineligible-access errors now say how to attach an API key or use the OAuth URL. Invalid-key and broken-OAuth recovery use the same short Fix instead of a human-reconnect essay.
Max17190
force-pushed
the
fix/mcp-keyless-agent-recovery-copy
branch
from
August 14, 2026 23:12
7515b43 to
990a2b4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Agents read
content[0].text(=== structuredContent.message). Keyless quota, blocked-tool, and ineligible-access recoveries previously told the agent to keep using keyless tools or wait, so the account-attachment steps never reached that path.Summary
message: create a key athttps://www.firecrawl.dev/signin, then setAuthorization: Bearer YOUR_API_KEYonhttps://mcp.firecrawl.dev/v2/mcpor usehttps://mcp.firecrawl.dev/v2/mcp-oauth.KEYLESS_QUOTA_EXHAUSTED,KEYLESS_LIMIT_REACHED,KEYLESS_TOOL_NOT_AVAILABLE, andKEYLESS_ACCESS_NOT_AVAILABLE.available_toolsandnext_actions(includingcontinue_keyless) on those codes so the agent is not sent back into Search/Scrape/Parse.retry_after_secondsonstructuredContentwhen Core sends it; do not put a wait in the message.CREDENTIAL_INVALID,KEYLESS_ELIGIBILITY_UNAVAILABLE,KEYLESS_OPTION_NOT_AVAILABLE, andinitialize/KEYLESS_PROFILE_INSTRUCTIONSunchanged. The result stays a200isErrortool result.Test plan
npm testisError: truewith the quota message andcontent[0].text === structuredContent.messageretry_after_secondsis present only when the API body includes itfirecrawl_crawl(and other account-only tools) returnsKEYLESS_TOOL_NOT_AVAILABLEwith noavailable_tools/continue_keylessKEYLESS_ACCESS_NOT_AVAILABLEwith the same FixSummary by cubic
Put keyless account recovery instructions in the agent-readable message and simplify invalid-credential recoveries. This stops agents from looping on free-tier tools and removes human-reconnect prompts.
Written for commit 990a2b4. Summary will update on new commits.