Skip to main content
Glama
josuekongolo

CompanyIQ MCP Server

by josuekongolo
test-auto-scrape-direct.jsβ€’1.23 kB
import dotenv from 'dotenv'; dotenv.config(); import { BrowserScraper } from './build/scraper/browser_scraper.js'; console.log('πŸ§ͺ Testing auto_scrape functionality directly'); console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n'); // Check if API key is loaded const apiKey = process.env.OPENAI_API_KEY; if (!apiKey) { console.error('❌ OPENAI_API_KEY not found in environment!'); process.exit(1); } console.log(`βœ… API Key loaded: ${apiKey.substring(0, 20)}...`); try { // This simulates what auto_scrape_financials does console.log('\nπŸ€– Creating BrowserScraper with API key from environment...'); const scraper = new BrowserScraper(apiKey, '999059198'); console.log('βœ… BrowserScraper created successfully!'); console.log(' The auto_scrape tool should now work properly.'); console.log('\nπŸ’‘ To test in Claude:'); console.log(' 1. Restart Claude to reload the MCP server'); console.log(' 2. Try: "Auto-scrape financials for 999059198"'); } catch (error) { console.error('❌ Failed to create BrowserScraper:', error.message); console.error('\nThis is the same error you would get in auto_scrape.'); }

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/josuekongolo/companyiq-mcp'

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