Skip to content

Codex CLI on Windows 11: MCP server (Context7) fails with “request timed out” #2555

@wbdb

Description

@wbdb

What version of Codex is running?

0.23.0-0.31.0

Which model were you using?

GPT-5

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

OS: Windows 11 Pro (PowerShell 7 / Windows Terminal)
Codex CLI: 0.23.0
Node.js: 22.17.0, npm: 11.5.1
Context7 MCP: @upstash/context7-mcp (local)
Location of config: C:\Users\Name\.codex\config.toml

I tried these variations in my config.toml:

[mcp_servers.context7]
args = ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
command = "npx"

=> 🖐 MCP client for context7 failed to start: program not found

[mcp_servers.context7]
command = "cmd"
args    = ["/c","npx","-y","@upstash/context7-mcp"]

=> 🖐 MCP client for context7 failed to start: request timed out

[mcp_servers.context7]
command = "C:\\Program Files\\nodejs\\npx.cmd"
args    = ["-y","@upstash/context7-mcp@latest","--transport","stdio"]

=> 🖐 MCP client for context7 failed to start: request timed out

[mcp_servers.context7]
command = "C:\\Program Files\\nodejs\\node.exe"
args = [
  "C:\\Users\\Name\\AppData\\Roaming\\npm\\node_modules\\@upstash\\context7-mcp\\dist\\index.js",
  "--transport","stdio"
]

[mcp_servers.context7.env]
LOCALAPPDATA = 'C:\\Users\\Name\\AppData\\Local'
APPDATA = 'C:\\Users\\Name\\AppData\\Roaming'
PROGRAMFILES = 'C:\\Program Files'
"PROGRAMFILES(X86)" = 'C:\\Program Files (x86)'
SYSTEMROOT = 'C:\\Windows'
WINDIR = 'C:\\Windows'
HOMEDRIVE = 'C:'
HOMEPATH = '\\Users\\Name'
HOME = 'C:\\Users\\Name'

=> 🖐 MCP client for context7 failed to start: request timed out

What is the expected behavior?

Using MCP Context7

What do you see instead?

MCP Errors

Additional information

Microsoft has invested so much in OpenAI, I don't understand why Windows is being treated so shabbily given its market share.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions