We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/inventra/notebooklm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
errors.ts•1.35 kB
/**
* Custom Error Types for NotebookLM MCP Server
*/
/**
* Error thrown when NotebookLM rate limit is exceeded
*
* Free users have 50 queries/day limit.
* This error indicates the user should:
* - Use re_auth tool to switch Google accounts
* - Wait until tomorrow for quota reset
* - Upgrade to Google AI Pro/Ultra for higher limits
*/
export class RateLimitError extends Error {
constructor(message: string = "NotebookLM rate limit reached (50 queries/day for free accounts)") {
super(message);
this.name = "RateLimitError";
// Maintain proper stack trace for where error was thrown (V8 only)
if (Error.captureStackTrace) {
Error.captureStackTrace(this, RateLimitError);
}
}
}
/**
* Error thrown when authentication fails
*
* This error can suggest cleanup workflow for persistent issues.
* Especially useful when upgrading from old installation (notebooklm-mcp-nodejs).
*/
export class AuthenticationError extends Error {
suggestCleanup: boolean;
constructor(message: string, suggestCleanup: boolean = false) {
super(message);
this.name = "AuthenticationError";
this.suggestCleanup = suggestCleanup;
// Maintain proper stack trace for where error was thrown (V8 only)
if (Error.captureStackTrace) {
Error.captureStackTrace(this, AuthenticationError);
}
}
}