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.
Improvements
- withSupermemory in @supermemory/tools now takes an apiKey option instead of only reading the environment variable, so it works with secrets managers, edge runtimes, and per-request keys.
- The ai-sdk package re-exports PromptTemplate, MemoryPromptData, and WithSupermemoryOptions, so the documented custom-template example compiles.
Fixes
- Search and graph tools now bound their page and limit inputs, and whoAmI no longer returns the transport session id.
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