Version Migration Guide
This guide provides step-by-step instructions for migrating between major versions of MCP Server with LangGraph.Quick Navigation
v2.7 → v2.8
Latest stable migration (Authentication updates)
v2.6 → v2.7
LangGraph 0.6+ upgrade
v2.5 → v2.6
OpenFGA integration
Future Migrations
Upcoming changes and deprecations
v2.7 → v2.8 Migration
Release Date: 2025-11-12 Upgrade Time: ~15-30 minutes Complexity: Low (Backward compatible)Overview
Version 2.8.0 introduces enhanced authentication capabilities including:- Service principals for machine-to-machine authentication
- API key management with JWT exchange
- Identity federation for multi-tenant scenarios
- SCIM 2.0 provisioning support
What’s New
- Service Principals - Machine-to-machine authentication
- API Key Management - Long-lived credentials with JWT exchange
- Identity Federation - Multi-tenant identity support
- SCIM Provisioning - Automated user provisioning
- Enhanced Session Management - Improved session handling with Redis
Breaking Changes
✅ None - v2.8 is fully backward compatibleDeprecations
⚠️ The following features are deprecated and will be removed in v3.0:-
AUTH_PROVIDER=simple(Deprecated)- Use
AUTH_PROVIDER=keycloakwith service principals instead - Simple auth lacks audit logging and compliance features
- Use
-
Environment-based auth configuration (Soft deprecation)
- Migrate to Keycloak-managed credentials when possible
- Environment variables still supported but discouraged for production
Migration Steps
Step 1: Update Dependencies
Step 2: Review New Authentication Features (Optional)
If you want to adopt the new authentication features:Enable Service Principals
Enable API Key Management
Step 3: Update Configuration (If Using New Features)
If adopting service principals, update your deployment configs:Step 4: Test the Upgrade
Step 5: Deploy
Step 6: Verify Deployment
Rollback Procedure
If you encounter issues:Common Migration Issues
Issue: Authentication Fails After Upgrade
Symptom:401 Unauthorized for previously working requests
Solution:
Issue: Service Principal Creation Fails
Symptom:KeycloakAdminError: Insufficient permissions
Solution:
v2.6 → v2.7 Migration
Release Date: 2025-10-15 Upgrade Time: ~30-45 minutes Complexity: Medium (LangGraph API changes)Overview
Version 2.7.0 upgrades LangGraph from 0.2.x to 0.6.x, bringing significant performance improvements and new features.Breaking Changes
1. StateGraph API Changes
Before (v2.6):2. Checkpointer Interface
Before (v2.6):3. Tool Calling Convention
Before (v2.6):Migration Steps
Step 1: Update Dependencies
Step 2: Update Code
Run our automated migration script:Step 3: Update Tests
Step 4: Deploy and Verify
v2.5 → v2.6 Migration
Release Date: 2025-09-20 Upgrade Time: ~45-60 minutes Complexity: High (New authorization system)Overview
Version 2.6.0 introduces OpenFGA for fine-grained authorization, replacing the simple role-based system.Breaking Changes
1. Authorization Model
Before (v2.5): Simple role checks2. Configuration
New required environment variables:Migration Steps
Step 1: Set Up OpenFGA
Step 2: Migrate Role Mappings
Step 3: Update Authorization Checks
Step 4: Test Migration
Future Migrations
Upcoming in v3.0 (Planned Q2 2026)
Breaking Changes:- Remove deprecated
AUTH_PROVIDER=simple - Require Python 3.12+ (drop 3.10, 3.11)
- Replace LangChain with LangGraph-native components
- Unified configuration system (remove env var sprawl)
- Migrate from environment-based auth to Keycloak
- Update custom tools to use new Tool API
- Replace manual checkpointing with built-in persistence
- Audit usage of deprecated features
- Plan Keycloak migration timeline
- Test with Python 3.12
Deprecation Timeline
| Feature | Deprecated In | Removed In | Migration Path |
|---|---|---|---|
AUTH_PROVIDER=simple | v2.8 | v3.0 | Use Keycloak + service principals |
| Python 3.10 | v2.8 | v3.0 | Upgrade to Python 3.12 |
| Environment auth config | v2.8 | v3.0 | Use Keycloak-managed credentials |
| Old Tool API | v2.6 | v3.0 | Use @tool from langchain_core |
Migration Best Practices
Pre-Migration Checklist
- Read release notes and changelog
- Review breaking changes
- Test upgrade in development environment
- Back up production database
- Plan rollback procedure
- Schedule maintenance window
During Migration
- Test First: Always test in dev/staging before production
- Incremental Rollout: Deploy to subset of users first
- Monitor Closely: Watch metrics and logs during deployment
- Have Rollback Ready: Keep previous version deployments ready
Post-Migration Validation
Getting Help
If you encounter issues during migration:- Check Migration Issues: GitHub Issues filtered by migration
- Review Changelog: CHANGELOG.md
- Ask Community: GitHub Discussions
- Report Issues: Create migration issue