Repository navigation
Releases
v1.1.1 - Enhanced OAuth UX
✨ Enhanced OAuth User Experience
This release focuses on making the OAuth authentication flow much more user-friendly and visually clear.
🎨 What's New
Prominent Visual Feedback
- Added eye-catching visual banners with box-drawing characters that clearly mark OAuth flow stages
- Users can't miss when the browser is about to open for authorization
- Clear visual separation between different authentication stages
Step-by-Step Guidance
- Detailed instructions displayed when browser opens:
- Log in to your Threads account
- Authorize the application
- You will be redirected back automatically
- Manual URL provided as fallback if browser doesn't open automatically
Better Status Messages
- Token expiration information shown when using existing valid tokens
- Detailed success messages including:
- User ID confirmation
- Token expiration date (in days)
- Token storage file location
- Clear indication that browser can be closed
Example Output:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔐 Threads MCP Server - OAuth 2.0 Authentication
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 Checking for existing authentication...
✅ Found existing valid token - authentication complete!
Token expires: 2/13/2026, 12:00:00 PM
✅ Authentication successful!
👤 User ID: 12345678
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Why This Matters
The OAuth flow is now impossible to miss and provides clear guidance at every step. New users will have a much smoother onboarding experience with:
- No confusion about what's happening
- Clear expectations for what they need to do
- Confidence that the process is working correctly
📦 Installation
npm install -g @pegasusheavy/threads-mcp@1.1.1Or use directly with npx in Claude Desktop:
npx -y @pegasusheavy/threads-mcp🔗 Links
Full Changelog: v1.1.0...v1.1.1
v1.1.0 - OAuth 2.0 & Advanced Features
🎉 What's New in v1.1.0
🔐 Automatic OAuth 2.0 Authentication
The biggest feature in this release! The server now handles the entire OAuth flow automatically:
- Browser-based authorization - Opens your browser automatically when authorization is needed
- Automatic token exchange - Converts authorization codes to access tokens behind the scenes
- Secure token storage - Stores long-lived tokens in
.threads-token.json - Automatic token refresh - Refreshes tokens before they expire
- OAuth callback server - Runs on port 48810 to handle the OAuth callback
New Configuration (Recommended):
{
"mcpServers": {
"threads": {
"command": "npx",
"args": ["-y", "@pegasusheavy/threads-mcp"],
"env": {
"THREADS_APP_ID": "your_app_id_here",
"THREADS_APP_SECRET": "your_app_secret_here"
}
}
}
}Legacy configuration still supported - Existing THREADS_ACCESS_TOKEN and THREADS_USER_ID continue to work as a fallback.
🎯 Advanced Features
- Rate Limiting - Token bucket algorithm prevents API rate limit errors
- Caching Layer - In-memory cache with TTL and LRU eviction for better performance
- Webhook Support - Subscribe to Threads events with HMAC-SHA256 signature verification
- Event-driven Architecture - Automatic retries and error handling for webhooks
📚 Documentation Improvements
- Comprehensive OAuth setup guide (
docs/OAUTH_SETUP.md) - AI-specific documentation (
docs/ai.txtanddocs/llms.txt) - Updated GitHub Pages website with Threads-themed UI
- PWA manifest and app icons for better mobile experience
- Favicon and social media cards
🧪 Testing & Quality
- 21 new OAuth flow tests - Comprehensive testing of the authentication flow
- 90%+ test coverage maintained - All new features are thoroughly tested
- Husky Git hooks - Pre-commit and pre-push checks ensure code quality
- Commitlint - Enforces conventional commit messages
📦 Installation
npm install -g @pegasusheavy/threads-mcpOr use directly with npx in Claude Desktop:
npx -y @pegasusheavy/threads-mcp🔧 Breaking Changes
- Configuration change: While the old
THREADS_ACCESS_TOKENmethod still works, we recommend migrating to OAuth 2.0 usingTHREADS_APP_IDandTHREADS_APP_SECRETfor better security and automatic token management.
🐛 Bug Fixes
- Fixed GitHub repository URLs from
PegasusHeavyIndustriestopegasusheavy - Fixed TypeScript errors in OAuth server related to unused variables
- Fixed Axios mocking in OAuth tests using
vi.mocked()
📊 Stats
- 156 tests passing with 90%+ coverage
- 8 MCP tools for complete Threads API integration
- 4 utility classes (RateLimiter, Cache, Webhook, OAuth)
- Full TypeScript support with comprehensive type definitions
🔗 Links
Full Changelog: v1.0.0...v1.1.0
v1.0.0 - Initial Release
🎉 Threads MCP Server v1.0.0 - Initial Release
A production-ready Model Context Protocol server for integrating with the Threads.com API. Built for Claude Desktop and AI assistants.
✨ Features
- 8 MCP tools for complete Threads.com API coverage
- Profile management and retrieval
- Thread creation with support for text, images, and videos
- Thread replies and conversation management
- Analytics and insights for engagement metrics
- Rate limiting with token bucket algorithm
- In-memory caching with TTL and LRU eviction
- Webhook support with HMAC-SHA256 signature verification
- Enhanced client with integrated utilities
🔧 Developer Experience
- Git hooks with Husky for code quality enforcement
- Pre-commit hooks: lint-staged + TypeScript type checking
- Pre-push hooks: tests, coverage, lint, and build verification
- Commit message validation with conventional commits
- Comprehensive documentation for Git workflows
🔒 Security & Testing
- Full TypeScript support with comprehensive type definitions
- 90%+ test coverage with Vitest (135 tests passing)
- Environment variable-based configuration
- Secure token handling
- HMAC-SHA256 webhook signature verification
- Input validation with Zod schemas
- Claude Desktop integration ready
📚 Documentation & Design
- Comprehensive README with installation guide
- API reference documentation
- Usage examples and sample prompts
- Contributing guidelines
- Threads-styled GitHub Pages website
- llms.txt for AI assistant integration
- Pixel-perfect Threads timeline design
- Dark mode support
- Mobile responsive design
- OG and Twitter card images
- Comprehensive SEO optimization
⚙️ Infrastructure
- ESLint configuration for code quality
- Prettier for code formatting
- GitHub Actions for CI/CD
- Automated GitHub Pages deployment
- Comprehensive .gitignore and .npmignore
🚀 Installation
npm install @pegasusheavy/threads-mcpOr using pnpm:
pnpm add @pegasusheavy/threads-mcp📖 Quick Start
Add to your Claude Desktop configuration:
{
"mcpServers": {
"threads": {
"command": "npx",
"args": ["-y", "@pegasusheavy/threads-mcp"],
"env": {
"THREADS_ACCESS_TOKEN": "your_access_token_here",
"THREADS_USER_ID": "your_user_id_here"
}
}
}
}🔗 Links
- 🌐 Documentation
- 📝 Changelog
- 📚 API Reference
- 💡 Examples
Made with ❤️ by Pegasus Heavy Industries LLC