Skip to content

Cannot Use Docker Daemon on Darwin #1072

@rrpolanco

Description

@rrpolanco

Describe the bug

When trying to run a local, dockerized mcp server I get the error: - *mcp.Toolset start failed: failed to initialize MCP client: Docker Desktop is not Running.

toolsets:
  - type: mcp
    command: docker
    args:
      [
        "run",
        "-i",
        "--rm",
        "-e",
        "JIRA_URL",
        "-e",
        "JIRA_USERNAME",
        "-e",
        "JIRA_API_TOKEN",
        "ghcr.io/sooperset/mcp-atlassian:latest",
      ]
    env:
      JIRA_URL: "<JIRA_COMPANY_URL"
      JIRA_USERNAME: "Rafael Polanco"
      JIRA_API_TOKEN: "<API-TOKEN>"

Why is Docker Desktop required when using type: mcp + command: docker?

if c.command == "docker" && runtime.GOOS != "linux" && !desktop.IsDockerDesktopRunning(ctx) {

Similar to Linux, I'd like use the docker daemon on MacOS and not be required to use DD.

Version affected

cagent version v1.11.0
Commit: 89a2cc1b91e6f610cdfebc000fe613fa4dbae130

How To Reproduce

agents:
  root:
    model: openai/gpt-5-mini
    description: JIRA Assistant
    instruction: |
      You're a helpful Jira assistant that can search and lookup Jira tickets
    toolsets:
      - type: mcp
        command: docker
        args:
          [
            "run",
            "-i",
            "--rm",
            "-e",
            "JIRA_URL",
            "-e",
            "JIRA_USERNAME",
            "-e",
            "JIRA_API_TOKEN",
            "ghcr.io/sooperset/mcp-atlassian:latest",
          ]
        env:
          JIRA_URL: "<JIRA_URL>"
          JIRA_USERNAME: "Rafael Polanco"
          JIRA_API_TOKEN: "<classic-api-token>"

Expectation

I'd like to use the docker daemon only on MacOS.

Screenshots

Image

OS and Terminal type

MacOS 15.7.1 and kiTTy terminal

Additional context

Any other info you consider useful can be included here

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions