Add QBCore tools for player and shared data information
- Implement GetQBCorePlayers tool to retrieve player data structure, methods, events, and examples. - Implement GetQBCoreSharedData tool to retrieve shared data types including items, jobs, gangs, vehicles, weapons, starter items, and utilities. - Create corresponding Blade views for displaying player and shared data information. - Add tests for GetQBCoreConfig, GetQBCorePlayers, and GetQBCoreSharedData tools to ensure correct functionality and response handling.
This commit is contained in:
14 files changed
+1157
-6
No files matched your search
@@ -171,11 +171,18 @@
|
||||
<h2 class="text-3xl font-extrabold text-gray-900 mb-8">Resources</h2>
|
||||
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2">
|
||||
<div class="bg-white shadow rounded-lg p-6">
|
||||
<h3 class="text-lg font-medium text-gray-900 mb-4">Testing</h3>
|
||||
<h3 class="text-lg font-medium text-gray-900 mb-4">MCP Server Configuration</h3>
|
||||
<p class="text-sm text-gray-500 mb-4">
|
||||
Test the MCP server locally using the inspector:
|
||||
To connect to the FiveM MCP server, use the following configuration in your MCP client:
|
||||
</p>
|
||||
<pre class="bg-gray-50 rounded p-4 text-sm overflow-x-auto"><code>php artisan mcp:inspector fivem</code></pre>
|
||||
<pre class="bg-gray-50 rounded p-4 text-sm overflow-x-auto"><code>{
|
||||
"servers": {
|
||||
"fivem": {
|
||||
"url": "{{ route('fivem') }}",
|
||||
"type": "http"
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
</div>
|
||||
<div class="bg-white shadow rounded-lg p-6">
|
||||
<h3 class="text-lg font-medium text-gray-900 mb-4">External Links</h3>
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
## {{ $config['category'] }} Configuration
|
||||
|
||||
**Location:** `{{ $config['location'] }}`
|
||||
|
||||
{{ $config['description'] }}
|
||||
|
||||
### Configuration Options
|
||||
| Option | Type | Description |
|
||||
|--------|------|-------------|
|
||||
@foreach($config['config_options'] as $option)
|
||||
| `{{ $option['name'] }}` | {{ $option['type'] }} | {{ $option['description'] }} |
|
||||
@endforeach
|
||||
|
||||
@if($language === 'lua')
|
||||
### Lua Example
|
||||
```lua
|
||||
{{ $config['lua_example'] }}
|
||||
```
|
||||
@else
|
||||
### JavaScript Example
|
||||
```javascript
|
||||
{{ $config['js_example'] }}
|
||||
```
|
||||
@endif
|
||||
|
||||
### Learn More
|
||||
- [QBCore Configuration Guide](https://docs.qbcore.org/qbcore-documentation/qb-core/configuration)
|
||||
- [QBCore Repository](https://github.com/qbcore-framework/qb-core)
|
||||
@@ -0,0 +1,46 @@
|
||||
## {{ $info['title'] }}
|
||||
|
||||
{{ $info['description'] }}
|
||||
|
||||
@if(isset($info['properties']))
|
||||
### Properties
|
||||
| Property | Type | Description |
|
||||
|----------|------|-------------|
|
||||
@foreach($info['properties'] as $prop)
|
||||
| `{{ $prop['name'] }}` | {{ $prop['type'] }} | {{ $prop['description'] }} |
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if(isset($info['methods']))
|
||||
### Available Methods
|
||||
| Method | Description |
|
||||
|--------|-------------|
|
||||
@foreach($info['methods'] as $method)
|
||||
| `{{ $method['name'] }}` | {{ $method['description'] }} |
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if(isset($info['events']))
|
||||
### Events
|
||||
| Event | Description |
|
||||
|-------|-------------|
|
||||
@foreach($info['events'] as $event)
|
||||
| `{{ $event['name'] }}` | {{ $event['description'] }} |
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if($language === 'lua')
|
||||
### Lua Example
|
||||
```lua
|
||||
{{ $info['lua_example'] }}
|
||||
```
|
||||
@else
|
||||
### JavaScript Example
|
||||
```javascript
|
||||
{{ $info['js_example'] }}
|
||||
```
|
||||
@endif
|
||||
|
||||
### Learn More
|
||||
- [QBCore Player Data Documentation](https://docs.qbcore.org/qbcore-documentation/qb-core/player-data)
|
||||
- [QBCore Repository](https://github.com/qbcore-framework/qb-core)
|
||||
@@ -0,0 +1,35 @@
|
||||
## {{ $data['type'] }} - QBCore Shared Data
|
||||
|
||||
**Location:** `{{ $data['location'] }}`
|
||||
|
||||
{{ $data['description'] }}
|
||||
|
||||
### Properties
|
||||
@if(isset($data['properties']))
|
||||
| Property | Type | Description |
|
||||
|----------|------|-------------|
|
||||
@foreach($data['properties'] as $prop)
|
||||
| `{{ $prop['name'] }}` | {{ $prop['type'] }} | {{ $prop['description'] }} |
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if(isset($data['methods']))
|
||||
### Available Methods
|
||||
@foreach($data['methods'] as $method)
|
||||
- **{{ $method['name'] }}** - {{ $method['description'] }}
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
### Lua Example
|
||||
```lua
|
||||
{{ $data['lua_example'] }}
|
||||
```
|
||||
|
||||
### JavaScript Example
|
||||
```javascript
|
||||
{{ $data['js_example'] }}
|
||||
```
|
||||
|
||||
### Learn More
|
||||
- [QBCore Shared Documentation](https://docs.qbcore.org/qbcore-documentation/qb-core/shared)
|
||||
- [QBCore Repository](https://github.com/qbcore-framework/qb-core)
|
||||
Reference in new issue
Block a user