Skip to content

Authentication disabled as docker container #243

@arty-hlr

Description

@arty-hlr

Hi,

When run as a docker container, the logs show the following:

- Reading configuration...
  - Reading catalog from [https://desktop.docker.com/mcp/catalog/v3/catalog.yaml]
- Configuration read in 201.239896ms
- Using images:
  - mcp/time@sha256:9c46a918633fb474bf8035e3ee90ebac6bcf2b18ccb00679ac4c179cba0ebfcf
> Images pulled in 1.391281ms
- Those servers are enabled: time
- Listing MCP tools...
  - Running mcp/time with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 500Mb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=time -l docker-mcp-transport=stdio --network docker_bridge]
  > time: (2 tools)
> 2 tools listed in 742.458079ms
> Initialized in 946.053754ms
> Start streaming server on port 8811
> Gateway URL: http://localhost:8811/mcp
> Authentication disabled (running in container)

and there doesn't seem to be a way to re-enable authentication with a bearer token when the mcp gateway is run as a container. Am I missing something, if not is that intended / could this be fixed so that the container also gets authentication?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions