Skip to main content
Glama
AscendServiceProvider.php1.18 kB
<?php declare(strict_types=1); namespace GoldenPathDigital\LaravelAscend\Providers; use GoldenPathDigital\LaravelAscend\Console\RegisterCommand; use GoldenPathDigital\LaravelAscend\Console\ServeCommand; use GoldenPathDigital\LaravelAscend\Server\AscendServer; use Illuminate\Support\ServiceProvider; class AscendServiceProvider extends ServiceProvider { public function register(): void { $this->mergeConfigFrom( __DIR__ . '/../../config/ascend.php', 'ascend' ); // Register AscendServer as singleton for facade support $this->app->singleton(AscendServer::class, function ($app) { $knowledgeBasePath = config('ascend.knowledge_base.path'); return AscendServer::createDefault($knowledgeBasePath); }); } public function boot(): void { if ($this->app->runningInConsole()) { $this->commands([ ServeCommand::class, RegisterCommand::class, ]); $this->publishes([ __DIR__ . '/../../config/ascend.php' => config_path('ascend.php'), ], 'ascend-config'); } } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aarongrtech/laravel-ascend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server