diff --git a/README.md b/README.md
index 972d87a..7a3abe6 100644
--- a/README.md
+++ b/README.md
@@ -1,19 +1,19 @@
-# Laravel Restify MCP Server
+# Restify Boost
-[](https://packagist.org/packages/binarcode/laravel-restify-mcp)
-[](https://github.com/binarcode/laravel-restify-mcp/actions?query=workflow%3Arun-tests+branch%3Amain)
+[](https://packagist.org/packages/binarcode/restify-boost)
+[](https://github.com/binarcode/restify-boost/actions?query=workflow%3Arun-tests+branch%3Amain)
The first fully customizable Laravel [JSON:API](https://jsonapi.org) builder with MCP and GraphQL support. "CRUD" and protect your resources with 0 (zero) extra line of code.
## Introduction
-Laravel Restify MCP Server accelerates AI-assisted [Laravel Restify](https://github.com/binarcode/laravel-restify) development by providing comprehensive documentation access through the Model Context Protocol.
+Restify Boost accelerates AI-assisted [Laravel Restify](https://github.com/binarcode/laravel-restify) development by providing comprehensive documentation access and code generation tools through the Model Context Protocol.
At its foundation, this package is an MCP server equipped with specialized tools designed to streamline Laravel Restify development workflows. The server provides access to complete documentation, API references, code examples, and troubleshooting guides.
@@ -25,16 +25,16 @@ At its foundation, this package is an MCP server equipped with specialized tools
## Installation
-Laravel Restify MCP Server can be installed via Composer:
+Restify Boost can be installed via Composer:
```bash
-composer require binarcode/laravel-restify-mcp --dev
+composer require binarcode/restify-boost --dev
```
Next, install the MCP server:
```bash
-php artisan restify-mcp:install
+php artisan restify-boost:install
```
Once installed, you're ready to start coding with Cursor, Claude Code, or your AI agent of choice.
@@ -59,11 +59,11 @@ Once installed, you're ready to start coding with Cursor, Claude Code, or your A
## Manually Registering the MCP Server
-Sometimes you may need to manually register the Laravel Restify MCP server with your editor of choice. You should register the MCP server using the following details:
+Sometimes you may need to manually register the Restify Boost MCP server with your editor of choice. You should register the MCP server using the following details:
| Command | php |
-| Args | ./artisan restify-mcp:start |
+| Args | ./artisan restify-boost:start |
JSON Example:
@@ -71,9 +71,9 @@ JSON Example:
```json
{
"mcpServers": {
- "laravel-restify-mcp": {
+ "restify-boost": {
"command": "php",
- "args": ["./artisan", "restify-mcp:start"]
+ "args": ["./artisan", "restify-boost:start"]
}
}
}
@@ -81,7 +81,7 @@ JSON Example:
## Contributing
-Thank you for considering contributing to Laravel Restify MCP Server! Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
+Thank you for considering contributing to Restify Boost! Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
@@ -94,4 +94,4 @@ Please review [our security policy](../../security/policy) on how to report secu
## License
-Laravel Restify MCP Server is open-sourced software licensed under the [MIT license](LICENSE.md).
+Restify Boost is open-sourced software licensed under the [MIT license](LICENSE.md).
diff --git a/composer.json b/composer.json
index 9677bfc..bc7ae8f 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
{
- "name": "binarcode/laravel-restify-mcp",
- "description": "Laravel Restify MCP server providing comprehensive documentation access through the Model Context Protocol for AI assistants.",
+ "name": "binarcode/restify-boost",
+ "description": "Restify Boost - AI-powered Laravel Restify assistant providing comprehensive documentation access and code generation tools.",
"keywords": [
"laravel",
"restify",
@@ -8,7 +8,7 @@
"documentation",
"ai"
],
- "homepage": "https://github.com/binarcode/laravel-restify-mcp",
+ "homepage": "https://github.com/binarcode/restify-boost",
"license": "MIT",
"authors": [
{
@@ -41,16 +41,18 @@
},
"autoload": {
"psr-4": {
- "BinarCode\\LaravelRestifyMcp\\": "src/"
+ "BinarCode\\RestifyBoost\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
- "BinarCode\\LaravelRestifyMcp\\Tests\\": "tests/"
+ "BinarCode\\RestifyBoost\\Tests\\": "tests/"
}
},
"scripts": {
- "post-autoload-dump": "@composer run prepare",
+ "post-autoload-dump": [
+ "@php -r \"file_exists('vendor/bin/testbench') && passthru('vendor/bin/testbench package:discover --ansi') || exit(0);\""
+ ],
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"lint": [
"vendor/bin/pint",
@@ -76,7 +78,7 @@
},
"laravel": {
"providers": [
- "BinarCode\\LaravelRestifyMcp\\LaravelRestifyMcpServiceProvider"
+ "BinarCode\\RestifyBoost\\RestifyBoostServiceProvider"
]
}
},
diff --git a/config/restify-mcp.php b/config/restify-boost.php
similarity index 99%
rename from config/restify-mcp.php
rename to config/restify-boost.php
index 18ab1c5..ad33707 100644
--- a/config/restify-mcp.php
+++ b/config/restify-boost.php
@@ -104,6 +104,7 @@
*/
'paths' => [
'primary' => env('RESTIFY_DOCS_PATH', base_path('vendor/binaryk/laravel-restify/docs-v2/content/en')),
+ 'fallback' => base_path('src/Docs/en'),
],
/*
diff --git a/src/Commands/ExecuteToolCommand.php b/src/Commands/ExecuteToolCommand.php
index 72f4c43..6950156 100644
--- a/src/Commands/ExecuteToolCommand.php
+++ b/src/Commands/ExecuteToolCommand.php
@@ -2,21 +2,21 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Commands;
-
-use BinarCode\LaravelRestifyMcp\Mcp\RestifyDocs;
-use BinarCode\LaravelRestifyMcp\Mcp\Tools\GenerateActionTool;
-use BinarCode\LaravelRestifyMcp\Mcp\Tools\GenerateGetterTool;
-use BinarCode\LaravelRestifyMcp\Mcp\Tools\GenerateRepositoryTool;
-use BinarCode\LaravelRestifyMcp\Mcp\Tools\GetCodeExamples;
-use BinarCode\LaravelRestifyMcp\Mcp\Tools\NavigateDocs;
-use BinarCode\LaravelRestifyMcp\Mcp\Tools\SearchRestifyDocs;
+namespace BinarCode\RestifyBoost\Commands;
+
+use BinarCode\RestifyBoost\Mcp\RestifyDocs;
+use BinarCode\RestifyBoost\Mcp\Tools\GenerateActionTool;
+use BinarCode\RestifyBoost\Mcp\Tools\GenerateGetterTool;
+use BinarCode\RestifyBoost\Mcp\Tools\GenerateRepositoryTool;
+use BinarCode\RestifyBoost\Mcp\Tools\GetCodeExamples;
+use BinarCode\RestifyBoost\Mcp\Tools\NavigateDocs;
+use BinarCode\RestifyBoost\Mcp\Tools\SearchRestifyDocs;
use Illuminate\Console\Command;
use Laravel\Mcp\Server\Tools\ToolResult;
class ExecuteToolCommand extends Command
{
- protected $signature = 'restify-mcp:execute
+ protected $signature = 'restify-boost:execute
{tool : The MCP tool to execute (search-restify-docs, get-code-examples, navigate-docs, generate-repository, generate-action, generate-getter)}
{--queries=* : Search queries (for search-restify-docs)}
{--topic= : Topic for code examples (for get-code-examples)}
diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php
index 55d5519..c3be062 100644
--- a/src/Commands/InstallCommand.php
+++ b/src/Commands/InstallCommand.php
@@ -2,16 +2,16 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Commands;
+namespace BinarCode\RestifyBoost\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\File;
class InstallCommand extends Command
{
- protected $signature = 'restify-mcp:install';
+ protected $signature = 'restify-boost:install';
- protected $description = 'Install and configure the Laravel Restify MCP package';
+ protected $description = 'Install and configure the Restify Boost package';
public function handle(): int
{
@@ -20,7 +20,7 @@ public function handle(): int
// Publish configuration file
$this->line('Publishing configuration file...');
$this->call('vendor:publish', [
- '--tag' => 'restify-mcp-config',
+ '--tag' => 'restify-boost-config',
'--force' => true,
]);
@@ -53,10 +53,10 @@ protected function displayWelcome(): void
{
$this->newLine();
$this->info('┌─────────────────────────────────────────┐');
- $this->info('│ Laravel Restify MCP Setup │');
+ $this->info('│ Restify Boost Setup │');
$this->info('└─────────────────────────────────────────┘');
$this->newLine();
- $this->line('This will set up the MCP server to provide Laravel Restify');
+ $this->line('This will set up Restify Boost to provide Laravel Restify');
$this->line('documentation access to AI assistants like Claude Code.');
$this->newLine();
}
@@ -159,7 +159,7 @@ protected function displayClaudeSetupInstructions(): void
'mcpServers' => [
'laravel-restify' => [
'command' => 'php',
- 'args' => ['artisan', 'restify-mcp:start'],
+ 'args' => ['artisan', 'restify-boost:start'],
],
],
], JSON_PRETTY_PRINT));
@@ -184,7 +184,7 @@ protected function displayCursorSetupInstructions(): void
$this->line('2. Navigate to Extensions → MCP');
$this->line('3. Add a new MCP server:');
$this->line(' - Name: Laravel Restify Docs');
- $this->line(' - Command: php artisan restify-mcp:start');
+ $this->line(' - Command: php artisan restify-boost:start');
$this->line(' - Working Directory: '.base_path());
$this->newLine();
}
@@ -196,7 +196,7 @@ protected function displayGeneralMcpInstructions(): void
$this->newLine();
$this->line('For any MCP-compatible AI assistant:');
- $this->line('1. Start the MCP server: php artisan restify-mcp:start');
+ $this->line('1. Start the MCP server: php artisan restify-boost:start');
$this->line('2. The server will be available on localhost:8080');
$this->line('3. Configure your AI assistant to connect to this endpoint');
$this->newLine();
@@ -211,19 +211,19 @@ protected function displayGeneralMcpInstructions(): void
protected function displayCompletion(): void
{
$this->newLine();
- $this->info('✅ Laravel Restify MCP package installed successfully!');
+ $this->info('✅ Restify Boost package installed successfully!');
$this->newLine();
$this->info('🚀 Quick Start:');
- $this->line('1. Test the installation: php artisan restify-mcp:execute search-restify-docs --queries="repository"');
- $this->line('2. Generate a repository: php artisan restify-mcp:execute generate-repository --model-name="User"');
- $this->line('3. Browse documentation: php artisan restify-mcp:execute navigate-docs --action="overview"');
- $this->line('4. Start MCP server: php artisan restify-mcp:start');
+ $this->line('1. Test the installation: php artisan restify-boost:execute search-restify-docs --queries="repository"');
+ $this->line('2. Generate a repository: php artisan restify-boost:execute generate-repository --model-name="User"');
+ $this->line('3. Browse documentation: php artisan restify-boost:execute navigate-docs --action="overview"');
+ $this->line('4. Start MCP server: php artisan restify-boost:start');
$this->line('5. Configure your AI assistant to use the MCP server');
$this->newLine();
- $this->line('Configuration file: config/restify-mcp.php');
- $this->line('Documentation: https://github.com/binarcode/laravel-restify-mcp');
+ $this->line('Configuration file: config/restify-boost.php');
+ $this->line('Documentation: https://github.com/binarcode/restify-boost');
$this->newLine();
}
@@ -264,7 +264,7 @@ protected function createMcpConfigFile(): bool
// Add our MCP server configuration
$config['mcpServers']['laravel-restify'] = [
'command' => 'php',
- 'args' => ['artisan', 'restify-mcp:start'],
+ 'args' => ['artisan', 'restify-boost:start'],
];
// Write the updated config
@@ -300,8 +300,8 @@ protected function verifyRestifyInstallation(): bool
protected function checkDocumentationPaths(): void
{
- $primaryPath = config('restify-mcp.docs.paths.primary');
- $legacyPath = config('restify-mcp.docs.paths.legacy');
+ $primaryPath = config('restify-boost.docs.paths.primary');
+ $legacyPath = config('restify-boost.docs.paths.legacy');
$foundDocs = false;
diff --git a/src/Commands/StartCommand.php b/src/Commands/StartCommand.php
index 5060bee..ea3c613 100644
--- a/src/Commands/StartCommand.php
+++ b/src/Commands/StartCommand.php
@@ -2,13 +2,13 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Commands;
+namespace BinarCode\RestifyBoost\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
use Symfony\Component\Console\Attribute\AsCommand;
-#[AsCommand('restify-mcp:start', 'Starts Laravel Restify (usually from mcp.json)')]
+#[AsCommand('restify-boost:start', 'Starts Restify Boost (usually from mcp.json)')]
class StartCommand extends Command
{
public function handle(): int
diff --git a/src/Concerns/MakesHttpRequests.php b/src/Concerns/MakesHttpRequests.php
index 56ca015..3ba7b5d 100644
--- a/src/Concerns/MakesHttpRequests.php
+++ b/src/Concerns/MakesHttpRequests.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Concerns;
+namespace BinarCode\RestifyBoost\Concerns;
use Illuminate\Http\Client\PendingRequest;
use Illuminate\Http\Client\Response;
diff --git a/src/Contracts/McpClient.php b/src/Contracts/McpClient.php
index 399b6c0..ebd1928 100644
--- a/src/Contracts/McpClient.php
+++ b/src/Contracts/McpClient.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Contracts;
+namespace BinarCode\RestifyBoost\Contracts;
interface McpClient
{
diff --git a/src/Install/CodeEnvironment/ClaudeDesktop.php b/src/Install/CodeEnvironment/ClaudeDesktop.php
index a8d9f4b..53efc20 100644
--- a/src/Install/CodeEnvironment/ClaudeDesktop.php
+++ b/src/Install/CodeEnvironment/ClaudeDesktop.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Install\CodeEnvironment;
+namespace BinarCode\RestifyBoost\Install\CodeEnvironment;
-use BinarCode\LaravelRestifyMcp\Contracts\McpClient;
+use BinarCode\RestifyBoost\Contracts\McpClient;
class ClaudeDesktop extends CodeEnvironment implements McpClient
{
diff --git a/src/Install/CodeEnvironment/CodeEnvironment.php b/src/Install/CodeEnvironment/CodeEnvironment.php
index b4ddaf6..526408b 100644
--- a/src/Install/CodeEnvironment/CodeEnvironment.php
+++ b/src/Install/CodeEnvironment/CodeEnvironment.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Install\CodeEnvironment;
+namespace BinarCode\RestifyBoost\Install\CodeEnvironment;
use Illuminate\Contracts\Filesystem\FileNotFoundException;
use Illuminate\Support\Facades\File;
diff --git a/src/Install/CodeEnvironment/Cursor.php b/src/Install/CodeEnvironment/Cursor.php
index 6fa7d3d..25323fc 100644
--- a/src/Install/CodeEnvironment/Cursor.php
+++ b/src/Install/CodeEnvironment/Cursor.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Install\CodeEnvironment;
+namespace BinarCode\RestifyBoost\Install\CodeEnvironment;
-use BinarCode\LaravelRestifyMcp\Contracts\McpClient;
+use BinarCode\RestifyBoost\Contracts\McpClient;
class Cursor extends CodeEnvironment implements McpClient
{
diff --git a/src/Install/CodeEnvironment/VSCode.php b/src/Install/CodeEnvironment/VSCode.php
index ff93fb7..0094892 100644
--- a/src/Install/CodeEnvironment/VSCode.php
+++ b/src/Install/CodeEnvironment/VSCode.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Install\CodeEnvironment;
+namespace BinarCode\RestifyBoost\Install\CodeEnvironment;
-use BinarCode\LaravelRestifyMcp\Contracts\McpClient;
+use BinarCode\RestifyBoost\Contracts\McpClient;
class VSCode extends CodeEnvironment implements McpClient
{
diff --git a/src/Install/CodeEnvironmentsDetector.php b/src/Install/CodeEnvironmentsDetector.php
index d820fcd..429135f 100644
--- a/src/Install/CodeEnvironmentsDetector.php
+++ b/src/Install/CodeEnvironmentsDetector.php
@@ -2,12 +2,12 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Install;
+namespace BinarCode\RestifyBoost\Install;
-use BinarCode\LaravelRestifyMcp\Install\CodeEnvironment\ClaudeDesktop;
-use BinarCode\LaravelRestifyMcp\Install\CodeEnvironment\CodeEnvironment;
-use BinarCode\LaravelRestifyMcp\Install\CodeEnvironment\Cursor;
-use BinarCode\LaravelRestifyMcp\Install\CodeEnvironment\VSCode;
+use BinarCode\RestifyBoost\Install\CodeEnvironment\ClaudeDesktop;
+use BinarCode\RestifyBoost\Install\CodeEnvironment\CodeEnvironment;
+use BinarCode\RestifyBoost\Install\CodeEnvironment\Cursor;
+use BinarCode\RestifyBoost\Install\CodeEnvironment\VSCode;
use Illuminate\Container\Container;
use Illuminate\Support\Collection;
diff --git a/src/Install/DisplayHelper.php b/src/Install/DisplayHelper.php
index 77a5fc5..6aef154 100644
--- a/src/Install/DisplayHelper.php
+++ b/src/Install/DisplayHelper.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Install;
+namespace BinarCode\RestifyBoost\Install;
use InvalidArgumentException;
diff --git a/src/Mcp/Prompts/RestifyHowTo.php b/src/Mcp/Prompts/RestifyHowTo.php
index dbbe5aa..42419bd 100644
--- a/src/Mcp/Prompts/RestifyHowTo.php
+++ b/src/Mcp/Prompts/RestifyHowTo.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Prompts;
+namespace BinarCode\RestifyBoost\Mcp\Prompts;
-use BinarCode\LaravelRestifyMcp\Services\DocIndexer;
+use BinarCode\RestifyBoost\Services\DocIndexer;
use Laravel\Mcp\Server\Prompt;
use Laravel\Mcp\Server\Prompts\PromptInputSchema;
use Laravel\Mcp\Server\Prompts\PromptResult;
diff --git a/src/Mcp/Prompts/RestifyTroubleshooting.php b/src/Mcp/Prompts/RestifyTroubleshooting.php
index 4bf7d03..df0d358 100644
--- a/src/Mcp/Prompts/RestifyTroubleshooting.php
+++ b/src/Mcp/Prompts/RestifyTroubleshooting.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Prompts;
+namespace BinarCode\RestifyBoost\Mcp\Prompts;
-use BinarCode\LaravelRestifyMcp\Services\DocIndexer;
+use BinarCode\RestifyBoost\Services\DocIndexer;
use Laravel\Mcp\Server\Prompt;
use Laravel\Mcp\Server\Prompts\PromptInputSchema;
use Laravel\Mcp\Server\Prompts\PromptResult;
diff --git a/src/Mcp/Resources/RestifyApiReference.php b/src/Mcp/Resources/RestifyApiReference.php
index f0d1a1d..360ae3c 100644
--- a/src/Mcp/Resources/RestifyApiReference.php
+++ b/src/Mcp/Resources/RestifyApiReference.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Resources;
+namespace BinarCode\RestifyBoost\Mcp\Resources;
-use BinarCode\LaravelRestifyMcp\Services\DocParser;
+use BinarCode\RestifyBoost\Services\DocParser;
use Laravel\Mcp\Server\Contracts\Resources\Content;
use Laravel\Mcp\Server\Resource;
diff --git a/src/Mcp/Resources/RestifyDocumentation.php b/src/Mcp/Resources/RestifyDocumentation.php
index 51a3589..6e98c68 100644
--- a/src/Mcp/Resources/RestifyDocumentation.php
+++ b/src/Mcp/Resources/RestifyDocumentation.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Resources;
+namespace BinarCode\RestifyBoost\Mcp\Resources;
-use BinarCode\LaravelRestifyMcp\Services\DocParser;
+use BinarCode\RestifyBoost\Services\DocParser;
use Laravel\Mcp\Server\Contracts\Resources\Content;
use Laravel\Mcp\Server\Resource;
@@ -39,8 +39,8 @@ public function read(): string|Content
protected function loadDocumentation(): array
{
- $primaryPath = config('restify-mcp.docs.paths.primary');
- $legacyPath = config('restify-mcp.docs.paths.legacy');
+ $primaryPath = config('restify-boost.docs.paths.primary');
+ $fallbackPath = config('restify-boost.docs.paths.fallback');
$documentation = [];
@@ -49,9 +49,9 @@ protected function loadDocumentation(): array
$documentation['current'] = $this->loadDocumentationFromPath($primaryPath, 'v2');
}
- // Load legacy documentation
- if (is_dir($legacyPath)) {
- $documentation['legacy'] = $this->loadDocumentationFromPath($legacyPath, 'v1');
+ // Load fallback documentation
+ if (is_dir($fallbackPath)) {
+ $documentation['fallback'] = $this->loadDocumentationFromPath($fallbackPath, 'v2');
}
return $documentation;
@@ -60,7 +60,7 @@ protected function loadDocumentation(): array
protected function loadDocumentationFromPath(string $basePath, string $version): array
{
$sections = [];
- $categories = config('restify-mcp.categories', []);
+ $categories = config('restify-boost.categories', []);
foreach ($categories as $categoryKey => $categoryConfig) {
$categoryDocs = [];
@@ -123,13 +123,13 @@ protected function findDocumentationFiles(string $basePath, string $pattern): ar
protected function truncateContent(string $content): string
{
- $maxLength = config('restify-mcp.docs.processing.max_content_length', 10000);
+ $maxLength = config('restify-boost.docs.processing.max_content_length', 10000);
if (strlen($content) <= $maxLength) {
return $content;
}
- $strategy = config('restify-mcp.optimization.truncate_strategy', 'smart');
+ $strategy = config('restify-boost.optimization.truncate_strategy', 'smart');
return match ($strategy) {
'smart' => $this->smartTruncate($content, $maxLength),
diff --git a/src/Mcp/RestifyDocs.php b/src/Mcp/RestifyDocs.php
index 9c5fce1..27802de 100644
--- a/src/Mcp/RestifyDocs.php
+++ b/src/Mcp/RestifyDocs.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp;
+namespace BinarCode\RestifyBoost\Mcp;
use Laravel\Mcp\Server;
@@ -38,7 +38,7 @@ protected function discoverTools(): array
$toolDir = new \DirectoryIterator($toolsPath);
foreach ($toolDir as $toolFile) {
if ($toolFile->isFile() && $toolFile->getExtension() === 'php') {
- $fqdn = 'BinarCode\\LaravelRestifyMcp\\Mcp\\Tools\\'.$toolFile->getBasename('.php');
+ $fqdn = 'BinarCode\\RestifyBoost\\Mcp\\Tools\\'.$toolFile->getBasename('.php');
if (class_exists($fqdn) && ! in_array($fqdn, $excludedTools, true)) {
$this->addTool($fqdn);
}
@@ -70,7 +70,7 @@ protected function discoverResources(): array
$resourceDir = new \DirectoryIterator($resourcesPath);
foreach ($resourceDir as $resourceFile) {
if ($resourceFile->isFile() && $resourceFile->getExtension() === 'php') {
- $fqdn = 'BinarCode\\LaravelRestifyMcp\\Mcp\\Resources\\'.$resourceFile->getBasename('.php');
+ $fqdn = 'BinarCode\\RestifyBoost\\Mcp\\Resources\\'.$resourceFile->getBasename('.php');
if (class_exists($fqdn) && ! in_array($fqdn, $excludedResources, true)) {
$this->addResource($fqdn);
}
@@ -102,7 +102,7 @@ protected function discoverPrompts(): array
$promptDir = new \DirectoryIterator($promptsPath);
foreach ($promptDir as $promptFile) {
if ($promptFile->isFile() && $promptFile->getExtension() === 'php') {
- $fqdn = 'BinarCode\\LaravelRestifyMcp\\Mcp\\Prompts\\'.$promptFile->getBasename('.php');
+ $fqdn = 'BinarCode\\RestifyBoost\\Mcp\\Prompts\\'.$promptFile->getBasename('.php');
if (class_exists($fqdn) && ! in_array($fqdn, $excludedPrompts, true)) {
$this->addPrompt($fqdn);
}
diff --git a/src/Mcp/ToolRegistry.php b/src/Mcp/ToolRegistry.php
index a3d8375..d10d0ea 100644
--- a/src/Mcp/ToolRegistry.php
+++ b/src/Mcp/ToolRegistry.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp;
+namespace BinarCode\RestifyBoost\Mcp;
use Symfony\Component\Finder\Finder;
@@ -69,7 +69,7 @@ private static function discoverTools(): array
->name('*.php');
foreach ($finder as $toolFile) {
- $fullyClassifiedClassName = 'BinarCode\\LaravelRestifyMcp\\Mcp\\Tools\\'.$toolFile->getBasename('.php');
+ $fullyClassifiedClassName = 'BinarCode\\RestifyBoost\\Mcp\\Tools\\'.$toolFile->getBasename('.php');
if (class_exists($fullyClassifiedClassName)) {
$tools[] = $fullyClassifiedClassName;
}
diff --git a/src/Mcp/Tools/GenerateActionTool.php b/src/Mcp/Tools/GenerateActionTool.php
index e314208..5e7c363 100644
--- a/src/Mcp/Tools/GenerateActionTool.php
+++ b/src/Mcp/Tools/GenerateActionTool.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Tools;
+namespace BinarCode\RestifyBoost\Mcp\Tools;
use Generator;
use Illuminate\Support\Facades\File;
diff --git a/src/Mcp/Tools/GenerateGetterTool.php b/src/Mcp/Tools/GenerateGetterTool.php
index e70b8ec..8f89650 100644
--- a/src/Mcp/Tools/GenerateGetterTool.php
+++ b/src/Mcp/Tools/GenerateGetterTool.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Tools;
+namespace BinarCode\RestifyBoost\Mcp\Tools;
use Generator;
use Illuminate\Support\Facades\File;
diff --git a/src/Mcp/Tools/GenerateMatchFilterTool.php b/src/Mcp/Tools/GenerateMatchFilterTool.php
index 46fd4d2..3297894 100644
--- a/src/Mcp/Tools/GenerateMatchFilterTool.php
+++ b/src/Mcp/Tools/GenerateMatchFilterTool.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Tools;
+namespace BinarCode\RestifyBoost\Mcp\Tools;
use Laravel\Mcp\Server\Tool;
use Laravel\Mcp\Server\Tools\ToolResult;
diff --git a/src/Mcp/Tools/GenerateRepositoryTool.php b/src/Mcp/Tools/GenerateRepositoryTool.php
index e683bb0..f0b9b93 100644
--- a/src/Mcp/Tools/GenerateRepositoryTool.php
+++ b/src/Mcp/Tools/GenerateRepositoryTool.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Tools;
+namespace BinarCode\RestifyBoost\Mcp\Tools;
use Generator;
use Illuminate\Support\Facades\File;
diff --git a/src/Mcp/Tools/GetCodeExamples.php b/src/Mcp/Tools/GetCodeExamples.php
index b57d278..8679eb3 100644
--- a/src/Mcp/Tools/GetCodeExamples.php
+++ b/src/Mcp/Tools/GetCodeExamples.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Tools;
+namespace BinarCode\RestifyBoost\Mcp\Tools;
-use BinarCode\LaravelRestifyMcp\Services\DocIndexer;
+use BinarCode\RestifyBoost\Services\DocIndexer;
use Generator;
use Laravel\Mcp\Server\Tool;
use Laravel\Mcp\Server\Tools\ToolInputSchema;
diff --git a/src/Mcp/Tools/NavigateDocs.php b/src/Mcp/Tools/NavigateDocs.php
index 77fa7e4..cdace6c 100644
--- a/src/Mcp/Tools/NavigateDocs.php
+++ b/src/Mcp/Tools/NavigateDocs.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Tools;
+namespace BinarCode\RestifyBoost\Mcp\Tools;
-use BinarCode\LaravelRestifyMcp\Services\DocIndexer;
+use BinarCode\RestifyBoost\Services\DocIndexer;
use Generator;
use Laravel\Mcp\Server\Tool;
use Laravel\Mcp\Server\Tools\ToolInputSchema;
diff --git a/src/Mcp/Tools/SearchRestifyDocs.php b/src/Mcp/Tools/SearchRestifyDocs.php
index 5318535..efb65fc 100644
--- a/src/Mcp/Tools/SearchRestifyDocs.php
+++ b/src/Mcp/Tools/SearchRestifyDocs.php
@@ -2,9 +2,9 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Mcp\Tools;
+namespace BinarCode\RestifyBoost\Mcp\Tools;
-use BinarCode\LaravelRestifyMcp\Services\DocIndexer;
+use BinarCode\RestifyBoost\Services\DocIndexer;
use Generator;
use Laravel\Mcp\Server\Tool;
use Laravel\Mcp\Server\Tools\ToolInputSchema;
@@ -59,7 +59,7 @@ public function handle(array $arguments): ToolResult|Generator
try {
$queries = array_filter(
array_map('trim', $arguments['queries']),
- fn ($query) => $query !== '' && strlen($query) >= config('restify-mcp.search.min_query_length', 2)
+ fn ($query) => $query !== '' && strlen($query) >= config('restify-boost.search.min_query_length', 2)
);
if (empty($queries)) {
@@ -69,12 +69,12 @@ public function handle(array $arguments): ToolResult|Generator
$questionType = $arguments['question_type'] ?? null;
$category = $arguments['category'] ?? null;
$limit = min(
- $arguments['limit'] ?? config('restify-mcp.search.default_limit', 10),
- config('restify-mcp.search.max_limit', 50)
+ $arguments['limit'] ?? config('restify-boost.search.default_limit', 10),
+ config('restify-boost.search.max_limit', 50)
);
$tokenLimit = min(
- $arguments['token_limit'] ?? config('restify-mcp.optimization.default_token_limit', 10000),
- config('restify-mcp.optimization.max_token_limit', 100000)
+ $arguments['token_limit'] ?? config('restify-boost.optimization.default_token_limit', 10000),
+ config('restify-boost.optimization.max_token_limit', 100000)
);
// Initialize indexer with documentation
@@ -109,11 +109,11 @@ protected function initializeIndexer(): void
protected function getDocumentationPaths(): array
{
$paths = [];
- $docsPath = config('restify-mcp.docs.paths.primary');
- $legacyPath = config('restify-mcp.docs.paths.legacy');
+ $primaryPath = config('restify-boost.docs.paths.primary');
+ $fallbackPath = config('restify-boost.docs.paths.fallback');
// Scan for markdown files in documentation directories
- foreach ([$docsPath, $legacyPath] as $basePath) {
+ foreach ([$primaryPath, $fallbackPath] as $basePath) {
if (is_dir($basePath)) {
$paths = array_merge($paths, $this->scanDirectoryForMarkdown($basePath));
}
@@ -221,7 +221,7 @@ protected function formatResults(array $allResults, int $tokenLimit, ?string $qu
}
// Add code examples if prioritized and available
- if (config('restify-mcp.optimization.prioritize_code_examples') && ! empty($result['matched_code_examples'])) {
+ if (config('restify-boost.optimization.prioritize_code_examples') && ! empty($result['matched_code_examples'])) {
$resultSection .= "**Code examples:**\n";
foreach (array_slice($result['matched_code_examples'], 0, 2) as $example) {
$resultSection .= "```{$example['language']}\n{$example['code']}\n```\n\n";
diff --git a/src/LaravelRestifyMcpServiceProvider.php b/src/RestifyBoostServiceProvider.php
similarity index 65%
rename from src/LaravelRestifyMcpServiceProvider.php
rename to src/RestifyBoostServiceProvider.php
index ca16406..e4467ec 100644
--- a/src/LaravelRestifyMcpServiceProvider.php
+++ b/src/RestifyBoostServiceProvider.php
@@ -2,25 +2,25 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp;
+namespace BinarCode\RestifyBoost;
-use BinarCode\LaravelRestifyMcp\Commands\ExecuteToolCommand;
-use BinarCode\LaravelRestifyMcp\Commands\InstallCommand;
-use BinarCode\LaravelRestifyMcp\Commands\StartCommand;
-use BinarCode\LaravelRestifyMcp\Mcp\RestifyDocs;
-use BinarCode\LaravelRestifyMcp\Services\DocCache;
-use BinarCode\LaravelRestifyMcp\Services\DocIndexer;
-use BinarCode\LaravelRestifyMcp\Services\DocParser;
+use BinarCode\RestifyBoost\Commands\ExecuteToolCommand;
+use BinarCode\RestifyBoost\Commands\InstallCommand;
+use BinarCode\RestifyBoost\Commands\StartCommand;
+use BinarCode\RestifyBoost\Mcp\RestifyDocs;
+use BinarCode\RestifyBoost\Services\DocCache;
+use BinarCode\RestifyBoost\Services\DocIndexer;
+use BinarCode\RestifyBoost\Services\DocParser;
use Illuminate\Support\ServiceProvider;
use Laravel\Mcp\Server\Facades\Mcp;
-class LaravelRestifyMcpServiceProvider extends ServiceProvider
+class RestifyBoostServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->mergeConfigFrom(
- __DIR__.'/../config/restify-mcp.php',
- 'restify-mcp'
+ __DIR__.'/../config/restify-boost.php',
+ 'restify-boost'
);
if (! $this->shouldRun()) {
@@ -50,8 +50,8 @@ private function registerPublishing(): void
{
if ($this->app->runningInConsole()) {
$this->publishes([
- __DIR__.'/../config/restify-mcp.php' => config_path('restify-mcp.php'),
- ], 'restify-mcp-config');
+ __DIR__.'/../config/restify-boost.php' => config_path('restify-boost.php'),
+ ], 'restify-boost-config');
}
}
@@ -68,7 +68,7 @@ private function registerCommands(): void
private function shouldRun(): bool
{
- if (! config('restify-mcp.enabled', true)) {
+ if (! config('restify-boost.enabled', true)) {
return false;
}
diff --git a/src/Services/DocCache.php b/src/Services/DocCache.php
index 07e2ebf..7428def 100644
--- a/src/Services/DocCache.php
+++ b/src/Services/DocCache.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Services;
+namespace BinarCode\RestifyBoost\Services;
use Illuminate\Contracts\Cache\Repository;
use Illuminate\Support\Facades\Cache;
diff --git a/src/Services/DocIndexer.php b/src/Services/DocIndexer.php
index 52a21f3..38fe40e 100644
--- a/src/Services/DocIndexer.php
+++ b/src/Services/DocIndexer.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Services;
+namespace BinarCode\RestifyBoost\Services;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
diff --git a/src/Services/DocParser.php b/src/Services/DocParser.php
index f73cdeb..13f084f 100644
--- a/src/Services/DocParser.php
+++ b/src/Services/DocParser.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace BinarCode\LaravelRestifyMcp\Services;
+namespace BinarCode\RestifyBoost\Services;
use Symfony\Component\Yaml\Yaml;
diff --git a/tests/Pest.php b/tests/Pest.php
index d3b7299..019d3a6 100644
--- a/tests/Pest.php
+++ b/tests/Pest.php
@@ -1,5 +1,5 @@
in(__DIR__);
diff --git a/tests/TestCase.php b/tests/TestCase.php
index 369468a..722ed7a 100644
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -1,8 +1,8 @@