UNPKG

google-mcp-server

Version:

Google Suite MCP Server for Cursor and other MCP clients

25 lines (19 loc) 681 B
#!/usr/bin/env node // Main entry point for the npm package // This file simply re-exports the binary script const path = require('path'); const { spawn } = require('child_process'); // Get the path to the binary script const scriptPath = path.join(__dirname, 'bin', 'google-mcp-server.js'); // Execute the binary script with the same arguments const scriptProcess = spawn('node', [scriptPath, ...process.argv.slice(2)], { stdio: 'inherit', cwd: __dirname }); scriptProcess.on('close', (code) => { process.exit(code); }); scriptProcess.on('error', (error) => { console.error('Error executing script:', error); process.exit(1); });