Skip to content

[Bug] Docker MCP Toolkit support not working #228

Description

@ww2283

with Docker MCP Toolkit, it should be straightforward . However, the following settings does not work:

{
  "mcpServers": {
    "MCP_DOCKER": {
      "transport": "stdio",
      "enabled": true,
      "command": "docker",
      "args": [
        "mcp",
        "gateway",
        "run"
      ],
      "env": {},
      "url": null,
      "extraData": null,
      "proxy": null,
      "headers": null,
      "exclude_tools": []
    }
  }
}

Following is the message:

| dive_mcp_host.host.errors.McpSessionGroupError: Client initialization error for MCP_DOCKER: (ExceptionGroup('unhandled errors in a TaskGroup', [TimeoutError()]),) (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/dive_mcp_host/host/tools/hack/stdio_server.py", line 154, in stdio_client | yield read_stream, write_stream, process.pid | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/dive_mcp_host/host/tools/mcp_server.py", line 452, in _stdio_client_watcher | ClientSession( | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/mcp/shared/session.py", line 218, in __aexit__ | return await self._task_group.__aexit__(exc_type, exc_val, exc_tb) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 772, in __aexit__ | raise BaseExceptionGroup( | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/anyio/streams/memory.py", line 111, in receive | return self.receive_nowait() | ^^^^^^^^^^^^^^^^^^^^^ | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/anyio/streams/memory.py", line 106, in receive_nowait | raise WouldBlock | anyio.WouldBlock | | During handling of the above exception, another exception occurred: | | Traceback (most recent call last): | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/dive_mcp_host/host/tools/mcp_server.py", line 219, in _init_tool_info | self._initialize_result = await session.initialize() | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/mcp/client/session.py", line 123, in initialize | result = await self.send_request( | ^^^^^^^^^^^^^^^^^^^^^^^^ | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/mcp/shared/session.py", line 272, in send_request | response_or_error = await response_stream_reader.receive() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/anyio/streams/memory.py", line 119, in receive | await receive_event.wait() | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 1774, in wait | await self._event.wait() | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/asyncio/locks.py", line 212, in wait | await fut | asyncio.exceptions.CancelledError | | The above exception was the direct cause of the following exception: | | Traceback (most recent call last): | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/dive_mcp_host/host/tools/mcp_server.py", line 458, in _stdio_client_watcher | await self._init_tool_info(session) | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/site-packages/dive_mcp_host/host/tools/mcp_server.py", line 217, in _init_tool_info | async with asyncio.timeout(10): | ^^^^^^^^^^^^^^^^^^^ | File "/Applications/Dive.app/Contents/Resources/python/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__ | raise TimeoutError from exc_val | TimeoutError +------------------------------------

Activity

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 working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions