packagist laravel/mcp v0.4.0

latest releases: v0.7.0, v0.6.7, v0.6.6...
5 months ago

What's Changed

New Contributors

Breaking Change

1. Case Name Updates (#116)

Applications referencing the previous case names will need manual updates.

Required changes

  • Role::ASSISTANT should be updated to Role::Assistant
  • Role::USER should be updated to Role::User

Make sure your codebase reflects these changes before upgrading to avoid build or runtime errors.

2. JsonSchema Contract Change (#120)

Tool implementations that explicitly type hint Illuminate\JsonSchema\JsonSchema in their schema() or outputSchema() methods must update to use the contract interface Illuminate\Contracts\JsonSchema\JsonSchema.

Migration Guide

Before

use Illuminate\JsonSchema\JsonSchema;

public function schema(JsonSchema $schema): array
{
    //
}

After

use Illuminate\Contracts\JsonSchema\JsonSchema;

public function schema(JsonSchema $schema): array
{
    //
}

This affects only custom tool classes that override the schema methods. The update is minimal, requiring only the import change to the contract interface.

Full Changelog: v0.3.4...v0.4.0

Don't miss a new mcp release

NewReleases is sending notifications on new releases.