@isiahw1/mcp-server-bing-webmaster
Version:
MCP server for Bing Webmaster Tools integration
43 lines (34 loc) ⢠1.59 kB
JavaScript
/**
* Post-install script to verify Python is available
*/
const { execSync } = require('child_process');
console.log('\nš§ MCP Server for Bing Webmaster Tools - Post Install');
console.log('================================================\n');
// Check Python installation
try {
const pythonCommand = process.platform === 'win32' ? 'python' : 'python3';
const pythonVersion = execSync(`${pythonCommand} --version`, { encoding: 'utf8' }).trim();
// Extract version number
const versionMatch = pythonVersion.match(/Python (\d+)\.(\d+)\.(\d+)/);
if (versionMatch) {
const major = parseInt(versionMatch[1]);
const minor = parseInt(versionMatch[2]);
if (major >= 3 && minor >= 10) {
console.log('ā
Python requirement satisfied: ' + pythonVersion);
} else {
console.log('ā ļø Python 3.10 or higher is required. Found: ' + pythonVersion);
console.log(' Please upgrade Python before using this package.');
}
}
} catch (error) {
console.log('ā Python is not installed or not in PATH');
console.log(' This package requires Python 3.10 or higher to run.');
console.log(' Please install Python from https://www.python.org/');
}
console.log('\nš Documentation:');
console.log(' https://github.com/isiahw1/mcp-server-bing-webmaster');
console.log('\nš Next Steps:');
console.log(' 1. Get your Bing Webmaster API key from https://www.bing.com/webmasters');
console.log(' 2. Configure Claude Desktop with your API key');
console.log(' 3. Start using 47 powerful Bing Webmaster tools!\n');