Skip to content

Commit 21f1d3e

Browse files
Merge remote-tracking branch 'origin/main' into fix/MCP-21-avoid-memory-overflow
2 parents 819ed01 + dd36b1a commit 21f1d3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1938
-407
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ jobs:
9999
env:
100100
GH_TOKEN: ${{ github.token }}
101101
run: |
102-
gh release create ${{ needs.check.outputs.VERSION }} --title "${{ needs.check.outputs.VERSION }}" --generate-notes --target ${{ github.sha }} ${{ (steps.npm-tag.outputs.RELEASE_CHANNEL != 'latest' && '--prerelease') || ''}}
102+
gh release create ${{ needs.check.outputs.VERSION }} --title "${{ needs.check.outputs.VERSION }}" --generate-notes --target ${{ github.sha }} ${{ (needs.check.outputs.RELEASE_CHANNEL != 'latest' && '--prerelease') || ''}}

.smithery/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
# ----- Build Stage -----
33
FROM node:lts-alpine AS builder
44

5-
RUN adduser -D mcpuser
6-
USER mcpuser
5+
RUN addgroup -S mcp && adduser -S mcp -G mcp -s /sbin/nologin
6+
RUN chown -R mcp:mcp /home/mcp
7+
USER mcp
78

8-
WORKDIR /app
9+
WORKDIR /home/mcp
910

1011
# Copy package and configuration
1112
COPY ../package.json ../package-lock.json ../tsconfig.json ../tsconfig.build.json ./
@@ -18,9 +19,12 @@ RUN npm ci && npm run build
1819

1920
# ----- Production Stage -----
2021
FROM node:lts-alpine
22+
RUN addgroup -S mcp && adduser -S mcp -G mcp -s /sbin/nologin
23+
RUN chown -R mcp:mcp /dist
24+
USER mcp
2125

2226
# Copy built artifacts
23-
COPY --from=builder /app/dist ./dist
27+
COPY --from=builder /home/mcp/dist ./dist
2428

2529
# Copy package.json for production install
2630
COPY ../package.json ../package-lock.json ./

README.md

Lines changed: 137 additions & 63 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 71 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mongodb-mcp-server",
33
"description": "MongoDB Model Context Protocol Server",
4-
"version": "0.3.1-prerelease.1",
4+
"version": "1.0.0",
55
"type": "module",
66
"exports": {
77
".": {
@@ -115,7 +115,7 @@
115115
"oauth4webapi": "^3.8.0",
116116
"openapi-fetch": "^0.14.0",
117117
"ts-levenshtein": "^1.0.7",
118-
"yargs-parser": "^22.0.0",
118+
"yargs-parser": "^21.1.1",
119119
"zod": "^3.25.76"
120120
},
121121
"engines": {

0 commit comments

Comments
 (0)