Skip to content

Commit dacb1c2

Browse files
committed
remove connection string
1 parent e91e6a3 commit dacb1c2

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.smithery/Dockerfile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
FROM node:23-bookworm-slim
22

3-
# Install MongoDB Community Edition
4-
RUN apt-get update && \
5-
apt-get install -y gnupg curl python3 build-essential && \
6-
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor && \
7-
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 main" | tee /etc/apt/sources.list.d/mongodb-org-8.0.list && \
8-
apt-get update && \
9-
apt-get install -y mongodb-org && \
10-
apt-get clean && \
11-
rm -rf /var/lib/apt/lists/*
12-
133
WORKDIR /app
144

155
COPY ../ .
@@ -18,5 +8,4 @@ RUN npm ci
188

199
RUN npm run build
2010

21-
ENV MDB_MCP_CONNECTION_STRING mongodb://localhost:27017
2211
CMD ["sh", "-c", "mongod --fork --logpath /var/log/mongodb.log --dbpath /data/db && node dist/index.js"]

.smithery/smithery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ startCommand:
1919
"dist/index.js"
2020
],
2121
"env": {
22-
"MDB_MCP_CONNECTION_STRING": config.connectionString || "mongodb://localhost:27017"
22+
"MDB_MCP_CONNECTION_STRING": config.connectionString
2323
}
2424
})

0 commit comments

Comments
 (0)