mcpServer/oauth/login returns the authorization URL; wait for mcpServer/oauthLogin/completed success. Those are host APIs, not Ando tools. Do not invent tool calls with those names. When terminal execution is available, inspect codex mcp list --json and codex mcp get <name> --json to find the exact configured public Ando OAuth connection. Do not print headers or credential values. Do not conclude that switching is impossible merely because no reconnect tool is listed.
For a verified CLI-configured connection, run the bundled helper:
--codex <path> to select the host’s bundled executable when needed. Keep the process alive while the user authorizes. Open the fresh authorize.url once in a supported browser; do not also start another login or reuse that URL in a second browser. The helper checks the configured endpoint, invokes Codex App Server OAuth, waits for the real callback, and reads the new identity and runtime tools on the same ephemeral diagnostic thread. It does not invoke a model, send messages, or read tokens. Honor the host’s final consent confirmation requirements.
The helper always ends with status: pending_host_refresh and chat_switch_verified: false; exit code zero confirms only the helper’s OAuth/readback work. It launches a separate runtime. Calling reload there cannot refresh the desktop runtime.
Then verify the calling chat separately. A CLI-configured Ando server entry and a hosted plugin can have different credentials even when their URLs match; helper success is insufficient. If codex mcp list has no matching Ando entry, use the installed plugin’s own reconnect/sign-in control. (A local connection, in Ando’s words, is Claude Code or Codex on your computer that Ando agents run tasks on; it is unrelated to this helper.) Do not create a parallel connection and claim it switched the plugin, guess a plugin server name, edit credential files, or invalidate a token to force the UI.
Codex restart recovery
If reconnect succeeds but this chat still shows the old identity/tools or reports authentication required, fully quit Codex (Cmd+Q on macOS), reopen it, and return to this same chat. Closing a window or starting another chat may not refresh the connection. Re-read identity and available tools before continuing; restarting does not itself change identity. This recovery was verified in Codex; other clients should use their supported reload or restart flow.Partial tool catalogs
Codex applies plugin declaration limits before combining namespace instructions: 8,000 serialized bytes per tool and 64,000 across plugin tools. Oversized declarations can disappear from both callable tools and tool search even when Ando advertises them. These limits were verified in Codex 0.162.0-alpha.17.2; check the current host implementation when diagnosing another version. A regular MCP registration does not use this plugin-specific budget. If tools are missing:- Verify the calling chat’s workspace and principal with
get_workspace_overviewor an available identity read. Permission differences can legitimately produce different catalogs; do not seek broader access just to increase the count. - Compare every authorized name from the same connection’s complete
tools/listwith the chat’s callable catalog. Follow every catalog page. Tool search cannot recover declarations Codex rejected. A separate diagnostic runtime proves only its own discovery, not the calling chat’s refresh. - When available, inspect
_meta["ando/codex_plugin_budget"]on the compact catalog. Ando computes it for the complete authorized catalog before pagination. It is a conservative declaration bound, not proof that the host loaded every tool; dynamic miniapp actions, provider schemas, and other plugins can consume more budget. - Use the host’s supported catalog reload or the restart recovery above, then repeat identity and name comparisons. Reinstalling the ZIP alone does not deploy smaller declarations: the package discovers tools from the hosted MCP server.
pnpm check:codex-plugin-declarations before the normal server release and live readback.
A regular MCP connection can be an explicitly authorized temporary fallback. Keep it distinct from the plugin connection and verify its actual principal and catalog; matching URLs do not prove matching credentials. Remove the fallback only after the deployed plugin catalog exposes all authorized names. Never claim that a successful fallback verified the plugin.