Repository navigation
fix(docker): build the image from the repository and fix the documented setups - #214
Merged
Merged
Conversation
…ed setups Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AstraBert
approved these changes
Nov 24, 2026
AstraBert
left a comment
There was a problem hiding this comment.
Nice! A good add-on would be to actually build and distribute the docker image as a GHCR image from our github actions, but that's not strictly required
Contributor
Author
|
@AstraBert thanks! I like the idea, it would also make the VS Code Docker badge work without a local build. Since we're planning to sunset the server, do you think it's worth adding a new distribution channel now? If yes, I'll add the workflow before the 0.9.0 release so the first image matches it. |
This was referenced Nov 24, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #75, #77, and #149. Thanks @MH0386 for #75 and #77, which pointed at the same problems.
Problem
The Dockerfile installs
mcp-server-qdrantfrom PyPI, then runs it withuvx. I built it frommasterand checked each documented setup:masteruvxignores that install and downloads every dependency from PyPI again, on every start, at whatever version is currentdocker runexample127.0.0.1inside the container, so it can't be reached (HTTP 000). The example setsFASTMCP_HOST, which fastmcp 2.7 doesn't readQDRANT_LOCAL_PATH)If 'local_path' is set, 'location' and 'api_key' must be None, because the Dockerfile setsQDRANT_URL=""andQDRANT_API_KEY=""docker run -i)initializeon stdinChanges
Dockerfile
uv sync --locked --no-dev, so the image has the dependency versions fromuv.lock, the ones CI tests. Nothing is downloaded when the container starts.python:3.13-slim: the newest Python version CI tests. All dependencies have 3.14 wheels, but CI doesn't run 3.14.FASTMCP_HOST=0.0.0.0, so the server is reachable without extra flags.QDRANT_URLandQDRANT_API_KEYto empty strings, so local mode works.mcp, uid 1000)./datais owned by that user, so a volume mounted there is writable.UV_PYTHON_DOWNLOADS=neverkeeps it on the image's Python..dockerignore, so.venv,.git, and caches stay out of the build context.The default command is still
mcp-server-qdrant --transport sse, so existingdocker runsetups keep working.README
mcp-server-qdrant --transport stdioand drop the unused-p 8000:8000.FASTMCP_HOST.QDRANT_URLorQDRANT_LOCAL_PATH: with neither, the server connects tolocalhost:6333, which inside the container is the container itself. To reach Qdrant on the host, usehost.docker.internal.Behavior change
The image now runs the code it was built from, instead of downloading the latest PyPI release each time it starts. To update, rebuild the image.
Testing
Built the image and checked each case against Qdrant 1.20.0 in Docker:
mcp.0.0.0.0.QDRANT_URLandCOLLECTION_NAMEset:qdrant-storeandqdrant-findwork.QDRANT_LOCAL_PATH=/dataon a named volume: store and find work, and the data is still there in a new container.qdrant-findworks. I drove it with a client script, not VS Code itself.host.docker.internal(Docker Desktop on macOS).No Python code changes; the test suite and
pre-commitpass.🤖 Generated with Claude Code