Mcp-server has no network access even with network access flags enabled

Resolved 💬 1 comment Opened Dec 31, 2025 by chrisspen Closed Mar 29, 2026

What version of Codex is running?

codex-cli 0.77.0

What subscription do you have?

plus

Which model were you using?

gpt-5.2 auto

What platform is your computer?

Linux 6.8.0-90-generic x86_64 x86_64

What issue are you seeing?

Running codex mcp-server reports “Network access is restricted” even when started with:

-c 'sandbox_permissions=["disk-full-read-access","network-full-access"]'
-c 'network_access="enabled"'

What steps can reproduce the bug?

  1. Run: codex mcp-server -c 'sandbox_permissions=["disk-full-read-access","network-full-access"]' -c 'network_access="enabled"'
  2. Start a session and attempt a network action (e.g., git fetch/push).
  3. Codex replies that network access is restricted.

What is the expected behavior?

Network access should be enabled.

Additional information

I also tried --enable network / -c features.network=true fails with:
Error: Unknown feature flag: network

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗