Skip to main content

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
Good News: v2.8 is fully backward compatible with v2.7. Existing deployments will continue to work without changes.

What’s New

  1. Service Principals - Machine-to-machine authentication
  2. API Key Management - Long-lived credentials with JWT exchange
  3. Identity Federation - Multi-tenant identity support
  4. SCIM Provisioning - Automated user provisioning
  5. Enhanced Session Management - Improved session handling with Redis

Breaking Changes

None - v2.8 is fully backward compatible

Deprecations

⚠️ The following features are deprecated and will be removed in v3.0:
  1. AUTH_PROVIDER=simple (Deprecated)
    • Use AUTH_PROVIDER=keycloak with service principals instead
    • Simple auth lacks audit logging and compliance features
  2. 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):
After (v2.7):

2. Checkpointer Interface

Before (v2.6):
After (v2.7):

3. Tool Calling Convention

Before (v2.6):
After (v2.7):

Migration Steps

Step 1: Update Dependencies

Step 2: Update Code

Run our automated migration script:
Or manually update:

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 checks
After (v2.6): OpenFGA relationship-based authorization

2. 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)
Deprecations to Address:
  • Migrate from environment-based auth to Keycloak
  • Update custom tools to use new Tool API
  • Replace manual checkpointing with built-in persistence
Preparation:
  1. Audit usage of deprecated features
  2. Plan Keycloak migration timeline
  3. Test with Python 3.12

Deprecation Timeline


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

  1. Test First: Always test in dev/staging before production
  2. Incremental Rollout: Deploy to subset of users first
  3. Monitor Closely: Watch metrics and logs during deployment
  4. Have Rollback Ready: Keep previous version deployments ready

Post-Migration Validation


Getting Help

If you encounter issues during migration:
  1. Check Migration Issues: GitHub Issues filtered by migration
  2. Review Changelog: CHANGELOG.md
  3. Ask Community: GitHub Discussions
  4. Report Issues: Create migration issue

Troubleshooting

Common migration issues

Version Compatibility

Component version matrix

Release Notes

Detailed release information