Notion connector tools remain 401 after reconnect in Codex desktop
Open 💬 5 comments Opened May 28, 2026 by Nomia
Summary
The Codex desktop app can discover Notion connector tools after reinstall/reconnect, but the tools still fail with 401 Reauthentication required. The UI does not make it clear whether Notion is installed, authenticated, enabled as an MCP server, or only available as a plugin connector.
Environment
- Codex desktop app on macOS
- Date observed: 2026-05-28
- Notion plugin/connector was uninstalled, reinstalled, and reconnected by the user
- Screenshot state:
notionappears under "From plugins", while the main MCP server list only showsnode_replandplaywright
Expected behavior
After reconnecting / reauthorizing Notion, the current Codex session should be able to use the Notion tools to fetch and update pages.
Actual behavior
Tool discovery exposes Notion tools under:
mcp__codex_apps__notion
But fetching a Notion page still fails:
401: "Server returned 401: 'Reauthentication required'"
The older mcp__notion__ namespace is no longer usable in this session:
unsupported call: mcp__notion__notion_fetch
Steps tried
- Uninstalled the Notion MCP/plugin from Codex settings.
- Reinstalled / reconnected Notion.
- Retried tool discovery.
- Retried
mcp__codex_apps__notion._fetchagainst a Notion page URL. - Still received
401 Reauthentication required.
Impact
- Codex can discover Notion tools but cannot actually read or write Notion pages.
- Reinstalling/reconnecting Notion does not appear to refresh the connector auth state available to the current Codex runtime.
- The UI does not clearly distinguish:
- installed plugin
- connected OAuth account
- active MCP server
- connector requiring reauthentication
Requested improvements
- Refresh Notion connector authentication after reconnect/reinstall so the current Codex session can use the tools.
- Surface explicit status in the MCP/plugin UI: connected, needs auth, enabled as MCP, installed as plugin only, etc.
- Provide a way to force-refresh connector auth for the current session without guessing whether a Codex restart is required.
- If a connector is discovered but unusable due to auth, show that status in tool discovery or the tool error with a user-actionable remediation.
5 Comments
Additional finding after trying CLI MCP login:
I ran:
The CLI flow opened the Notion OAuth URL and completed successfully:
However, in the Codex Desktop conversation, tool discovery still exposes Notion as:
and calling fetch still returns:
So the successful CLI MCP login does not appear to refresh or affect the Desktop app's current Notion connector/tool runtime. The Desktop session also does not expose a usable
mcp__notion__namespace after CLI login; it continues to route through the Codex Apps connector namespace.This suggests there may be two separate auth/runtime paths:
codex mcp login notionsucceeds.mcp__codex_apps__notionremains unauthenticated and returns 401.It would help if Codex Desktop either:
notionMCP server as a separate active MCP server after login,User experience / frustration feedback:
This is extremely frustrating from a user perspective. The user simply wanted to use the Notion MCP from Codex Desktop, but the path to get a basic MCP working is unclear and surprisingly hard.
What makes this confusing:
notionunder plugins / connectors, but the active MCP server list does not clearly show whether Notion is installed, authenticated, enabled, or available to the current session.codex mcp login notionsucceeds in the terminal, but Codex Desktop still callsmcp__codex_apps__notionand returns 401. There is no obvious indication that these are separate auth/runtime paths.The user also asked Codex to operate the Codex UI directly to fix the setup, but Computer Use refuses to control
com.openai.codex:That leaves the user stuck in a loop: Codex can diagnose that the Notion tool is unauthenticated, but cannot operate its own settings UI to resolve it, and the UI/CLI do not provide a clear single source of truth for auth state.
Expected product behavior:
The current experience makes a basic MCP setup feel unreliable and opaque.
Final follow-up / confirmed workaround:
After running:
and then restarting Codex Desktop, the Desktop session finally exposed both tool namespaces:
Calling
mcp__notion__.notion_fetchthen successfully fetched the target Notion page.So a likely workaround is:
codex mcp login notionin the terminal.mcp__notion__namespace, notmcp__codex_apps__notion.This confirms the user-facing problem: there is no clear indication that CLI MCP login requires a Desktop restart before the server/tool namespace becomes available inside the Desktop conversation. The user only discovered this by trial and error.
It is also still unclear whether the successful result was caused by CLI auth, Desktop restart, connector refresh, or some combination. These actions happen across different surfaces (terminal CLI vs Desktop app UI), but the product gives no explicit explanation of how they relate.
From a UX standpoint this is still very poor:
mcp__notion__namespace.Suggested improvement:
codex mcp login <server>, show whether Desktop needs restart.Seems related to https://github.com/openai/codex/issues/24675
I am seeing a related failure earlier in the OAuth flow on macOS with Codex Desktop and codex-cli 0.146.0.
The Notion plugin/connector path and the official remote-server configuration both fail. codex mcp get notion reports the server as enabled with streamable HTTP at https://mcp.notion.com/mcp.
When I run codex mcp login notion, the browser opens https://mcp.notion.com/authorize?..., but then ends on a normal https://app.notion.com/p/<redacted> workspace page with no consent UI. The OAuth connection never becomes usable.
This differs from the 401-after-reconnect symptom in this issue, but may be the same plugin/OAuth/MCP handoff failure. Reinstalling/reconnecting the plugin and using the CLI setup both reproduce it. OAuth URL parameters and any credentials have been omitted.