Skip to main content
Glama
start_all.sh•2 kB
#!/bin/bash # Quick start script to launch MCP server and test UI echo "šŸš€ MCP Server Quick Start" echo "==========================" echo "" # Check if we're in the right directory if [ ! -f "src/agent_mcp/mcp_server.py" ]; then echo "āŒ Error: Please run this script from the agent-mcp-py directory" exit 1 fi # Function to cleanup on exit cleanup() { echo "" echo "šŸ›‘ Shutting down..." kill $MCP_PID 2>/dev/null kill $UI_PID 2>/dev/null exit 0 } trap cleanup INT TERM # Check if LangGraph agent is running echo "šŸ” Checking LangGraph agent..." if curl -s --max-time 2 http://localhost:2024/health > /dev/null 2>&1; then echo "āœ… LangGraph agent is running on port 2024" else echo "āš ļø LangGraph agent is not running on port 2024" echo " Please start your LangGraph agent first" echo "" read -p "Continue anyway? (y/n) " -n 1 -r echo "" if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1 fi fi echo "" echo "šŸš€ Starting MCP Server..." python src/agent_mcp/mcp_server.py & MCP_PID=$! sleep 2 # Check if MCP server started successfully if ps -p $MCP_PID > /dev/null; then echo "āœ… MCP Server running (PID: $MCP_PID)" else echo "āŒ Failed to start MCP Server" exit 1 fi echo "" echo "🌐 Starting Test UI Server..." cd web_ui python server.py & UI_PID=$! cd .. sleep 2 # Check if UI server started successfully if ps -p $UI_PID > /dev/null; then echo "āœ… Test UI Server running (PID: $UI_PID)" else echo "āŒ Failed to start Test UI Server" kill $MCP_PID 2>/dev/null exit 1 fi echo "" echo "✨ All services started successfully!" echo "" echo "šŸ“Š Service Status:" echo " • LangGraph Agent: http://localhost:2024" echo " • MCP Server: http://localhost:8000" echo " • Test UI: http://localhost:3005" echo "" echo "🌐 Open http://localhost:3005 in your browser to test" echo "" echo "Press Ctrl+C to stop all services" echo "" # Wait for user to stop wait

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/bmaranan75/mcp-shopping-assistant-py'

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