FROM node:22-slim
WORKDIR /app
# Copy all files first for Smithery build process
COPY . .
# Install dependencies (if package.json exists)
RUN if [ -f package.json ]; then npm ci; fi
# Build the Smithery MCP server using their CLI
RUN npx -y @smithery/cli@1.2.9 build -o .smithery/index.cjs
# Expose port for Smithery
EXPOSE 8080
# Start the built Smithery server
CMD ["node", ".smithery/index.cjs"]
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/LeGenAI/mcp-magma-handbook'
If you have feedback or need assistance with the MCP directory API, please join our Discord server