Skip to content

Conversation

@florianraith
Copy link
Contributor

The commit 2e662d0 requires the changes introduced in illuminate/json-schema by laravel/framework@c387cbd, specifically the update that makes JsonSchemaTypeFactory implement JsonSchemaContract.

Without this change, you encounter the following error when trying to connect to an MCP server:

local.ERROR: Laravel\Mcp\Server\Tool::schema(): Argument #1 ($schema) must be of type Illuminate\Contracts\JsonSchema\JsonSchema, Illuminate\JsonSchema\JsonSchemaTypeFactory given, called in /var/www/html/vendor/laravel/framework/src/Illuminate/JsonSchema/JsonSchemaTypeFactory.php on line 17

The issue is that the required framework commit only exists starting from Laravel 12.40.2, whereas this package currently requires a minimum version of 12.28.1. Since I had an older version installed locally (12.36), it took some time to understand why connecting to the MCP failed (the error messages you get are not very helpful).

To prevent future users from running into the same problem, I bumped the required Laravel version to the most recent release (12.41.1).

@taylorotwell taylorotwell merged commit 1c7878b into laravel:main Dec 7, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants