Skip to main content
Glama

Neo N3 MCP Server

by r3e-network
Dockerfile1.34 kB
# Multi-stage build for Neo N3 MCP Server FROM node:18-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 # Copy source code COPY src/ ./src/ # Build the application RUN npm run build # Production stage FROM node:18-alpine AS production # Install dumb-init for proper signal handling RUN apk add --no-cache dumb-init # Create app user RUN addgroup -g 1001 -S nodejs && \ adduser -S neo-mcp -u 1001 # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install only production dependencies RUN npm ci --omit=dev && npm cache clean --force # Copy built application from builder stage COPY --from=builder /app/dist ./dist # Copy configuration files COPY --chown=neo-mcp:nodejs config/ ./config/ # Create necessary directories RUN mkdir -p logs wallets && \ chown -R neo-mcp:nodejs logs wallets # Switch to non-root user USER neo-mcp # Expose port 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 application CMD ["node", "dist/index.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/r3e-network/neo-n3-mcp'

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