FROM node:20-alpine
WORKDIR /app
# Copy package files first
COPY package*.json ./
COPY tsconfig.json ./
# Install dependencies only (skip prepare script during install)
RUN npm ci --ignore-scripts
# Copy source code after dependencies are installed
COPY src/ ./src/
# Now build the application
RUN npm run build
# Create non-root user
RUN addgroup -g 1001 -S espn && \
adduser -S espn -u 1001
# Change ownership of the app directory
RUN chown -R espn:espn /app
USER espn
# Set transport mode to HTTP
ENV TRANSPORT=http
# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD node -e "process.exit(0)"
# Expose port for HTTP transport (Smithery requires 8081)
EXPOSE 8081
# Default command - use modern server in HTTP mode
CMD ["node", "build/modern-server.js"]
# Labels for better container management
LABEL maintainer="ESPN MCP Team"
LABEL version="2.0.0"
LABEL description="ESPN MCP Server with HTTP Transport"
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/DynamicEndpoints/espn-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server