Skip to content

Docker-based MCP server not working #126

@jcleigh

Description

@jcleigh

Describe the bug

I've tried setting up a Docker-based MCP server on both Windows Terminal and macOS (arm64) iTerm2 and neither one will launch the Docker container or connect to an already running container.

MCP server setup (using /mcp add):

  • Server Type: Local
  • Command: docker
  • Args: run, -i, --rm, -e API_KEY=<redacted>, ghcr.io/<redacted>/<redacted>-mcp-server:latest
  • Env vars: none - I'm passing them in the Args
  • Tools: *

When I start a copilot session, it will say:

● Configured MCP servers: <the name of the server I just added>
● Connected to GitHub MCP Server

I've tried a couple variations of this and also by editing the mcp.json file with no success. This same configuration works flawlessly for Copilot Coding Agent or locally in VS Code.

Maybe Docker isn't a supported server type, but I hope it is since it works for coding agent!

Affected version

0.0.228 - 0.0.330

Steps to reproduce the behavior

  1. Add a Docker-based MCP server via /mcp add
  2. Start a copilot session

Expected behavior

The server should start and/or connect and the tools should be available to Copilot

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions