UNPKG

uhbarp-gmail-mcp-server

Version:

Gmail MCP Server for managing Gmail through natural language interactions with full OAuth2 authentication support

36 lines (28 loc) 921 B
#!/usr/bin/env node import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); console.log('Setting up Gmail MCP Server...'); // Make CLI executable const binPath = path.join(__dirname, 'bin', 'cli.js'); if (fs.existsSync(binPath)) { try { fs.chmodSync(binPath, '755'); console.log('✓ Made CLI executable'); } catch (error) { console.warn('Warning: Could not make CLI executable:', error.message); } } else { console.warn('Warning: CLI file not found at', binPath); } // Display setup message console.log(` ✓ Gmail MCP Server installed successfully! Next steps: 1. Set up authentication: npx gmail-mcp-server --setup-auth 2. Start the server: npx gmail-mcp-server For help: npx gmail-mcp-server --help Documentation: https://github.com/yourusername/gmail-mcp-server `);