systemprompt-mcp-notion
Version:
A specialized Model Context Protocol (MCP) server that integrates Notion into your AI workflows. This server enables seamless access to Notion through MCP, allowing AI agents to interact with pages, databases, and comments.
19 lines (18 loc) • 576 B
JavaScript
import { GoogleAuthService } from "./google-auth-service.js";
export class GoogleBaseService {
auth = GoogleAuthService.getInstance();
constructor() {
// Ensure auth is initialized before using any Google service
this.initializeAuth().catch((error) => {
console.error("Failed to initialize Google auth:", error);
throw error;
});
}
async initializeAuth() {
await this.auth.initialize();
await this.auth.authenticate();
}
async waitForInit() {
await this.initializeAuth();
}
}