GrepBoard/매뉴얼
605 편 ·

Codex 「MCP client for … timed out」 해결하기

·시험 환경 Codex CLI 0.163.0 · Ubuntu 24.04 · Node 24 (설정 오류 출력은 직접 재현, 시간 초과 동작은 공식 문서 기준)·시험 범위 ↓·6 단계

Codex 가 MCP 서버를 시작하다 10초 만에 포기할 때 startup_timeout_sec 을 늘리는 법과, 섹션 이름·TOML 문법 오류처럼 시간 초과로 오해하기 쉬운 설정 실수를 가려냅니다.

output
MCP client for `playwright` timed out after 10 seconds. Add or adjust `startup_timeout_sec` in your config.toml:

이 메시지가 나오면 Codex 가 MCP 서버의 시작 응답을 10초 안에 받지 못했다는 뜻입니다. 서버가 느린 것인지, 설정이 잘못되어 아예 읽히지 않은 것인지부터 나눕니다.

[1] 설정이 읽히는지 먼저 봅니다. 서버가 목록에 보여야 합니다.

console
$ codex mcp list$ codex mcp get playwright

[2] 서버 명령을 터미널에서 직접 실행해 시작 시간을 잽니다. npx -y 처럼 패키지를 내려받는 서버는 첫 실행이 가장 느립니다.

console
$ time npx -y @playwright/mcp@latest --help

[3] 해당 서버 표에 startup_timeout_sec 을 넣습니다. 단위는 초이고 기본값은 10입니다. 도구 실행 제한 tool_timeout_sec 은 따로 있고 기본값은 60입니다(공식 문서).

~/.codex/config.toml
[mcp_servers.playwright]command = "npx"args = ["-y", "@playwright/mcp@latest"]startup_timeout_sec = 60
output
Error: failed to load bootstrap configuration Caused by:    invalid type: string "30", expected f64    in `mcp_servers.x.startup_timeout_sec`

[4] 섹션 이름은 mcp_servers 입니다. 단수 mcp_server 로 쓰면 codex mcp list 는 오류 없이 비어 있다고만 답합니다. 이 때문에 설정한 서버가 아예 안 뜨는 것을 시간 초과로 착각하기 쉽습니다.

~/.codex/config.toml
[mcp_server.x]command = "a"
console
$ codex mcp listNo MCP servers configured yet. Try `codex mcp add my-tool -- my-command`.

--strict-config 를 붙이면 모르는 키를 오류로 알려 줍니다. 이 옵션은 codex mcp 에는 쓸 수 없고(Error: --strict-config is not supported for codex mcp`), exec` 나 대화형 실행에 붙입니다.

console
$ codex --strict-config exec "hi"Error loading config.toml:~/.codex/config.toml:1:2: unknown configuration field `mcp_server`  |1 | [mcp_server.x]

[5] Windows 경로를 큰따옴표 문자열에 그대로 쓰면 TOML 이스케이프 오류가 납니다. 작은따옴표 리터럴 문자열이나 슬래시를 씁니다.

~/.codex/config.toml
[mcp_servers.x]command = "C:\Users\a"
output
Error: failed to load bootstrap configuration Caused by:    0: ~/.codex/config.toml:2:14: too few unicode value digits, expected unicode hexadecimal value
~/.codex/config.toml
command = 'C:\Tools\server.exe'

[6] 제한을 늘려도 계속 실패하면 서버 자체가 뜨지 않는 것입니다. 2단계의 명령을 그대로 실행해 오류를 봅니다. 이슈 openai/codex#11851 에서는 playwright 서버가 10초 시간 초과로 실패했는데, 작성자가 쓰던 프록시가 서버의 연결을 가로막은 것이 원인이었고 프록시를 조정해 해결했습니다. 시간 값이 아니라 네트워크가 원인일 수 있습니다.

#codex#mcp#troubleshooting