Skip to main content
Glama

Aptos Blockchain MCP

Dockerfile1.34 kB
# Multi-stage build for Aptos MCP Server FROM node:20-alpine AS builder # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ COPY tsconfig.json ./ # Install ALL dependencies (including dev dependencies for building) RUN npm ci --ignore-scripts # Copy source code COPY src/ ./src/ # Build the application RUN npm run build # Production stage FROM node:20-alpine AS production # Set working directory WORKDIR /app # Install dumb-init for proper signal handling RUN apk add --no-cache dumb-init # Create non-root user RUN addgroup -g 1001 -S nodejs && \ adduser -S aptos -u 1001 # Copy package files COPY package*.json ./ # Install only production dependencies RUN npm ci --omit=dev --ignore-scripts && \ npm cache clean --force # Copy built application from builder stage COPY --from=builder /app/build ./build # Copy other necessary files COPY smithery.yaml ./ # Change ownership to non-root user RUN chown -R aptos:nodejs /app USER aptos # Expose port (Smithery will set this via PORT env var) EXPOSE 3000 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD node -e "console.log('Health check passed')" || exit 1 # Use dumb-init to handle signals properly ENTRYPOINT ["dumb-init", "--"] # Start the HTTP server CMD ["node", "build/http-server.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/punkpeye/aptos-mcp'

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