Skip to main content
Glama

MCP Server POC

by ranit532
setup.shโ€ข1.89 kB
#!/bin/bash # MCP Server POC Setup Script # This script helps set up the development environment set -e echo "๐Ÿš€ Setting up MCP Server POC..." # Check Python version echo "๐Ÿ“‹ Checking Python version..." python_version=$(python3 --version 2>&1 | awk '{print $2}') required_version="3.10" if ! python3 -c "import sys; exit(0 if sys.version_info >= (3, 10) else 1)"; then echo "โŒ Python 3.10+ is required. Found: $python_version" exit 1 fi echo "โœ… Python version: $python_version" # Create virtual environment if [ ! -d "venv" ]; then echo "๐Ÿ“ฆ Creating virtual environment..." python3 -m venv venv else echo "โœ… Virtual environment already exists" fi # Activate virtual environment echo "๐Ÿ”Œ Activating virtual environment..." source venv/bin/activate # Upgrade pip echo "โฌ†๏ธ Upgrading pip..." pip install --upgrade pip # Install dependencies echo "๐Ÿ“ฅ Installing dependencies..." pip install -r requirements.txt # Install dev dependencies (optional) read -p "Install development dependencies? (y/n) " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]]; then echo "๐Ÿ“ฅ Installing development dependencies..." pip install -r requirements-dev.txt fi # Create .env file if it doesn't exist if [ ! -f ".env" ]; then echo "๐Ÿ“ Creating .env file..." cp .env.example .env echo "โœ… Created .env file. You can edit it to customize settings." fi # Run tests read -p "Run tests? (y/n) " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]]; then echo "๐Ÿงช Running tests..." pytest -v || echo "โš ๏ธ Some tests failed, but setup is complete" fi echo "" echo "โœ… Setup complete!" echo "" echo "To get started:" echo " 1. Activate virtual environment: source venv/bin/activate" echo " 2. Run the server: python -m src.server" echo " 3. Or run example client: python examples/example_client.py" echo "" echo "For more information, see README.md"

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/ranit532/MCP-server'

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