Looking to hire Laravel developers? Try LaraJobs

laravel-sdk maintained by sveda-ai

Description
Laravel SDK for Sveda AI: HTTP client, embed sessions, and automatic host MCP server.
Author
Last update
2026/09/18 11:10 (dev-main)
License
Downloads
2
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