Skip to main content
Glama
view-server-logs.shβ€’924 B
#!/bin/bash # View only server messages from MCP logs (filters out MCP protocol noise) # Usage: ./scripts/view-server-logs.sh LOG_FILE="$HOME/Library/Application Support/dev.warp.Warp-Stable/mcp/4TWzM7mOVXXOyIpZpvksyN.log" if [[ ! -f "$LOG_FILE" ]]; then echo "❌ Log file not found: $LOG_FILE" echo "πŸ’‘ Check your Warp MCP configuration for the correct log path" exit 1 fi echo "πŸ“‹ Viewing SERVER messages from MCP logs..." echo "πŸ“ Log file: $LOG_FILE" echo "πŸ” Filtering: Only server stderr messages" echo "" grep "stderr:" "$LOG_FILE" | while IFS= read -r line; do # Skip blank lines (shouldn't be any in grep results, but for consistency) [[ "$line" =~ ^[[:space:]]*$ ]] && continue # Extract timestamp and the actual message timestamp=$(echo "$line" | grep -o '^[^|]*|[^|]*|') message=$(echo "$line" | sed 's/^.*stderr: //') echo "${timestamp} [server] $message" done

Latest Blog Posts

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/egarcia74/warp-sql-server-mcp'

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