docker / docker/compose-for-agents
adk sample: Client error '401 Unauthorized'
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1k
- Forks
- 470
- Avg merge
- 2h 39m
- Merged PRs (30d)
- 1
Description
Raised in https://github.com/docker/docs/issues/25620. I was able to duplicate the issue and proposed fix.
The following error occurs when trying to run the adk sample.
Client error '401 Unauthorized' for url 'http://mcp-gateway:8811/sse'
Adding the following to the compose file resolves the error.
- --allow-unauthenticated
services:
adk:
build:
context: .
ports:
# expose port for web interface
- 8080:8080
environment:
# point adk at the MCP gateway
- MCPGATEWAY_ENDPOINT=http://mcp-gateway:8811/sse
depends_on:
- mcp-gateway
models:
gemma3:
endpoint_var: MODEL_RUNNER_URL
model_var: MODEL_RUNNER_MODEL
mcp-gateway:
# mcp-gateway secures your MCP servers
image: docker/mcp-gateway:latest
use_api_socket: true
command:
- --transport=sse
# add any MCP servers you want to use
- --servers=duckduckgo
- --allow-unauthenticated
models:
gemma3:
# pre-pull the model when starting Docker Model Runner
model: ai/gemma3:4B-Q4_0
context_size: 10000 # 3.5 GB VRAM
# increase context size to handle search results
# context_size: 131000 # 7.6 GB VRAM
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the adk sample's Compose file and run the sample to reproduce the 401 Unauthorized error from the MCP gateway SSE endpoint. Verify the Compose configuration allows the gateway connection without authentication and confirm the sample starts successfully without the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose
- Domain
- authentication, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100