Skip to main content
Glama
check-recent-logs.sh791 B
#!/bin/bash # Get the last 2000 lines from the running server and grep for net_amortized context echo "Searching for net_amortized request details in recent server output..." echo "" # Find the PID of the running server PID=$(pgrep -f "PORT=8787 node dist/index-dual.js" | head -1) if [ -z "$PID" ]; then echo "Server not found running on port 8787" exit 1 fi echo "Found server PID: $PID" echo "" # Check if there's a log file we can read if [ -f "/tmp/mcp-server-${PID}.log" ]; then echo "Reading from log file..." tail -500 "/tmp/mcp-server-${PID}.log" | grep -B 5 -A 15 "isNetAmortized" | grep -E "(ACTUAL URL|ACTUAL PARAMS|costType|isNetAmortized)" | head -30 else echo "No log file found at /tmp/mcp-server-${PID}.log" echo "Checking if file logging is enabled..." fi

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/daviddraiumbrella/invoice-monitoring'

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