Skip to content

Failed to discover OAuth metadata #89

@ilvalerione

Description

@ilvalerione

Laravel Package Version

0.3.0

Laravel Version

12

PHP Version

8.3

Database Driver & Version

No response

Description

Using Passport I get the error below on the MCP Inspector:

Image

I also tried to connect to the server from Claude Web, and it just reload the page without redirecting to the application OAuth authorization page.

Steps To Reproduce

I followed the documentation.

Add the authentication routes to the ai.php file:

Mcp::oauthRoutes();

Mcp::web('/mcp', MyServer::class)->middleware(['auth:api']);

And add the authorization view in the boot method of the AppServiceProvider:

Passport::authorizationView(function ($parameters) {
    return view('mcp.authorize', $parameters);
});

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