Skip to main content
Glama
debug-folders.ts•978 B
#!/usr/bin/env tsx import { createAuthManager } from '../src/utils/auth.js'; import { createApiClient } from '../src/utils/api.js'; async function debugFolders() { console.log('šŸ“ Debugging folder structure...\n'); const authManager = createAuthManager(); const apiClient = createApiClient(authManager); try { // Test 1: Get raw folders response console.log('1. Raw folders response:'); const folders = await apiClient.getFolders('en'); console.log(JSON.stringify(folders, null, 2)); // Test 2: Try to understand the structure by looking at first few elements if (Array.isArray(folders) && folders.length > 0) { console.log('\n2. First folder structure:'); console.log('Type:', typeof folders[0]); console.log('Keys:', Object.keys(folders[0])); console.log('Full object:', folders[0]); } } catch (error) { console.error('āŒ Debug folders failed:', error); } } debugFolders().catch(console.error);

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/pythondev-pro/egw_writings_mcp_server'

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