Search by

sveda-ai / laravel-sdk

neresson

Laravel SDK for Sveda AI: HTTP client, embed sessions, and automatic host MCP server.

Package info

github.com/neresson/sveda-laravel-sdk

pkg:composer/sveda-ai/laravel-sdk

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-09-16 06:37 UTC

This package is auto-updated.

Last update: 2026-09-17 14:44:20 UTC


README

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