veda-ai / laravel-client
Laravel SDK for Veda AI: HTTP client, embed sessions, and automatic host MCP server.
v0.1.0
2026-09-16 06:37 UTC
Requires
- php: ^8.4
- illuminate/contracts: ^12.0 || ^13.0
- illuminate/http: ^12.0 || ^13.0
- illuminate/support: ^12.0 || ^13.0
- laravel/mcp: ^0.8.2
- laravel/sanctum: ^4.0
- veda-ai/client: ^0.1 || dev-main
Requires (Dev)
- laravel/framework: ^12.0 || ^13.0
- orchestra/testbench: ^10.0 || ^11.0
- phpunit/phpunit: ^11.0 || ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Laravel SDK for integrating your application with Veda AI without writing your own MCP server.
Install
composer require veda-ai/laravel-client
veda-ai/client is pulled in transitively.
Host integration
use Veda\LaravelClient\Facades\VedaClient; VedaClient::host()->resolveToolsUsing(fn () => [ new SearchOrdersTool, ]); VedaClient::host()->authorizeUsing(function ($user) { return $user->is_active && $user->can('use-ai'); }); $session = VedaClient::host()->startSession($user);
The package automatically registers /mcp/veda (configurable) and mints Sanctum tokens for the sidecar.
License
MIT