Skip to main content
Glama

McFlow

example_parse_response.js851 B
// Parse the API response and extract relevant data const items = $input.all(); const parsedItems = []; for (const item of items) { const data = item.json; // Extract and validate the response if (data && data.results) { for (const result of data.results) { parsedItems.push({ json: { id: result.id, name: result.name || 'Unknown', value: result.value || 0, timestamp: new Date().toISOString(), status: result.status || 'pending' } }); } } else { // Handle empty or invalid response parsedItems.push({ json: { error: 'Invalid response format', originalData: data, timestamp: new Date().toISOString() } }); } } return parsedItems.length > 0 ? parsedItems : [{ json: { message: 'No data to process' } }];

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/mckinleymedia/mcflow-mcp'

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