Skip to main content
Glama

MCP Template

quickstart.sh2 kB
#!/bin/bash # MCP Template Quick Start Script # This script sets up the development environment and runs the server set -e # Exit on error echo "================================" echo "MCP Template - Quick Start" echo "================================" echo "" # Check Python version echo "Checking Python version..." python_version=$(python3 --version 2>&1 | awk '{print $2}') echo "Python version: $python_version" # Check if virtual environment exists if [ ! -d "venv" ]; then echo "" echo "Creating virtual environment..." python3 -m venv venv echo "Virtual environment created!" fi # Activate virtual environment echo "" echo "Activating virtual environment..." source venv/bin/activate # Install dependencies echo "" echo "Installing dependencies..." pip install -q --upgrade pip pip install -q -e ".[dev]" echo "Dependencies installed!" # Initialize configuration if not exists if [ ! -f "config/config.yaml" ] || [ ! -f ".env" ]; then echo "" echo "Initializing configuration..." python -m mcp_template.cli init echo "Configuration initialized!" else echo "" echo "Configuration already exists." fi # Run validation echo "" echo "Validating configuration..." python -m mcp_template.cli validate # Ask if user wants to run tests echo "" read -p "Run tests? (y/n) " -n 1 -r echo "" if [[ $REPLY =~ ^[Yy]$ ]]; then echo "Running tests..." pytest -v fi # Display next steps echo "" echo "================================" echo "Setup Complete!" echo "================================" echo "" echo "Next steps:" echo " 1. Edit config/config.yaml to customize your server" echo " 2. Copy .env.template to .env and set your environment variables" echo " 3. Run the server: python -m mcp_template.cli run" echo "" echo "Or use the Makefile commands:" echo " make run - Run the server" echo " make test - Run tests" echo " make check - Run all quality checks" echo "" echo "For more information, see README.md" echo ""

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/riteshsonawala/mcp-template'

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