microsoft / microsoft/postgres-mcp

linux: Codex requires special env_vars

Open Beginner friendly
#13 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
25
Forks
1
Avg merge
2d 13h
Merged PRs (30d)
4

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the supplied config.toml example and investigate why Codex needs DBUS_SESSION_BUS_ADDRESS and XDG_RUNTIME_DIR for the postgres MCP setup. Add Codex-specific setup or sandbox guidance, and confirm that the documented configuration lets the MCP start reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, postgres
Domain
databases, tooling
Issue type
Documentation
Difficulty
2/5
Estimated time
Half a day
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.