Skip to main content
Glama

MoEngage Documentation MCP Server

publish.shโ€ข2.41 kB
#!/bin/bash echo "๐Ÿš€ Publishing MoEngage Documentation MCP Server to npm..." # Colors for output GREEN='\033[0;32m' BLUE='\033[0;34m' YELLOW='\033[1;33m' RED='\033[0;31m' NC='\033[0m' # No Color # Check if we're logged into npm if ! npm whoami &> /dev/null; then echo -e "${RED}โŒ Not logged into npm. Please run 'npm login' first.${NC}" exit 1 fi echo -e "${GREEN}โœ“ Logged into npm as $(npm whoami)${NC}" # Build the project echo -e "${BLUE}๐Ÿ”จ Building project...${NC}" npm run build # Check if build was successful if [ ! -f "dist/index.js" ]; then echo -e "${RED}โŒ Build failed. dist/index.js not found.${NC}" exit 1 fi echo -e "${GREEN}โœ“ Build completed successfully${NC}" # Test the MCP server echo -e "${BLUE}๐Ÿงช Testing MCP server...${NC}" timeout 5s node dist/index.js & SERVER_PID=$! sleep 2 # Test with a simple MCP request echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | node dist/index.js > /dev/null 2>&1 if [ $? -eq 0 ]; then echo -e "${GREEN}โœ“ MCP server test passed${NC}" else echo -e "${YELLOW}โš  MCP server test failed, but continuing...${NC}" fi # Kill test server kill $SERVER_PID 2>/dev/null || true # Check current version CURRENT_VERSION=$(node -p "require('./package.json').version") echo -e "${BLUE}๐Ÿ“ฆ Current version: ${CURRENT_VERSION}${NC}" # Ask for new version echo -e "${BLUE}๐Ÿ“ Enter new version (or press Enter to keep current):${NC}" read -r NEW_VERSION if [ -z "$NEW_VERSION" ]; then NEW_VERSION=$CURRENT_VERSION fi # Update version in package.json npm version $NEW_VERSION --no-git-tag-version echo -e "${BLUE}๐Ÿ“ค Publishing to npm...${NC}" npm publish if [ $? -eq 0 ]; then echo "" echo -e "${GREEN}๐ŸŽ‰ Successfully published @moengage/documentation-mcp-server@${NEW_VERSION}${NC}" echo "" echo -e "${BLUE}๐Ÿ“‹ Installation instructions:${NC}" echo "" echo "Users can now install your MCP server with:" echo "" echo "1. Clone the repository:" echo " git clone https://github.com/poojitha-rachuri/moengage-documentation-mcp-server.git" echo "" echo "2. Run the installation script:" echo " ./install.sh" echo "" echo "3. Configure their IDE to use the MCP server" echo "" echo -e "${GREEN}โœจ Your MCP server is now available for easy installation!${NC}" else echo -e "${RED}โŒ Failed to publish to npm${NC}" exit 1 fi

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/poojitha-rachuri/moengage-documentation-mcp-server'

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