domain-search-mcp 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -296,6 +296,20 @@ async function checkPlatform(
296
296
  maxRedirects: 0,
297
297
  });
298
298
 
299
+ // Handle rate limiting (429) - return uncertain instead of false negative
300
+ if (response.status === 429) {
301
+ logger.debug(`Rate limited on ${platform}`, { username });
302
+ return {
303
+ platform,
304
+ handle: username,
305
+ available: false,
306
+ url: profileUrl,
307
+ checked_at: new Date().toISOString(),
308
+ confidence: 'low', // Can't be sure due to rate limit
309
+ error: 'Rate limited - please try again later',
310
+ };
311
+ }
312
+
299
313
  let available = false;
300
314
 
301
315
  // Determine availability based on errorType
@@ -343,6 +357,7 @@ async function checkPlatform(
343
357
  url: profileUrl,
344
358
  checked_at: new Date().toISOString(),
345
359
  confidence: 'low',
360
+ error: error instanceof Error ? error.message : 'Unknown error',
346
361
  };
347
362
  }
348
363
  }
package/src/types.ts CHANGED
@@ -166,6 +166,8 @@ export interface SocialHandleResult {
166
166
  checked_at: string;
167
167
  /** Some platforms can't be reliably checked */
168
168
  confidence: 'high' | 'medium' | 'low';
169
+ /** Error message if check failed (rate limit, timeout, etc.) */
170
+ error?: string;
169
171
  }
170
172
 
171
173
  // ═══════════════════════════════════════════════════════════════════════════