Bug Description
Two issues:
-
cboxdk/statamic-mcp v0.11.0 requires laravel/mcp ^0.3.2 (that's quite far behind the current version of laravel MCP)
-
Cboxdk\StatamicMcp\Http\Controllers\CP\DashboardController::resolveUserId(): Return value must be of type string, int returned
I think the second error is due to this site using eloquent users rather than flat file as it's expecting a string not an int.
How to Reproduce
- install on statamic 6.8.1
- use latest laravel boost packages (dep issue)
- use eloquent driver for users
- visit /cp/mcp to see error
Expected Behavior
Work as usual with eloquent based collections/users etc
Actual Behavior
Why it fails here:
- This site uses the Statamic Eloquent driver for users (verified via tinker: User::find(1)->id() returns int(1)).
- The package assumes Statamic user IDs are strings (true for flat-file mode, false for Eloquent).
- The trait is declared with declare(strict_types=1) and a : string return type, so the int isn't auto-coerced — it throws.
Tool Name
No response
Environment
Application:
- Statamic Version:
- Laravel Version:
- PHP Version:
- Statamic MCP Version:
- Laravel Boost Version (if installed):
MCP Client:
- Client Type: (e.g., Claude Desktop, Cursor, VSCode, etc.)
- Client Version:
Server:
- OS:
- Node Version (if applicable):
Statamic Edition
Statamic Solo (Free)
Installation Method
Fresh Installation via Composer
Additional Context
No response
Checklist
Bug Description
Two issues:
cboxdk/statamic-mcp v0.11.0 requires laravel/mcp ^0.3.2 (that's quite far behind the current version of laravel MCP)
Cboxdk\StatamicMcp\Http\Controllers\CP\DashboardController::resolveUserId(): Return value must be of type string, int returned
I think the second error is due to this site using eloquent users rather than flat file as it's expecting a string not an int.
How to Reproduce
Expected Behavior
Work as usual with eloquent based collections/users etc
Actual Behavior
Why it fails here:
Tool Name
No response
Environment
Application:
MCP Client:
Server:
Statamic Edition
Statamic Solo (Free)
Installation Method
Fresh Installation via Composer
Additional Context
No response
Checklist