Looking to hire Laravel developers? Try LaraJobs

laravel-sdk maintained by sveda-ai

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

Comments
comments powered by Disqus

sveda-laravel-sdk

Laravel SDK for integrating your application with Sveda AI without writing your own MCP server.

Packagist: sveda-ai/laravel-sdk

Install

composer require sveda-ai/laravel-sdk

sveda-ai/php-sdk is pulled in transitively.

Host integration

use Sveda\LaravelClient\Facades\SvedaClient;

SvedaClient::host()->resolveToolsUsing(fn () => [
    new SearchOrdersTool,
]);

SvedaClient::host()->authorizeUsing(function ($user) {
    return $user->is_active && $user->can('use-ai');
});

$session = SvedaClient::host()->startSession($user);

The package automatically registers /mcp/sveda (configurable) and mints Sanctum tokens for the sidecar.

License

MIT