Skip to content

linux: Codex requires special env_vars #13

Description

@Dev-iL

I was trying various things to get the mcp to work with Codex. The only thing that worked for me is setting the below in config.toml:

[mcp_servers.postgres]
command = "npx"
args = ["-y", "@microsoft/postgres-mcp", "run"]
enabled = true
env_vars = ["DBUS_SESSION_BUS_ADDRESS", "XDG_RUNTIME_DIR"]

Could you please add Codex-specific instructions or sandbox configurations to set the MCP up reliably?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions