Skip to main content
Glama
by alphago2580
deploy.shβ€’1.71 kB
#!/bin/bash # Deployment script for smithery.ai set -e echo "πŸš€ Deploying Naramarket MCP Server to smithery.ai..." # Check if smithery CLI is installed if ! command -v smithery &> /dev/null; then echo "❌ Smithery CLI not found. Installing..." npm install -g @smithery/cli fi # Validate smithery.yaml echo "βœ… Validating smithery.yaml configuration..." if [ ! -f "smithery.yaml" ]; then echo "❌ smithery.yaml not found!" exit 1 fi # Check environment variables if [ -z "$NARAMARKET_SERVICE_KEY" ]; then echo "⚠️ Warning: NARAMARKET_SERVICE_KEY environment variable not set" echo " Make sure to set this secret in smithery.ai dashboard" fi # Build and test locally (optional) echo "πŸ”¨ Building Docker image for testing..." docker build -t naramarket-mcp:latest --target production . # Test the container locally echo "πŸ§ͺ Testing container locally..." docker run --rm -d -p 8000:8000 \ -e FASTMCP_TRANSPORT=http \ -e FASTMCP_HOST=0.0.0.0 \ -e PORT=8000 \ --name naramarket-test \ naramarket-mcp:latest # Wait for container to start sleep 5 # Test health endpoint if curl -f http://localhost:8000/mcp > /dev/null 2>&1; then echo "βœ… Local container test passed" else echo "❌ Local container test failed" docker logs naramarket-test docker stop naramarket-test exit 1 fi # Clean up test container docker stop naramarket-test # Deploy to smithery.ai echo "🌐 Deploying to smithery.ai..." smithery deploy echo "βœ… Deployment completed!" echo "πŸ“‹ Next steps:" echo " 1. Set NARAMARKET_SERVICE_KEY secret in smithery.ai dashboard" echo " 2. Test your deployed MCP server" echo " 3. Monitor logs and metrics in smithery.ai"

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/alphago2580/naramarketmcp'

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