-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Add Docker support for sample mcp servers #368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,108
−47
Merged
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
368e3b2
Add Dockerfiles for the 17 sample MCP servers
slimslenderslacks 9ff603a
Update dockerfiles for npx versions, gdrive env credential paths
4e8a8d2
Split production node_modules
bb0adaa
Allow filesystem to accept `DOCKER_ROOT_WORKSPACE`
308b71c
Remove env from postgres server
slimslenderslacks c64f8de
Config tweaks for docker
5865afb
Fix puppeteer docker container hanging
4034df7
Switch puppeteer stdin close from `process.exit` to `server.close`
0b36cb4
Revert filesystem back to original cli arg sandboxing
5451033
Update filesystem config for Docker
4904415
Update readmes to use new `mcp` namespace
70e19c4
Migrate python servers to mcp namespace
slimslenderslacks 066426c
Fix git and brave-search typos in README.md
slimslenderslacks e4ef637
fix indentation
slimslenderslacks 2b0b8af
Update src/puppeteer/README.md
slimslenderslacks 38c88d9
Bump puppeteer bullseye to bookworm
f630294
Get gdrive working in Docker
4fa1c47
Update fetch Docker to not have ux in final stage
slimslenderslacks 621919a
Switch to uv-less final stages
slimslenderslacks 071f41d
Remove step 6 for gdrive
ddd4860
Emit gdrive log on stderr to prevent rpc errors in claude desktop
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| FROM node:22.12-alpine as builder | ||
|
|
||
| COPY src/aws-kb-retrieval-server /app | ||
| COPY tsconfig.json /tsconfig.json | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| RUN --mount=type=cache,target=/root/.npm npm install | ||
|
|
||
| FROM node:22-alpine AS release | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY --from=builder /app/dist /app/dist | ||
| COPY --from=builder /app/package.json /app/package.json | ||
| COPY --from=builder /app/package-lock.json /app/package-lock.json | ||
|
|
||
| ENV NODE_ENV=production | ||
|
|
||
| RUN npm ci --ignore-scripts --omit-dev | ||
|
|
||
| ENTRYPOINT ["node", "dist/index.js"] |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| FROM node:22.12-alpine as builder | ||
|
|
||
| # Must be entire project because `prepare` script is run during `npm install` and requires all files. | ||
| COPY src/brave-search /app | ||
| COPY tsconfig.json /tsconfig.json | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| RUN --mount=type=cache,target=/root/.npm npm install | ||
|
|
||
| FROM node:22-alpine AS release | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY --from=builder /app/dist /app/dist | ||
| COPY --from=builder /app/package.json /app/package.json | ||
| COPY --from=builder /app/package-lock.json /app/package-lock.json | ||
|
|
||
| ENV NODE_ENV=production | ||
|
|
||
| RUN npm ci --ignore-scripts --omit-dev | ||
|
|
||
| ENTRYPOINT ["node", "dist/index.js"] |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| FROM node:22.12-alpine as builder | ||
|
|
||
| COPY src/everart /app | ||
| COPY tsconfig.json /tsconfig.json | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| RUN --mount=type=cache,target=/root/.npm npm install | ||
|
|
||
| FROM node:22-alpine AS release | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY --from=builder /app/dist /app/dist | ||
| COPY --from=builder /app/package.json /app/package.json | ||
| COPY --from=builder /app/package-lock.json /app/package-lock.json | ||
|
|
||
| ENV NODE_ENV=production | ||
|
|
||
| RUN npm ci --ignore-scripts --omit-dev | ||
|
|
||
| ENTRYPOINT ["node", "dist/index.js"] | ||
|
|
||
| CMD ["node", "dist/index.js"] |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| FROM node:22.12-alpine as builder | ||
|
|
||
| COPY src/everything /app | ||
| COPY tsconfig.json /tsconfig.json | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| RUN --mount=type=cache,target=/root/.npm npm install | ||
|
|
||
| FROM node:22-alpine AS release | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY --from=builder /app/dist /app/dist | ||
| COPY --from=builder /app/package.json /app/package.json | ||
| COPY --from=builder /app/package-lock.json /app/package-lock.json | ||
|
|
||
| ENV NODE_ENV=production | ||
|
|
||
| RUN npm ci --ignore-scripts --omit-dev | ||
|
|
||
| CMD ["node", "dist/index.js"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Use a Python image with uv pre-installed | ||
| FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim | ||
|
|
||
| # Install the project into `/app` | ||
| WORKDIR /app | ||
|
|
||
| # Enable bytecode compilation | ||
| ENV UV_COMPILE_BYTECODE=1 | ||
|
|
||
| # Copy from the cache instead of linking since it's a mounted volume | ||
| ENV UV_LINK_MODE=copy | ||
|
|
||
| # Install the project's dependencies using the lockfile and settings | ||
| RUN --mount=type=cache,target=/root/.cache/uv \ | ||
| --mount=type=bind,source=uv.lock,target=uv.lock \ | ||
| --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ | ||
| uv sync --frozen --no-install-project --no-dev | ||
|
|
||
| # Then, add the rest of the project source code and install it | ||
| # Installing separately from its dependencies allows optimal layer caching | ||
| ADD . /app | ||
| RUN --mount=type=cache,target=/root/.cache/uv \ | ||
| uv sync --frozen --no-dev | ||
|
|
||
| # Place executables in the environment at the front of the path | ||
| ENV PATH="/app/.venv/bin:$PATH" | ||
|
|
||
| # when running the container, add --db-path and a bind mount to the host's db file | ||
| ENTRYPOINT ["uvx" , "mcp-server-fetch"] | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.