Add documentation links, refactor tools, and implement new tests

- Added links to QBCore and COX MySQL documentation in the main docs index.
- Refactored GenerateManifest and GenerateResourceBoilerplate tools to use the correct namespaces.
- Updated tests for GenerateManifest and GenerateResourceBoilerplate tools to remove unnecessary parentheses.
- Refactored COX event and function tools to use the correct namespaces and updated related tests.
- Introduced new tests for GetEventClientReference and GetEventServerReference tools.
- Added tests for inventory client and server functions, ensuring they handle various scenarios.
- Created tests for native client and server functions, including case insensitivity and example support.
- Implemented QBCore client and server event/function reference tests, ensuring proper functionality and error handling.
- Removed outdated tests for GetEventReference and GetQBCoreEventReference tools.
- Updated SearchFiveMDocs tool to use the correct namespace and improved test coverage.
This commit is contained in:
Adrian Mejias committed 2026-03-01 14:30:24 -06:00
1 parent a2591c2209
commit 4a4d9822e7
38 files changed
+2248 -818

No files matched your search

@@ -1,10 +1,10 @@
<?php
use App\Mcp\Tools\GenerateResourceBoilerplate;
use App\Mcp\Tools\FiveM\GenerateResourceBoilerplate;
use Laravel\Mcp\Request;
it('generate resource boilerplate returns response with content', function () {
$tool = new GenerateResourceBoilerplate();
$tool = new GenerateResourceBoilerplate;
$request = new Request(['resource_name' => 'test-resource']);
$response = $tool->handle($request);
@@ -14,7 +14,7 @@ it('generate resource boilerplate returns response with content', function () {
});
it('generate resource boilerplate includes resource name', function () {
$tool = new GenerateResourceBoilerplate();
$tool = new GenerateResourceBoilerplate;
$request = new Request(['resource_name' => 'my-boilerplate']);
$response = $tool->handle($request);