Skip to content

MCP_DOCKER #5805

Closed
Closed

Description

@AmeerHamza-FT

What version of Codex is running?

48

What subscription do you have?

Pro

Which model were you using?

codex high

What platform is your computer?

Windows with Jetbrains

What issue are you seeing?

MCP client for MCP_DOCKER failed to start: handshaking with MCP server failed: connection closed: initialize response

• Codex logs uploaded. Please open an issue using the following URL:

https://github.com/openai/codex/issues/new?template=2-bug-report.yml&steps=Uploaded%20thread:%20019a248d-c6cc-7ea1-8ab6-5378f1373195

Or mention your thread ID 019a248d-c6cc-7ea1-8ab6-5378f1373195 in an existing issue.

What steps can reproduce the bug?

Uploaded thread: 019a248d-c6cc-7ea1-8ab6-5378f1373195

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    mcpIssues related to the use of model context protocol (MCP) servers
    on Oct 27, 2025
  2. gpeal commented on Oct 28, 2025

    @gpeal
    Contributor

    What do you have in your config.toml?

  3. ManuelReschke commented on Oct 30, 2025

    @ManuelReschke

    I have the same issue with Windows 11 and codex cli 0.50

    config.toml

    model = 'gpt-5-codex'
    model_reasoning_effort = 'medium'
    windows_wsl_setup_acknowledged = true
    
    [mcp_servers]
    [mcp_servers.MCP_DOCKER]
    command = 'docker.exe'
    args = ['mcp', 'gateway', 'run']
    
    [projects]
    [projects.'...........................................']
    trust_level = 'trusted'
    

    Error im log.

    �[2m2025-10-30T08:09:33.496697Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): panic: unable to get 'ProgramData' [recovered]
    �[2m2025-10-30T08:09:33.496714Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	panic: unable to get 'ProgramData'
    �[2m2025-10-30T08:09:33.496717Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 
    �[2m2025-10-30T08:09:33.496719Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): goroutine 1 [running]:
    �[2m2025-10-30T08:09:33.496721Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/docker/mcp-gateway/pkg/desktop.init.OnceValue[...].func2.1()
    �[2m2025-10-30T08:09:33.496723Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	sync/oncefunc.go:54 +0x69
    �[2m2025-10-30T08:09:33.496725Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): panic({0x13573e0?, 0xc0003e8490?})
    �[2m2025-10-30T08:09:33.496726Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	runtime/panic.go:792 +0x132
    �[2m2025-10-30T08:09:33.496728Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/docker/mcp-gateway/pkg/desktop.init.func1()
    �[2m2025-10-30T08:09:33.496741Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	github.com/docker/mcp-gateway/pkg/desktop/paths.go:17 +0x145
    �[2m2025-10-30T08:09:33.496743Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/docker/mcp-gateway/pkg/desktop.init.OnceValue[...].func2()
    �[2m2025-10-30T08:09:33.496745Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	sync/oncefunc.go:57 +0x8a
    �[2m2025-10-30T08:09:33.496747Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): sync.(*Once).doSlow(0xc00059f890?, 0x2021df?)
    �[2m2025-10-30T08:09:33.496749Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	sync/once.go:78 +0xab
    �[2m2025-10-30T08:09:33.496750Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): sync.(*Once).Do(0x203dc0?, 0x269cfa0?)
    �[2m2025-10-30T08:09:33.496752Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	sync/once.go:69 +0x19
    �[2m2025-10-30T08:09:33.496754Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/docker/mcp-gateway/pkg/desktop.init.OnceValue[...].func3()
    �[2m2025-10-30T08:09:33.496756Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	sync/oncefunc.go:62 +0x5c
    �[2m2025-10-30T08:09:33.496757Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/docker/mcp-gateway/pkg/desktop.getAdminSettings()
    �[2m2025-10-30T08:09:33.496759Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	github.com/docker/mcp-gateway/pkg/desktop/features.go:48 +0x26
    �[2m2025-10-30T08:09:33.496764Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/docker/mcp-gateway/pkg/desktop.CheckFeatureIsEnabled({0x1871870, 0xc000283b80}, {0x15f4213, 0x16}, {0x15ec841, 0x12})
    �[2m2025-10-30T08:09:33.496767Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	github.com/docker/mcp-gateway/pkg/desktop/features.go:22 +0x47
    �[2m2025-10-30T08:09:33.496813Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/docker/mcp-gateway/cmd/docker-mcp/commands.Root.func1(0xc00011a000?, {0x26e68a0?, 0x4?, 0x15d79fa?})
    �[2m2025-10-30T08:09:33.496821Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	github.com/docker/mcp-gateway/cmd/docker-mcp/commands/root.go:55 +0xab
    �[2m2025-10-30T08:09:33.496823Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/spf13/cobra.(*Command).execute(0xc000119b08, {0xc000673430, 0x0, 0x0})
    �[2m2025-10-30T08:09:33.496825Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	github.com/spf13/cobra@v1.9.1/command.go:986 +0x939
    �[2m2025-10-30T08:09:33.496827Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/spf13/cobra.(*Command).ExecuteC(0xc00012f808)
    �[2m2025-10-30T08:09:33.496829Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	github.com/spf13/cobra@v1.9.1/command.go:1148 +0x46f
    �[2m2025-10-30T08:09:33.496830Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/spf13/cobra.(*Command).Execute(...)
    �[2m2025-10-30T08:09:33.496832Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	github.com/spf13/cobra@v1.9.1/command.go:1071
    �[2m2025-10-30T08:09:33.496871Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/docker/cli/cli-plugins/plugin.RunPlugin(0xc000780a00, 0xc0001cbb08, {{0x15d86f6, 0x5}, {0x15e16bb, 0xb}, {0x18525e8, 0x7}, {0x15ea948, 0x11}, ...})
    �[2m2025-10-30T08:09:33.496875Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	github.com/docker/cli@v28.2.2+incompatible/cli-plugins/plugin/plugin.go:80 +0x145
    �[2m2025-10-30T08:09:33.496925Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): github.com/docker/cli/cli-plugins/plugin.Run(0xc00059ff00, {{0x15d86f6, 0x5}, {0x15e16bb, 0xb}, {0x18525e8, 0x7}, {0x15ea948, 0x11}, {0x0, ...}})
    �[2m2025-10-30T08:09:33.496932Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	github.com/docker/cli@v28.2.2+incompatible/cli-plugins/plugin/plugin.go:95 +0x105
    �[2m2025-10-30T08:09:33.497026Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): main.main()
    �[2m2025-10-30T08:09:33.497037Z�[0m �[32m INFO�[0m MCP server stderr (docker.exe): 	github.com/docker/mcp-gateway/cmd/docker-mcp/main.go:33 +0x3e5
    �[2m2025-10-30T08:09:39.161381Z�[0m �[33m WARN�[0m MCP client for `MCP_DOCKER` failed to start: handshaking with MCP server failed: connection closed: initialize response
    
  4. etraut-openai commented on Jan 17, 2026

    @etraut-openai
    Contributor

    Closing out old bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) servers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions