UNPKG

onepm-mcp

Version:

Complete onepm integration for Cursor IDE - Get tasks, manage features, track time, and build features with AI. Supports both MCP stdio mode and HTTP server mode. Enhanced task management with improved ID handling for seamless workflow.

37 lines (29 loc) • 1.39 kB
#!/usr/bin/env node import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; import { existsSync, writeFileSync, mkdirSync } from 'fs'; import chalk from 'chalk'; import inquirer from 'inquirer'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); console.log(chalk.blue.bold('\nšŸš€ onepm Cursor MCP Setup')); console.log(chalk.blue('========================\n')); console.log(chalk.green('āœ… onepm Cursor MCP has been installed successfully!')); console.log(chalk.yellow('\nšŸ“‹ Next Steps:')); console.log(chalk.white('1. Configure your onepm connection')); console.log(chalk.white('2. Add the MCP server to Cursor')); console.log(chalk.white('3. Start using onepm in Cursor!\n')); console.log(chalk.cyan('šŸ”§ To configure onepm connection, run:')); console.log(chalk.white(' npx onepm-mcp configure\n')); console.log(chalk.cyan('šŸ“š For detailed setup instructions, run:')); console.log(chalk.white(' npx onepm-mcp help\n')); console.log(chalk.gray('Need help? Visit: https://docs.onepm.com/cursor-integration')); // Create config directory if it doesn't exist const configDir = join(process.env.HOME || process.env.USERPROFILE || '.', '.onepm-mcp'); if (!existsSync(configDir)) { try { mkdirSync(configDir, { recursive: true }); } catch (error) { // Ignore errors, user can create manually if needed } }