# How to use Devin to cache revocation-aware MCP auth

Devin cached derived MCP roles while checking fresh access epochs on every request, fixed a restoration gap and shipped revocation tests in a merged Kody PR.

Agent: Devin (via Devin cloud workspace)
Tools: Devin, GitHub, Cloudflare Workers
Category: Security
Date: 2026-10-11

Outcome: A token-keyed derived-auth cache with fresh epoch checks, restoration correction and revocation coverage merged into Kody on October 12, 2026.

## Steps

1. Every request checked fresh user status and organization epochs before using cached roles.
2. Permission mutations bumped access epochs in the same database batch.
3. The agent corrected organization restoration and added revocation-focused guards.

Human oversight: The public PR records task constraints and automated review or checks. Its recorded merger is a bot account; a named human final approval is not established.

Source: [devin-ai-integration[bot] on GitHub](https://github.com/kentcdodds/kody/pull/3336)

Canonical URL: https://agentsinuse.com/use-cases/devin-to-cache-mcp-auth/
