FROM node:22-alpine AS builder
WORKDIR /app
# Install ripgrep
RUN apk add --no-cache ripgrep
# Copy package files
COPY package.json tsconfig.json ./
# Install dependencies (ignore package-lock.json for flexibility)
RUN npm install
# Copy source files
COPY *.ts ./
# Build TypeScript
RUN npm run build
# Production stage
FROM node:22-alpine
# Install ripgrep in runtime
RUN apk add --no-cache ripgrep
WORKDIR /app
# Copy built files and dependencies
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/package.json ./package.json
# Install production dependencies only
RUN npm install --omit=dev
# Create workspace directory
RUN mkdir -p /workspace
# Set working directory to workspace
WORKDIR /workspace
# Run the server with /workspace as the allowed directory
ENTRYPOINT ["node", "/app/dist/index.js", "/workspace"]
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lofcz/mcp-filesystem-smart'
If you have feedback or need assistance with the MCP directory API, please join our Discord server