MCP retries instead of signing you out during an auth outage#
A brief authentication outage used to return invalid_token, the protocol signal to discard your credential, so every connected MCP client was logged out. Those requests now return 503 with Retry-After so clients wait and retry.
withSupermemory now takes the key directly, so it works with a secrets manager, an edge runtime, or a different key per request:
import { withSupermemory } from "@supermemory/tools/ai-sdk"
const model = withSupermemory(openai("gpt-5.6"), "user-123", {
apiKey: process.env.MY_VAULT_KEY,
})
Requires @supermemory/tools 2.2.0 or later:
npm install @supermemory/tools@latest