Skip to main content
Glama

Sociona MCP Server

by fav-devs
release.jsโ€ข3.5 kB
#!/usr/bin/env node import { execSync } from 'child_process'; import fs from 'fs'; import path from 'path'; const versionType = process.argv[2] || 'patch'; // patch, minor, major if (!['patch', 'minor', 'major'].includes(versionType)) { console.error('โŒ Invalid version type. Use: patch, minor, or major'); process.exit(1); } console.log(`๐Ÿš€ Creating ${versionType} release...`); try { // 1. Update version in package.json console.log('๐Ÿ“ฆ Updating version...'); execSync(`npm version ${versionType}`, { stdio: 'inherit' }); // 2. Build the project console.log('๐Ÿ”จ Building project...'); execSync('npm run build', { stdio: 'inherit' }); // 3. Run tests console.log('๐Ÿงช Running tests...'); execSync('npm test', { stdio: 'inherit' }); // 4. Get the new version const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf8')); const newVersion = packageJson.version; // 5. Create git tag console.log(`๐Ÿท๏ธ Creating git tag v${newVersion}...`); execSync(`git tag v${newVersion}`, { stdio: 'inherit' }); // 6. Push changes and tags console.log('๐Ÿ“ค Pushing changes and tags...'); execSync('git push', { stdio: 'inherit' }); execSync('git push --tags', { stdio: 'inherit' }); // 7. Publish to NPM (using GitHub Actions) console.log('๐Ÿ“ฆ Publishing to NPM via GitHub Actions...'); console.log(' Note: Publishing will be handled by the automated workflow'); // 8. Create GitHub release console.log('๐ŸŽ‰ Creating GitHub release...'); const releaseNotes = generateReleaseNotes(newVersion, versionType); execSync(`gh release create v${newVersion} --title "Sociona MCP Server v${newVersion}" --notes "${releaseNotes}"`, { stdio: 'inherit' }); console.log(`โœ… Successfully released v${newVersion}!`); console.log(`๐Ÿ“ฆ NPM: https://www.npmjs.com/package/sociona-mcp-server`); console.log(`๐Ÿ™ GitHub: https://github.com/fav-devs/sociona-mcp-server/releases/tag/v${newVersion}`); } catch (error) { console.error('โŒ Release failed:', error.message); process.exit(1); } function generateReleaseNotes(version, type) { const features = [ 'Complete MCP server implementation for Sociona social media API', 'Support for X (Twitter), Instagram, and Threads', 'CLI tool for easy execution (`sociona-mcp`)', 'Comprehensive documentation and installation guides' ]; const changes = { major: '๐Ÿš€ Major release with breaking changes and new features', minor: 'โœจ New features and improvements', patch: '๐Ÿ› Bug fixes and minor improvements' }; return `## ${changes[type]} ### Features ${features.map(f => `- ${f}`).join('\n')} ### Installation \`\`\`bash npm install -g sociona-mcp-server \`\`\` ### What's New - โœ… Publish posts immediately - โœ… Schedule posts for future publication - โœ… Cancel scheduled posts - โœ… List connected social accounts - โœ… Retrieve post history and analytics - โœ… Multi-platform support (X, Instagram, Threads) - โœ… CLI tool for easy execution - โœ… Comprehensive documentation ### Documentation - [Installation Guide](https://github.com/fav-devs/sociona-mcp-server#installation) - [Usage Examples](https://github.com/fav-devs/sociona-mcp-server#usage) - [Developer Setup](https://github.com/fav-devs/sociona-mcp-server/blob/main/DEVELOPER_INSTALLATION.md) ### Links - [NPM Package](https://www.npmjs.com/package/sociona-mcp-server) - [GitHub Repository](https://github.com/fav-devs/sociona-mcp-server)`; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fav-devs/sociona-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server