Skip to main content
Glama

Context Pods

by conorluddy
status.shโ€ข4.91 kB
#!/bin/bash # Context-Pods Meta-MCP Server Status Check # Checks the status of all server components echo "๐Ÿ“Š Context-Pods Meta-MCP Server Status Check" echo "==============================================" # Get script directory SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" cd "$PROJECT_ROOT" # Check Node.js echo "" echo "๐ŸŸข Node.js Environment:" if command -v node &> /dev/null; then NODE_VERSION=$(node -v) echo " โœ… Node.js version: $NODE_VERSION" NODE_MAJOR=$(echo $NODE_VERSION | cut -d'v' -f2 | cut -d'.' -f1) if [ "$NODE_MAJOR" -ge 18 ]; then echo " โœ… Version requirement met (18+)" else echo " โŒ Version requirement NOT met (need 18+)" fi else echo " โŒ Node.js not found" fi # Check npm if command -v npm &> /dev/null; then NPM_VERSION=$(npm -v) echo " โœ… npm version: $NPM_VERSION" else echo " โŒ npm not found" fi # Check dependencies echo "" echo "๐Ÿ“ฆ Dependencies:" if [ -d "node_modules" ]; then echo " โœ… node_modules directory exists" # Check specific dependencies if [ -d "node_modules/@modelcontextprotocol" ]; then echo " โœ… @modelcontextprotocol/sdk installed" else echo " โŒ @modelcontextprotocol/sdk missing" fi if [ -d "packages/core/node_modules" ] || [ -d "node_modules/@context-pods/core" ]; then echo " โœ… @context-pods/core available" else echo " โŒ @context-pods/core missing" fi else echo " โŒ node_modules directory missing - run 'npm install'" fi # Check build status echo "" echo "๐Ÿ”จ Build Status:" if [ -f "packages/server/dist/index.js" ]; then echo " โœ… Server package built" # Check if build is recent BUILD_TIME=$(stat -f "%m" packages/server/dist/index.js 2>/dev/null || stat -c "%Y" packages/server/dist/index.js 2>/dev/null) CURRENT_TIME=$(date +%s) TIME_DIFF=$((CURRENT_TIME - BUILD_TIME)) if [ "$TIME_DIFF" -lt 3600 ]; then echo " โœ… Build is recent (less than 1 hour old)" else echo " โš ๏ธ Build is older than 1 hour - consider rebuilding" fi else echo " โŒ Server package not built - run 'npm run build'" fi if [ -f "packages/core/dist/index.js" ]; then echo " โœ… Core package built" else echo " โŒ Core package not built - run 'npm run build'" fi # Check TypeScript configuration echo "" echo "๐Ÿ“ TypeScript Configuration:" if [ -f "tsconfig.json" ]; then echo " โœ… Root tsconfig.json exists" else echo " โŒ Root tsconfig.json missing" fi if [ -f "packages/server/tsconfig.json" ]; then echo " โœ… Server tsconfig.json exists" else echo " โŒ Server tsconfig.json missing" fi # Check templates echo "" echo "๐Ÿ“„ Templates:" TEMPLATE_COUNT=$(find templates -name "template.json" 2>/dev/null | wc -l) echo " โœ… Found $TEMPLATE_COUNT template(s)" if [ "$TEMPLATE_COUNT" -gt 0 ]; then find templates -name "template.json" | while read template; do TEMPLATE_DIR=$(dirname "$template") TEMPLATE_NAME=$(basename "$TEMPLATE_DIR") echo " โ€ข $TEMPLATE_NAME" done fi # Check CLI integration echo "" echo "โšก CLI Integration:" if [ -f "packages/cli/dist/index.js" ]; then echo " โœ… CLI package built" else echo " โš ๏ธ CLI package not built (optional)" fi # Check server binary echo "" echo "๐ŸŽฏ Server Binary:" if [ -f "packages/server/bin/server.js" ]; then echo " โœ… Server binary exists" if [ -x "packages/server/bin/server.js" ]; then echo " โœ… Server binary is executable" else echo " โŒ Server binary is not executable" fi else echo " โŒ Server binary missing" fi # Summary echo "" echo "๐Ÿ“‹ Summary:" echo "============" # Count checks CHECKS_PASSED=0 CHECKS_TOTAL=0 # This is a simplified check - in a real implementation you'd track each check if command -v node &> /dev/null && [ -d "node_modules" ] && [ -f "packages/server/dist/index.js" ]; then echo "๐ŸŸข Status: READY" echo " The Meta-MCP Server is ready to run!" echo "" echo "Next steps:" echo " โ€ข Run './scripts/start-server.sh' to start the server" echo " โ€ข Run './scripts/test-connection.js' to test connectivity" echo " โ€ข See docs/MCP_CLIENT_SETUP.md for client configuration" else echo "๐Ÿ”ด Status: NOT READY" echo " Some components need attention before the server can run." echo "" echo "Recommended actions:" if ! command -v node &> /dev/null; then echo " โ€ข Install Node.js 18 or higher" fi if [ ! -d "node_modules" ]; then echo " โ€ข Run 'npm install' to install dependencies" fi if [ ! -f "packages/server/dist/index.js" ]; then echo " โ€ข Run 'npm run build' to build the packages" fi fi 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/conorluddy/ContextPods'

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