Skip to main content
Glama

GitHub See MCP Server

by JesusMaster
Dockerfile1.6 kB
# ---- Build Stage ---- FROM node:22.18 AS builder WORKDIR /app # Install pnpm globally RUN npm install -g pnpm --ignore-scripts # Copy package definition and lock file COPY package.json pnpm-lock.yaml ./ # Install ALL dependencies (including devDependencies) RUN pnpm install --ignore-scripts # Copy the rest of the application source code COPY . ./ # Build the TypeScript code RUN pnpm run build # Prune dev dependencies after build (optional but good practice for copying node_modules later if needed) # RUN pnpm prune --prod # Note: We will reinstall prod deps cleanly in the final stage instead of copying node_modules # ---- Production Stage ---- FROM node:22.18 # Install curl for health checks RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* WORKDIR /app # Install pnpm globally (needed again in this stage if using pnpm commands) RUN npm install -g pnpm --ignore-scripts # Copy package definition and lock file from the builder stage COPY --from=builder /app/package.json /app/pnpm-lock.yaml ./ # Install ONLY production dependencies RUN pnpm install --prod --ignore-scripts # Copy the built application code from the builder stage COPY --from=builder /app/dist ./dist ARG MCP_SSE_PORT=3200 ARG MCP_TIMEOUT=60000 # Expose the port the app runs on EXPOSE ${MCP_SSE_PORT} # Define the command to run your app using Node.js CMD ["node", "dist/main.js"]

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/JesusMaster/github-see-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server