scripts / check-mcp.js
const { execSync } = require('child_process');
const path = require('path');
const pluginRoot = path.resolve(__dirname, '..');
const mcpServerDir = path.join(pluginRoot, '.mcp-server');
const pythonExec = path.join(mcpServerDir, '.venv', 'bin', 'python');
try {
console.log(`Checking Python environment...`);
execSync(`${pythonExec} --version`, { cwd: mcpServerDir });
console.log('Python environment check passed.');
console.log(`Checking MCP server availability...`);
// Just check if we can import the module
execSync(`${pythonExec} -c "import mcp_server_tree_sitter; print('Module loaded')"`, { cwd: mcpServerDir });
console.log('MCP module load check passed.');
} catch (e) {
console.error('Check failed:', e.message);
process.exit(1);
}
scripts / check-mcp.js
const { execSync } = require('child_process');
const path = require('path');
const pluginRoot = path.resolve(__dirname, '..');
const mcpServerDir = path.join(pluginRoot, '.mcp-server');
const pythonExec = path.join(mcpServerDir, '.venv', 'bin', 'python');
try {
console.log(`Checking Python environment...`);
execSync(`${pythonExec} --version`, { cwd: mcpServerDir });
console.log('Python environment check passed.');
console.log(`Checking MCP server availability...`);
// Just check if we can import the module
execSync(`${pythonExec} -c "import mcp_server_tree_sitter; print('Module loaded')"`, { cwd: mcpServerDir });
console.log('MCP module load check passed.');
} catch (e) {
console.error('Check failed:', e.message);
process.exit(1);
}