Skip to content

1.3.1

Choose a tag to compare

@kargnas kargnas released this 07 Jun 11:41
· 55 commits to master since this release

Simplified Tool Interface

  • Replaced confusing messageType(): ProcessMessageType with intuitive isStreaming(): bool
  • Backward Compatible: Existing tools work without modification - isStreaming() is optional
  • Smart Defaults: Tools default to HTTP transport when isStreaming() is not implemented
  • Cleaner Code: Removed deprecated ProcessMessageType::PROTOCOL enum

Enhanced Migration Command

  • Smart Migration: Automatically removes deprecated messageType() methods
  • Conditional Logic: Adds isStreaming(): bool only for SSE tools that need it
  • Backup Safety: Interactive backup confirmation with --no-backup option
  • Clean Imports: Automatically removes unused ProcessMessageType imports
  • Multi-Version Support: Migrates from v1.0.x, v1.1.x, v1.2.x → v1.3.0

Comprehensive Documentation

  • Enhanced Configuration: Detailed security and deployment guidance in config/mcp-server.php
  • Better Examples: Improved tool stubs with comprehensive documentation
  • Migration Guide: Step-by-step upgrade instructions with examples

Migration Guide
Before (v1.2.x):

public function messageType(): ProcessMessageType
{
    return ProcessMessageType::HTTP; // or ::SSE
}

After (v1.3.x):

// For HTTP tools: Remove messageType() entirely (default behavior)
// For SSE tools only:
public function isStreaming(): bool
{
    return true;
}

Auto-migrate with:

php artisan mcp:migrate-tools

No Breaking Changes

  • All v1.1.x and v1.2.x tools continue working without modification
  • Migration is completely optional
  • Fallback logic ensures compatibility

Full Changelog: 1.2.1...1.3.1