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?
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:Could you please add Codex-specific instructions or sandbox configurations to set the MCP up reliably?