Skip to content

Issues with fresh install #31

@mylesthedev

Description

@mylesthedev

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

  1. install on statamic 6.8.1
  2. use latest laravel boost packages (dep issue)
  3. use eloquent driver for users
  4. 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

  • I've searched for similar issues and couldn't find anything relevant
  • I've read the alpha disclaimer and understand this is experimental software
  • I can reproduce this issue consistently

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions