# MCP: MCP retries instead of signing you out during an auth outage

[Changelog](https://supermemory.ai/changelog) · [MCP](https://supermemory.ai/changelog/plugins)

MCPAugust 24, 2026

## MCP retries instead of signing you out during an auth outage[#](https://supermemory.ai/changelog/mcp-retries-instead-of-signing-you-out)

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

* The MCP get\_document tool now reads only from your active space, matching the other read tools.
* 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
```

## Start building with supermemory.

Memory and continual learning for any model, any harness. Available through our API, plugins, and MCP.

[Build with supermemory ](https://console.supermemory.ai/)
