Changelog

laravel-rust-mcp-oauth Alpha Laravel for Rust

All notable changes to this package. The format follows Keep a Changelog, and versions follow the package standards' versioning rules: while the version is 0.x, a minor release may break, a patch never does.

[Unreleased]

[0.1.0] - 2026-12-05

First release. Requires laravel-rust 0.2 and Rust 1.99. The postgres feature is on by default; MySQL and SQLite applications use default-features = false with mysql or sqlite (laravel/rust-framework#419).

Added

  • An OAuth 2.1 authorization server for MCP servers in Laravel for Rust, so assistants such as Claude, ChatGPT, Cursor and VS Code can connect with a sign-in and an approval click:
    • discovery documents for protected resources (RFC 9728) and the authorization server (RFC 8414);
    • client registration with Client ID Metadata Documents and dynamic registration (RFC 7591), public clients only;
    • authorization with PKCE S256, resource indicators (RFC 8707) and the iss parameter (RFC 9207);
    • an approval page on the application's own sign-in that names apps by evidence and warns about unreviewed apps, look-alike names and local programs, as overridable MiniJinja views;
    • opaque tokens stored as SHA-256 digests, refresh rotation with a two-minute retry window, and replay detection that revokes the connection;
    • revocation (RFC 7009) of a whole connection.
  • McpAuthenticate, middleware that protects an MCP route: guest methods such as server/discover, the 401, 403 and 503 answers clients discover the server from, scope checks before the route runs, and an Origin check. McpGrant and McpUser extractors and the McpTokens request guard.
  • A fetcher for client metadata documents that only reaches public HTTPS addresses, with no redirects, a 5-second timeout and a 10 KB cap.
  • Storage on PostgreSQL, MySQL and SQLite with a configurable table prefix, so an application can share the tables with another implementation of the same schema.
  • McpOAuth for a connected-apps page (connections, revoke, revoke_all), the GrantCreated, GrantRevoked and RefreshTokenReplayed events, the mcp-oauth:prune and mcp-oauth:clients commands and a daily prune.
  • McpOAuth::testing() helpers that issue real tokens in application tests.
  • A user guide, a threat model, end-to-end tests with the official Rust MCP SDK's OAuth client, conformance vectors and fuzz targets for every parser of untrusted input.