aipm-mcp
Version:
Complete AIPM integration for Cursor IDE - Get tasks, manage features, track time, and build features with AI. Supports both MCP stdio mode and HTTP server mode.
37 lines (29 loc) ⢠1.38 kB
JavaScript
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š AIPM Cursor MCP Setup'));
console.log(chalk.blue('========================\n'));
console.log(chalk.green('ā
AIPM Cursor MCP has been installed successfully!'));
console.log(chalk.yellow('\nš Next Steps:'));
console.log(chalk.white('1. Configure your AIPM connection'));
console.log(chalk.white('2. Add the MCP server to Cursor'));
console.log(chalk.white('3. Start using AIPM in Cursor!\n'));
console.log(chalk.cyan('š§ To configure AIPM connection, run:'));
console.log(chalk.white(' npx aipm-mcp configure\n'));
console.log(chalk.cyan('š For detailed setup instructions, run:'));
console.log(chalk.white(' npx aipm-mcp help\n'));
console.log(chalk.gray('Need help? Visit: https://docs.aipm.com/cursor-integration'));
// Create config directory if it doesn't exist
const configDir = join(process.env.HOME || process.env.USERPROFILE || '.', '.aipm-mcp');
if (!existsSync(configDir)) {
try {
mkdirSync(configDir, { recursive: true });
} catch (error) {
// Ignore errors, user can create manually if needed
}
}