#!/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