Skip to content

Codex mcp connection error #1633

@Skyline-23

Description

@Skyline-23

Describe the bug

When try to connect mcp in codex, error occurred

Affected version

codex version 0.73.0
github remote server mcp

Steps to reproduce the behavior

edit config.toml, and run codex

Expected vs actual behavior

⚠ MCP client for `github` failed to start: MCP startup failed: Environment
  variable
  github_pat_(token) for MCP server 'github' is not set

⚠ MCP startup incomplete (failed: github)

Here is my my config.toml

[mcp_servers.github]
url = "https://api.githubcopilot.com/mcp/"
bearer_token_env_var = "github_pat_(token)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions