Repository navigation
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