← All workflows

Workflow

Diagnose Codex MCP in VS Code and OAuth

Compare MCP configuration and tools across CLI and VS Code and isolate the OAuth stage returning 403.

Sources checked:

What you can do

Reproduce a connection problem with a safe read-only test.

Record client, config, runtime and callback evidence before attributing a failure to a product version.

Build your execution checklist

Inputs are processed in this browser only and cleared when you close or refresh the page.

The CLI can see a server and the extension cannot.

Read the full steps

Find an MCP server missing in the Codex VS Code extension

The CLI can see a server and the extension cannot.

  1. Record CLI/extension versions, home and project locations, and which session/workspace is active. Capture codex mcp list and the extension's MCP status.
  2. Open a fresh chat in the same trusted project. For STDIO, test the configured executable and PATH in the extension launch environment.
  3. Verify the server lists a known read-only tool on both surfaces. Capture startup errors and a redacted config excerpt if one still fails.

Isolate an MCP OAuth callback 403

Browser login seems to succeed but Codex reports forbidden.

  1. Confirm the configured server and auth method, then rerun codex mcp login <server-name> with the same account in a new session (add --no-browser on a terminal without a local browser). Never copy access tokens, codes or cookies into logs.
  2. Record which host returns 403 and at what stage: browser callback, token exchange or tool access. Check that the account and workspace grant the intended server scope.
  3. Compare CLI and editor on the same configuration. Report the version, redacted callback path and provider-side error when a known read-only tool still fails.

Scope & limits

  • Local extension logs and server-side authorization determine the final diagnosis.

Verified sources

Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.