Update documentation index page with enhanced feature descriptions and external links
This commit is contained in:
3 files changed
+92
-50
No files matched your search
@@ -7,7 +7,7 @@ A comprehensive Model Context Protocol (MCP) server for FiveM (GTA5) development
|
|||||||
The FiveM MCP Server enables seamless integration with AI coding assistants (Claude, ChatGPT, etc.) to provide:
|
The FiveM MCP Server enables seamless integration with AI coding assistants (Claude, ChatGPT, etc.) to provide:
|
||||||
- **Native function lookups** with client/server separation
|
- **Native function lookups** with client/server separation
|
||||||
- **Event documentation** for all frameworks
|
- **Event documentation** for all frameworks
|
||||||
- **Framework support** for Standalone, ESX, QBCore, and COX
|
- **Framework support** for Standalone, ESX, QBCore, COX, and Prodigy Scripts (prp-bridge)
|
||||||
- **Resource generation** with customizable boilerplate
|
- **Resource generation** with customizable boilerplate
|
||||||
- **Documentation search** across FiveM, QBCore, and COX MySQL
|
- **Documentation search** across FiveM, QBCore, and COX MySQL
|
||||||
- **Code snippets and best practices** for common patterns
|
- **Code snippets and best practices** for common patterns
|
||||||
@@ -81,32 +81,45 @@ Configure in your AI client settings:
|
|||||||
|
|
||||||
## Tools
|
## Tools
|
||||||
|
|
||||||
The MCP server includes 15 powerful tools organized by framework and execution side:
|
The MCP server includes 30 powerful tools organized by framework and execution side:
|
||||||
|
|
||||||
### FiveM Core (5 tools)
|
### FiveM Core (7 tools)
|
||||||
- **SearchFiveMDocs** - Search FiveM, QBCore, and COX documentation
|
- **SearchFiveMDocs** - Search FiveM, QBCore, and COX documentation
|
||||||
- **GetNativeClientFunction** - Look up client-side native functions (10 natives)
|
- **GetNativeClientFunction** - Look up client-side native functions (10 natives)
|
||||||
- **GetNativeServerFunction** - Look up server-side native functions (12 natives)
|
- **GetNativeServerFunction** - Look up server-side native functions (12 natives)
|
||||||
- **GetEventClientReference** - Client-side event reference (5 events)
|
- **GetEventClientReference** - Client-side event reference (5 events)
|
||||||
- **GetEventServerReference** - Server-side event reference (4+ events)
|
- **GetEventServerReference** - Server-side event reference (4+ events)
|
||||||
|
- **GenerateManifest** - Generate fxmanifest.lua with framework support
|
||||||
|
- **GenerateResourceBoilerplate** - Complete resource scaffolding
|
||||||
|
|
||||||
### QBCore Framework (4 tools)
|
### QBCore Framework (9 tools)
|
||||||
- **GetQBCoreServerFunction** - QBCore server functions (13+ functions)
|
- **GetQBCoreServerFunction** - QBCore server functions (13+ functions)
|
||||||
- **GetQBCoreClientFunction** - QBCore client functions (6 functions)
|
- **GetQBCoreClientFunction** - QBCore client functions (6 functions)
|
||||||
- **GetQBCoreServerEventReference** - QBCore server events (6 events)
|
- **GetQBCoreServerEventReference** - QBCore server events (6 events)
|
||||||
- **GetQBCoreClientEventReference** - QBCore client events (6 events)
|
- **GetQBCoreClientEventReference** - QBCore client events (6 events)
|
||||||
|
- **GetQBCoreConfig** - QBCore configuration reference
|
||||||
|
- **GetQBCorePlayers** - Player management functions
|
||||||
|
- **GetQBCoreResourceList** - Available QBCore resources
|
||||||
|
- **GetQBCoreResourceReference** - Resource-specific documentation
|
||||||
|
- **GetQBCoreSharedData** - Shared data (jobs, items, vehicles)
|
||||||
|
|
||||||
### COX MySQL (2 tools)
|
### COX / ox_libs (10 tools)
|
||||||
- **GetCOXFunction** - OxMySQL database functions (8 functions)
|
- **GetCOXFunction** - OxMySQL database functions (8 functions)
|
||||||
- **GetCOXEventReference** - COX-specific events
|
- **GetCOXEventReference** - COX-specific events
|
||||||
|
- **GetInventoryServerFunction** - ox_inventory server functions (21 functions)
|
||||||
|
- **GetInventoryClientFunction** - ox_inventory client functions (8 functions)
|
||||||
|
- **GetOxDoorlockClientFunction** - ox_doorlock client API
|
||||||
|
- **GetOxDoorlockServerFunction** - ox_doorlock server API
|
||||||
|
- **GetOxDoorlockServerEvent** - ox_doorlock server events
|
||||||
|
- **GetOxFuelClientFunction** - ox_fuel client API
|
||||||
|
- **GetOxFuelServerFunction** - ox_fuel server API
|
||||||
|
- **GetOxTargetClientFunction** - ox_target client API
|
||||||
|
|
||||||
### ox_inventory (2 tools)
|
### Prodigy Scripts / prp-bridge (4 tools)
|
||||||
- **GetInventoryServerFunction** - Server-side inventory management (21 functions)
|
- **GetProdigyClientEventReference** - prp-bridge client-side events (11 events across notifications, callbacks, allowlist, medical)
|
||||||
- **GetInventoryClientFunction** - Client-side inventory functions (8 functions)
|
- **GetProdigyServerEventReference** - prp-bridge server-side events (8 events across framework, groups, medical, UniQueue)
|
||||||
|
- **GetProdigyClientExport** - prp-bridge client exports (allowlist, prop placer, ped interactions)
|
||||||
### Resource Generation (2 tools)
|
- **GetProdigyServerExport** - prp-bridge server exports (24 exports: cooldowns, allowlist, groups, UniQueue, sell shops, cases)
|
||||||
- **GenerateManifest** - Generate fxmanifest.lua with framework support
|
|
||||||
- **GenerateResourceBoilerplate** - Complete resource scaffolding
|
|
||||||
|
|
||||||
## Project Structure
|
## Project Structure
|
||||||
|
|
||||||
@@ -114,12 +127,22 @@ The MCP server includes 15 powerful tools organized by framework and execution s
|
|||||||
app/Mcp/
|
app/Mcp/
|
||||||
├── Tools/
|
├── Tools/
|
||||||
│ ├── COX/
|
│ ├── COX/
|
||||||
|
│ │ ├── Doorlock/
|
||||||
|
│ │ │ ├── Client/GetOxDoorlockClientFunction.php
|
||||||
|
│ │ │ └── Server/
|
||||||
|
│ │ │ ├── GetOxDoorlockServerFunction.php
|
||||||
|
│ │ │ └── GetOxDoorlockServerEvent.php
|
||||||
|
│ │ ├── Fuel/
|
||||||
|
│ │ │ ├── Client/GetOxFuelClientFunction.php
|
||||||
|
│ │ │ └── Server/GetOxFuelServerFunction.php
|
||||||
|
│ │ ├── Inventory/
|
||||||
|
│ │ │ ├── Server/GetInventoryServerFunction.php
|
||||||
|
│ │ │ └── Client/GetInventoryClientFunction.php
|
||||||
│ │ ├── MySQL/
|
│ │ ├── MySQL/
|
||||||
│ │ │ ├── GetCOXFunction.php
|
│ │ │ ├── GetCOXFunction.php
|
||||||
│ │ │ └── GetCOXEventReference.php
|
│ │ │ └── GetCOXEventReference.php
|
||||||
│ │ └── Inventory/
|
│ │ └── Target/
|
||||||
│ │ ├── Server/GetInventoryServerFunction.php
|
│ │ └── Client/GetOxTargetClientFunction.php
|
||||||
│ │ └── Client/GetInventoryClientFunction.php
|
|
||||||
│ ├── FiveM/
|
│ ├── FiveM/
|
||||||
│ │ ├── Client/
|
│ │ ├── Client/
|
||||||
│ │ │ ├── GetNativeClientFunction.php
|
│ │ │ ├── GetNativeClientFunction.php
|
||||||
@@ -130,13 +153,25 @@ app/Mcp/
|
|||||||
│ │ ├── GenerateManifest.php
|
│ │ ├── GenerateManifest.php
|
||||||
│ │ ├── GenerateResourceBoilerplate.php
|
│ │ ├── GenerateResourceBoilerplate.php
|
||||||
│ │ └── SearchFiveMDocs.php
|
│ │ └── SearchFiveMDocs.php
|
||||||
|
│ ├── Prodigy/
|
||||||
|
│ │ ├── Client/
|
||||||
|
│ │ │ ├── GetProdigyClientEventReference.php
|
||||||
|
│ │ │ └── GetProdigyClientExport.php
|
||||||
|
│ │ └── Server/
|
||||||
|
│ │ ├── GetProdigyServerEventReference.php
|
||||||
|
│ │ └── GetProdigyServerExport.php
|
||||||
│ └── QBCore/
|
│ └── QBCore/
|
||||||
|
│ ├── Client/
|
||||||
|
│ │ ├── GetQBCoreClientFunction.php
|
||||||
|
│ │ └── GetQBCoreClientEventReference.php
|
||||||
│ ├── Server/
|
│ ├── Server/
|
||||||
│ │ ├── GetQBCoreServerFunction.php
|
│ │ ├── GetQBCoreServerFunction.php
|
||||||
│ │ └── GetQBCoreServerEventReference.php
|
│ │ └── GetQBCoreServerEventReference.php
|
||||||
│ └── Client/
|
│ ├── GetQBCoreConfig.php
|
||||||
│ ├── GetQBCoreClientFunction.php
|
│ ├── GetQBCorePlayers.php
|
||||||
│ └── GetQBCoreClientEventReference.php
|
│ ├── GetQBCoreResourceList.php
|
||||||
|
│ ├── GetQBCoreResourceReference.php
|
||||||
|
│ └── GetQBCoreSharedData.php
|
||||||
├── Resources/
|
├── Resources/
|
||||||
│ ├── CodeSnippets.php
|
│ ├── CodeSnippets.php
|
||||||
│ ├── BestPractices.php
|
│ ├── BestPractices.php
|
||||||
@@ -186,7 +221,7 @@ php artisan test tests/Feature/GetNativeClientFunctionToolTest.php
|
|||||||
php artisan test --coverage
|
php artisan test --coverage
|
||||||
```
|
```
|
||||||
|
|
||||||
**Current Test Status:** 82 tests passing ✅
|
**Current Test Status:** 181 tests passing ✅
|
||||||
|
|
||||||
## Code Quality
|
## Code Quality
|
||||||
|
|
||||||
@@ -206,6 +241,7 @@ vendor/bin/pint --test
|
|||||||
- [FiveM Natives Reference](https://docs.fivem.net/natives/)
|
- [FiveM Natives Reference](https://docs.fivem.net/natives/)
|
||||||
- [QBCore Documentation](https://docs.qbcore.org/)
|
- [QBCore Documentation](https://docs.qbcore.org/)
|
||||||
- [COX MySQL Documentation](https://coxdocs.dev/)
|
- [COX MySQL Documentation](https://coxdocs.dev/)
|
||||||
|
- [Prodigy Scripts Documentation](https://docs.prodigyrp.net/)
|
||||||
- [Laravel MCP Documentation](https://laravel.com/docs/mcp)
|
- [Laravel MCP Documentation](https://laravel.com/docs/mcp)
|
||||||
- [Model Context Protocol](https://modelcontextprotocol.io/)
|
- [Model Context Protocol](https://modelcontextprotocol.io/)
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
"url": "https://your-domain.com/fivem"
|
"url": "https://your-domain.com/fivem"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}@endverbatim</code></pre>
|
}@endverbatim</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-6">
|
<div class="mt-6">
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}@endverbatim</code></pre>
|
}@endverbatim</code></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}@endverbatim</code></pre>
|
}@endverbatim</code></pre>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 dark:text-white mb-2">Command Line Usage:</h4>
|
<h4 class="font-semibold text-gray-900 dark:text-white mb-2">Command Line Usage:</h4>
|
||||||
<p class="text-gray-700 dark:text-gray-300 mb-3">For any MCP-compatible client:</p>
|
<p class="text-gray-700 dark:text-gray-300 mb-3">For any MCP-compatible client:</p>
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}@endverbatim</code></pre>
|
}@endverbatim</code></pre>
|
||||||
|
|
||||||
<p class="text-gray-700 dark:text-gray-300 mb-3 mt-4"><strong>Or use the full PHP path:</strong>
|
<p class="text-gray-700 dark:text-gray-300 mb-3 mt-4"><strong>Or use the full PHP path:</strong>
|
||||||
</p>
|
</p>
|
||||||
@@ -158,7 +158,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}@endverbatim</code></pre>
|
}@endverbatim</code></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -268,17 +268,17 @@
|
|||||||
|
|
||||||
<pre class="bg-gray-900 text-gray-100 rounded p-4 overflow-x-auto mb-4"><code>@verbatim<?php
|
<pre class="bg-gray-900 text-gray-100 rounded p-4 overflow-x-auto mb-4"><code>@verbatim<?php
|
||||||
|
|
||||||
namespace App\Mcp\Tools;
|
namespace App\Mcp\Tools;
|
||||||
|
|
||||||
use Illuminate\Contracts\JsonSchema\JsonSchema;
|
use Illuminate\Contracts\JsonSchema\JsonSchema;
|
||||||
use Laravel\Mcp\Request;
|
use Laravel\Mcp\Request;
|
||||||
use Laravel\Mcp\Response;
|
use Laravel\Mcp\Response;
|
||||||
use Laravel\Mcp\Server\Attributes\Description;
|
use Laravel\Mcp\Server\Attributes\Description;
|
||||||
use Laravel\Mcp\Server\Tool;
|
use Laravel\Mcp\Server\Tool;
|
||||||
|
|
||||||
#[Description('Your tool description')]
|
#[Description('Your tool description')]
|
||||||
class YourTool extends Tool
|
class YourTool extends Tool
|
||||||
{
|
{
|
||||||
public function handle(Request $request): Response
|
public function handle(Request $request): Response
|
||||||
{
|
{
|
||||||
// Tool logic here
|
// Tool logic here
|
||||||
@@ -291,8 +291,8 @@ class YourTool extends Tool
|
|||||||
'param' => $schema->string()->required(),
|
'param' => $schema->string()->required(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@endverbatim</code></pre>
|
@endverbatim</code></pre>
|
||||||
|
|
||||||
<p class="text-gray-700 dark:text-gray-300 mb-4">2. Register the tool in <code
|
<p class="text-gray-700 dark:text-gray-300 mb-4">2. Register the tool in <code
|
||||||
class="bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-gray-100 px-2 py-1 rounded text-sm">app/Mcp/Servers/FiveMServer.php</code>:
|
class="bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-gray-100 px-2 py-1 rounded text-sm">app/Mcp/Servers/FiveMServer.php</code>:
|
||||||
@@ -301,7 +301,7 @@ class YourTool extends Tool
|
|||||||
<pre class="bg-gray-900 text-gray-100 rounded p-4 overflow-x-auto mb-4"><code>@verbatimprotected array $tools = [
|
<pre class="bg-gray-900 text-gray-100 rounded p-4 overflow-x-auto mb-4"><code>@verbatimprotected array $tools = [
|
||||||
// ... existing tools
|
// ... existing tools
|
||||||
\App\Mcp\Tools\YourTool::class,
|
\App\Mcp\Tools\YourTool::class,
|
||||||
];@endverbatim</code></pre>
|
];@endverbatim</code></pre>
|
||||||
|
|
||||||
<h3 class="text-xl font-semibold text-gray-900 dark:text-white mb-3 mt-6">Code Formatting</h3>
|
<h3 class="text-xl font-semibold text-gray-900 dark:text-white mb-3 mt-6">Code Formatting</h3>
|
||||||
<p class="text-gray-700 dark:text-gray-300 mb-4">Format code with Laravel Pint:</p>
|
<p class="text-gray-700 dark:text-gray-300 mb-4">Format code with Laravel Pint:</p>
|
||||||
@@ -314,7 +314,9 @@ class YourTool extends Tool
|
|||||||
<ul class="list-disc list-inside text-gray-700 dark:text-gray-300 space-y-2 ml-4">
|
<ul class="list-disc list-inside text-gray-700 dark:text-gray-300 space-y-2 ml-4">
|
||||||
<li><strong>Standalone:</strong> Basic FiveM resources without framework dependencies</li>
|
<li><strong>Standalone:</strong> Basic FiveM resources without framework dependencies</li>
|
||||||
<li><strong>ESX:</strong> ESX Framework (es_extended)</li>
|
<li><strong>ESX:</strong> ESX Framework (es_extended)</li>
|
||||||
<li><strong>QBCore:</strong> QBCore Framework (qb-core)</li>
|
<li><strong>QBCore:</strong> QBCore Framework (qb-core / qbx_core)</li>
|
||||||
|
<li><strong>Prodigy Studios (prp-bridge):</strong> Unified bridge supporting QBox, QB-Core, ESX, and ND Core with
|
||||||
|
events, exports, UniQueue, groups, allowlists, sell shops, cases, and ped interactions</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4 mt-6">Scripting Languages</h2>
|
<h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4 mt-6">Scripting Languages</h2>
|
||||||
@@ -336,6 +338,8 @@ class YourTool extends Tool
|
|||||||
for database operations</li>
|
for database operations</li>
|
||||||
<li><a href="https://docs.qbcore.org/" class="link-gta">QBCore
|
<li><a href="https://docs.qbcore.org/" class="link-gta">QBCore
|
||||||
Documentation</a></li>
|
Documentation</a></li>
|
||||||
|
<li><a href="https://docs.prodigyrp.net/" class="link-gta">Prodigy
|
||||||
|
Studios Documentation</a></li>
|
||||||
<li><a href="https://laravel.com/docs/mcp" class="link-gta">Laravel
|
<li><a href="https://laravel.com/docs/mcp" class="link-gta">Laravel
|
||||||
MCP Documentation</a></li>
|
MCP Documentation</a></li>
|
||||||
<li><a href="https://modelcontextprotocol.io/" class="link-gta">Model
|
<li><a href="https://modelcontextprotocol.io/" class="link-gta">Model
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
FiveM Development MCP Server
|
FiveM Development MCP Server
|
||||||
</h1>
|
</h1>
|
||||||
<p class="mt-5 max-w-xl mx-auto text-xl text-gray-500 dark:text-gray-400">
|
<p class="mt-5 max-w-xl mx-auto text-xl text-gray-500 dark:text-gray-400">
|
||||||
A comprehensive Model Context Protocol server for FiveM development with 5 tools, 3 resources, and 5
|
A comprehensive Model Context Protocol server for FiveM development. Supports FiveM natives, QBCore,
|
||||||
prompts.
|
COX MySQL, Prodigy Studios (prp-bridge), and more.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -103,7 +103,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<p class="text-sm text-gray-500 dark:text-gray-400">
|
<p class="text-sm text-gray-500 dark:text-gray-400">
|
||||||
Complete database of FiveM events including core, ESX, and QBCore events with examples.
|
Complete database of FiveM events including core, QBCore, and Prodigy Studios (prp-bridge)
|
||||||
|
events with examples.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -149,7 +150,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<p class="text-sm text-gray-500 dark:text-gray-400">
|
<p class="text-sm text-gray-500 dark:text-gray-400">
|
||||||
Full support for Standalone, ESX, and QBCore frameworks in both Lua and JavaScript.
|
Full support for Standalone, ESX, QBCore, and Prodigy Studios (prp-bridge) in both Lua and
|
||||||
|
JavaScript.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -196,31 +198,31 @@
|
|||||||
"type": "http"
|
"type": "http"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-white dark:bg-gray-800 shadow rounded-lg p-6">
|
<div class="bg-white dark:bg-gray-800 shadow rounded-lg p-6">
|
||||||
<h3 class="text-lg font-medium text-gray-900 dark:text-white mb-4">External Links</h3>
|
<h3 class="text-lg font-medium text-gray-900 dark:text-white mb-4">External Links</h3>
|
||||||
<ul class="space-y-2 text-sm">
|
<ul class="space-y-2 text-sm">
|
||||||
<li>
|
<li>
|
||||||
<a href="https://docs.fivem.net/docs/"
|
<a href="https://docs.fivem.net/docs/" class="link-gta">FiveM
|
||||||
class="link-gta">FiveM
|
|
||||||
Documentation</a>
|
Documentation</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="https://docs.fivem.net/natives/"
|
<a href="https://docs.fivem.net/natives/" class="link-gta">FiveM
|
||||||
class="link-gta">FiveM
|
|
||||||
Natives Reference</a>
|
Natives Reference</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="https://docs.qbcore.org/"
|
<a href="https://docs.qbcore.org/" class="link-gta">QBCore
|
||||||
class="link-gta">QBCore
|
|
||||||
Documentation</a>
|
Documentation</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="https://coxdocs.dev/"
|
<a href="https://coxdocs.dev/" class="link-gta">COX
|
||||||
class="link-gta">COX
|
|
||||||
MySQL Documentation</a>
|
MySQL Documentation</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://docs.prodigyrp.net/" class="link-gta">Prodigy
|
||||||
|
Studios Documentation</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="https://laravel.com/docs/mcp"
|
<a href="https://laravel.com/docs/mcp"
|
||||||
class="link-gta">Laravel
|
class="link-gta">Laravel
|
||||||
|
|||||||
Reference in new issue
Block a user