← 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.
- Record CLI/extension versions, home and project locations, and which session/workspace is active. Capture codex mcp list and the extension's MCP status.
- Open a fresh chat in the same trusted project. For STDIO, test the configured executable and PATH in the extension launch environment.
- 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.
- 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.
- 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.
- 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
- Model Context Protocol
- MCP servers not detected in Codex VS Code extension (but working in Codex CLI) · Issue #6465 · openai/codex · GitHub
- Model Context Protocol
- VS Code extension: MCP OAuth completes in browser but connector callback returns 403 · Issue #33151 · openai/codex · GitHub
Templates are authored by Kunavo. External product behavior depends on the linked sources and your account settings.