Skip to main content
Glama
show-full-request.cjs1.23 kB
const fs = require('fs'); const path = require('path'); // Read the latest log file const logDir = '/Users/david/Downloads/MCP/UmbrellaMCP/logs'; const latestLog = 'debug-2025-09-30T12-50-15.log'; const logPath = path.join(logDir, latestLog); const content = fs.readFileSync(logPath, 'utf8'); const lines = content.split('\n'); // Find the API REQUEST section let inRequest = false; let requestData = []; let capturing = false; for (let i = 0; i < lines.length; i++) { const line = lines[i]; if (line.includes('🔍 API REQUEST:')) { capturing = true; requestData.push('\n=== FULL API REQUEST ===\n'); requestData.push(line); continue; } if (line.includes('📤 SENDING REQUEST:')) { if (!capturing) { capturing = true; requestData.push('\n=== FULL API REQUEST ===\n'); } requestData.push(line); continue; } if (capturing) { requestData.push(line); // Stop at the response or error section if (line.includes('API ERROR:') || line.includes('API RESPONSE:') || line.includes('[2025-09-30')) { capturing = false; requestData.push('\n=== END REQUEST ===\n'); } } } // Print all captured requests console.log(requestData.join('\n'));

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