unlimited-cursor-mcp
Version:
Unlimited Cursor MCP Server - 解除Cursor AI限制
28 lines (22 loc) • 577 B
JavaScript
const { PythonShell } = require('python-shell');
const path = require('path');
// 获取Python脚本的路径
const scriptPath = path.join(__dirname, '..', 'server.py');
// 启动Python服务器
const pyshell = new PythonShell(scriptPath, {
mode: 'text',
pythonPath: 'python3'
});
// 处理输出
pyshell.on('message', function (message) {
console.log(message);
});
// 处理错误
pyshell.on('error', function (err) {
console.error('Error:', err);
});
// 处理结束
pyshell.on('close', function () {
console.log('MCP server closed');
});