Skip to content

fix(devin): strip MCP tools and avoid false auth cooldown - #170

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/devin-mcp-tools
Sep 15, 2026
Merged

caigee-cmd merged 1 commit into
mainfrom
fix/devin-mcp-tools

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Strip Codex/Desktop mcp__* tools before calling Devin so MCP-hosted tool dumps do not poison the Connect request.
  • Classify MCP configuration permission_denied (and bare permission denials) as invalid_request instead of auth, so the account is not cooled for 30 minutes.

Test plan

  • go test ./internal/providers/devin/...
  • After merge: clear prod Devin account cooldown and verify refresh stays ready
  • Avoid replaying the full MCP-heavy Desktop dump until the host is updated past this fix

Codex/Desktop mcp__* tool dumps make Devin return permission_denied for
an MCP configuration issue. Drop those tools before the upstream call
and classify that trailer as invalid_request so the account is not
cooled as auth.
@caigee-cmd
caigee-cmd merged commit 3f8e2d3 into main Sep 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant