Skip to content

Target class [mcp.registrar] does not exist. #14

@adamjsturge

Description

@adamjsturge

When I tried to go through and setup my application I get Target class [mcp.registrar] does not exist.

The setup guide was a little confusing.

I published my assets, made the routes/mcp.php made my first tool with

use PhpMcp\Laravel\Facades\Mcp;
Mcp::tool

I haven't touched the default config. I tried adding PhpMcp\Laravel\McpServiceProvider::class, to providers which it's unclear if needed.

Also I had to do

        $middleware->validateCsrfTokens(except: [
            env('MCP_HTTP_INTEGRATED_ROUTE_PREFIX', 'mcp').'/message',
        ]);

in app.php since config was apparently not ready yet.

Do we know why my mcp keeps crashing on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions