claude-code - 💡(How to fix) Fix Notion MCP token invalidated after context compaction, requires re-authorization every session

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

After a conversation context compaction occurs, the Notion MCP server token is invalidated and requires re-authorization, even though the OAuth token itself should still be valid. Previously, the Notion integration token persisted correctly across multiple sessions and conversations without needing re-authorization.

Error Message

  1. Receive error: MCP server "notion" requires re-authorization (token expired)

Root Cause

After a conversation context compaction occurs, the Notion MCP server token is invalidated and requires re-authorization, even though the OAuth token itself should still be valid. Previously, the Notion integration token persisted correctly across multiple sessions and conversations without needing re-authorization.

RAW_BUFFERClick to expand / collapse

Summary

After a conversation context compaction occurs, the Notion MCP server token is invalidated and requires re-authorization, even though the OAuth token itself should still be valid. Previously, the Notion integration token persisted correctly across multiple sessions and conversations without needing re-authorization.

Steps to Reproduce

  1. Authorize Notion MCP integration in Claude Code
  2. Use Notion MCP tools (e.g., notion-fetch) successfully within a session
  3. Continue a long conversation until context compaction occurs (or start a new session after compaction)
  4. Attempt to use any Notion MCP tool
  5. Receive error: MCP server "notion" requires re-authorization (token expired)

Expected Behavior

Notion MCP token should persist across sessions and survive context compaction. Re-authorization should only be needed when the OAuth token genuinely expires or is explicitly revoked.

Actual Behavior

Token is invalidated after context compaction, requiring re-authorization on every new session or after any compaction event.

Environment

  • Platform: macOS (darwin 24.4.0)
  • Shell: zsh

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING