Skip to main content
Glama
debug-search.ts•969 B
#!/usr/bin/env tsx import { createAuthManager } from '../src/utils/auth.js'; import { createApiClient } from '../src/utils/api.js'; async function debugSearch() { console.log('šŸ” Debugging search response format...\n'); const authManager = createAuthManager(); const apiClient = createApiClient(authManager); try { console.log('Testing simple search...'); const searchResults = await apiClient.search('love', { lang: ['en'], limit: 5 }); console.log('Raw search response:'); console.log(JSON.stringify(searchResults, null, 2)); // Test search suggestions too console.log('\nTesting search suggestions...'); const suggestions = await apiClient.getSearchSuggestions('sancti'); console.log('Raw suggestions response:'); console.log(JSON.stringify(suggestions, null, 2)); } catch (error) { console.error('āŒ Debug search failed:', error); } } debugSearch().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