feat: agent token, auth.agent middleware, /mcp route with HadoServer skeleton
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
7
core/routes/ai.php
Normal file
7
core/routes/ai.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Mcp\HadoServer;
|
||||
use Laravel\Mcp\Facades\Mcp;
|
||||
|
||||
// Вход агента (§11): без сессии и CSRF (маршрут вне группы web), мимо forward_auth хаба.
|
||||
Mcp::web('/mcp', HadoServer::class)->middleware(['auth.agent', 'throttle:60,1']);
|
||||
Reference in New Issue
Block a user