Looking to hire Laravel developers? Try LaraJobs

laravel-client maintained by veda-ai

Description
Embed a Sveda AI agent in Laravel (sessions + host MCP). https://sveda.dev/docs/hosts/laravel
Author
Last update
2026/09/24 20:04 (dev-main)
License
Downloads
8
Tags

Comments
comments powered by Disqus

veda-ai/laravel-client

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