Implement feature X to enhance user experience and fix bug Y in module Z
This commit is contained in:
1 file changed
+120
-45
@@ -3,7 +3,7 @@
|
|||||||
@section('title', 'Full Documentation - FiveM MCP Server')
|
@section('title', 'Full Documentation - FiveM MCP Server')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="max-w-5xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
|
<div class="max-w-5xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
|
||||||
<div class="bg-white shadow rounded-lg p-8">
|
<div class="bg-white shadow rounded-lg p-8">
|
||||||
<h1 class="text-3xl font-extrabold text-gray-900 mb-6">FiveM Development MCP Server</h1>
|
<h1 class="text-3xl font-extrabold text-gray-900 mb-6">FiveM Development MCP Server</h1>
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
"url": "https://your-domain.com/fivem"
|
"url": "https://your-domain.com/fivem"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-6">
|
<div class="mt-6">
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Command Line Usage:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Command Line Usage:</h4>
|
||||||
<p class="text-gray-700 mb-3">For any MCP-compatible client:</p>
|
<p class="text-gray-700 mb-3">For any MCP-compatible client:</p>
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<p class="text-gray-700 mb-3 mt-4"><strong>Or use the full PHP path:</strong></p>
|
<p class="text-gray-700 mb-3 mt-4"><strong>Or use the full PHP path:</strong></p>
|
||||||
<pre class="bg-gray-900 text-gray-100 rounded p-4 overflow-x-auto"><code>{
|
<pre class="bg-gray-900 text-gray-100 rounded p-4 overflow-x-auto"><code>{
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -159,16 +159,18 @@
|
|||||||
<!-- Tool 1: SearchFiveMDocs -->
|
<!-- Tool 1: SearchFiveMDocs -->
|
||||||
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
||||||
<h3 class="text-xl font-semibold text-gray-900 mb-3">1. SearchFiveMDocs</h3>
|
<h3 class="text-xl font-semibold text-gray-900 mb-3">1. SearchFiveMDocs</h3>
|
||||||
<p class="text-gray-700 mb-4">Search FiveM documentation for specific topics.</p>
|
<p class="text-gray-700 mb-4">Search FiveM and QBCore documentation for specific topics.</p>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">query</code> (required): Search query (e.g., "events", "natives", "manifest")</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">query</code> (required): Search query (e.g., "events",
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">category</code> (optional): Filter by category (all, scripting, natives, networking, resources)</li>
|
"natives", "manifest")</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">category</code> (optional): Filter by category (all,
|
||||||
|
scripting, natives, networking, resources, qbcore)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm"><code>Search FiveM docs for "network events"</code></pre>
|
<pre class="bg-gray-100 rounded p-3 text-sm"><code>Search for QBCore callbacks and exports</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Tool 2: GetNativeFunction -->
|
<!-- Tool 2: GetNativeFunction -->
|
||||||
@@ -178,14 +180,20 @@
|
|||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">function_name</code> (required): Native function name (e.g., "GetPlayerPed", "SetEntityCoords")</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">function_name</code> (required): Native function name
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua or js)</li>
|
(e.g., "GetPlayerPed", "SetEntityCoords")</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua
|
||||||
|
or js)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Common Native Examples:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Common Native Examples:</h4>
|
||||||
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
<li>Common natives: <code class="bg-gray-100 px-2 py-1 rounded text-sm">GetPlayerPed</code>, <code class="bg-gray-100 px-2 py-1 rounded text-sm">SetEntityCoords</code>, <code class="bg-gray-100 px-2 py-1 rounded text-sm">GetEntityCoords</code></li>
|
<li>Common natives: <code class="bg-gray-100 px-2 py-1 rounded text-sm">GetPlayerPed</code>, <code
|
||||||
<li>CFX natives: <code class="bg-gray-100 px-2 py-1 rounded text-sm">RegisterNetEvent</code>, <code class="bg-gray-100 px-2 py-1 rounded text-sm">TriggerServerEvent</code>, <code class="bg-gray-100 px-2 py-1 rounded text-sm">TriggerClientEvent</code></li>
|
class="bg-gray-100 px-2 py-1 rounded text-sm">SetEntityCoords</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">GetEntityCoords</code></li>
|
||||||
|
<li>CFX natives: <code class="bg-gray-100 px-2 py-1 rounded text-sm">RegisterNetEvent</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">TriggerServerEvent</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">TriggerClientEvent</code></li>
|
||||||
<li>ESX: <code class="bg-gray-100 px-2 py-1 rounded text-sm">ESX.GetPlayerFromId</code></li>
|
<li>ESX: <code class="bg-gray-100 px-2 py-1 rounded text-sm">ESX.GetPlayerFromId</code></li>
|
||||||
<li>QBCore: <code class="bg-gray-100 px-2 py-1 rounded text-sm">QBCore.Functions.GetPlayer</code></li>
|
<li>QBCore: <code class="bg-gray-100 px-2 py-1 rounded text-sm">QBCore.Functions.GetPlayer</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -201,32 +209,41 @@
|
|||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">resource_name</code> (required): Resource name</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">resource_name</code> (required): Resource name</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">author</code> (optional): Author name</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">author</code> (optional): Author name</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">description</code> (optional): Resource description</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">description</code> (optional): Resource description</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">version</code> (optional): Version number (default: "1.0.0")</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">version</code> (optional): Version number (default:
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">script_type</code> (optional): lua or js (default: lua)</li>
|
"1.0.0")</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_client</code> (optional): Include client scripts (default: true)</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">script_type</code> (optional): lua or js (default: lua)
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_server</code> (optional): Include server scripts (default: true)</li>
|
</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">framework</code> (optional): standalone, esx, or qbcore (default: standalone)</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_client</code> (optional): Include client scripts
|
||||||
|
(default: true)</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_server</code> (optional): Include server scripts
|
||||||
|
(default: true)</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">framework</code> (optional): standalone, esx, or qbcore
|
||||||
|
(default: standalone)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm"><code>Generate a manifest for an ESX resource called "my-shop"</code></pre>
|
<pre
|
||||||
|
class="bg-gray-100 rounded p-3 text-sm"><code>Generate a manifest for an ESX resource called "my-shop"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Tool 4: GetEventReference -->
|
<!-- Tool 4: GetEventReference -->
|
||||||
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
||||||
<h3 class="text-xl font-semibold text-gray-900 mb-3">4. GetEventReference</h3>
|
<h3 class="text-xl font-semibold text-gray-900 mb-3">4. GetEventReference</h3>
|
||||||
<p class="text-gray-700 mb-4">Get information about FiveM events.</p>
|
<p class="text-gray-700 mb-4">Get information about FiveM, ESX, and QBCore events.</p>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_name</code> (optional): Specific event name to look up</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_name</code> (optional): Specific event name to
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_type</code> (optional): Filter by type (all, core, esx, qbcore)</li>
|
look up</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua or js)</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_type</code> (optional): Filter by type (all, core,
|
||||||
|
esx, qbcore)</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua
|
||||||
|
or js)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Examples:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Examples:</h4>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>Show me all core FiveM events</code></pre>
|
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>Show me all core FiveM events</code></pre>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>Look up the playerConnecting event</code></pre>
|
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>Look up the QBCore:Client:OnPlayerLoaded event</code></pre>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm"><code>List all ESX events</code></pre>
|
<pre class="bg-gray-100 rounded p-3 text-sm"><code>List all ESX events</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -238,13 +255,71 @@
|
|||||||
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">resource_name</code> (required): Resource name</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">resource_name</code> (required): Resource name</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">framework</code> (optional): standalone, esx, or qbcore (default: standalone)</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">framework</code> (optional): standalone, esx, or qbcore
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">script_type</code> (optional): lua or js (default: lua)</li>
|
(default: standalone)</li>
|
||||||
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_nui</code> (optional): Include NUI files (default: false)</li>
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">script_type</code> (optional): lua or js (default: lua)
|
||||||
|
</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">include_nui</code> (optional): Include NUI files
|
||||||
|
(default: false)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
||||||
<pre class="bg-gray-100 rounded p-3 text-sm"><code>Generate boilerplate for a QBCore resource with NUI called "admin-panel"</code></pre>
|
<pre
|
||||||
|
class="bg-gray-100 rounded p-3 text-sm"><code>Generate boilerplate for a QBCore resource with NUI called "admin-panel"</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Tool 6: GetQBCoreEventReference -->
|
||||||
|
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
||||||
|
<h3 class="text-xl font-semibold text-gray-900 mb-3">6. GetQBCoreEventReference</h3>
|
||||||
|
<p class="text-gray-700 mb-4">Get information about QBCore framework events.</p>
|
||||||
|
|
||||||
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_name</code> (optional): Specific event name to
|
||||||
|
look up</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">event_category</code> (optional): Filter by category
|
||||||
|
(all, player, job, inventory, vehicle, money)</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua
|
||||||
|
or js)</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h4 class="font-semibold text-gray-900 mb-2">Examples:</h4>
|
||||||
|
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>What's the QBCore:Client:OnPlayerLoaded event?</code></pre>
|
||||||
|
<pre class="bg-gray-100 rounded p-3 text-sm mb-2"><code>Show me all QBCore player events</code></pre>
|
||||||
|
<pre class="bg-gray-100 rounded p-3 text-sm"><code>List all QBCore inventory events</code></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Tool 7: GetQBCoreFunction -->
|
||||||
|
<div class="mb-8 border-l-4 border-indigo-500 pl-6">
|
||||||
|
<h3 class="text-xl font-semibold text-gray-900 mb-3">7. GetQBCoreFunction</h3>
|
||||||
|
<p class="text-gray-700 mb-4">Look up QBCore functions and exports.</p>
|
||||||
|
|
||||||
|
<h4 class="font-semibold text-gray-900 mb-2">Parameters:</h4>
|
||||||
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">function_name</code> (required): QBCore function name
|
||||||
|
(e.g., "QBCore.Functions.GetPlayer", "AddMoney")</li>
|
||||||
|
<li><code class="bg-gray-100 px-2 py-1 rounded text-sm">language</code> (optional): Code example language (lua
|
||||||
|
or js)</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h4 class="font-semibold text-gray-900 mb-2">Common QBCore Functions:</h4>
|
||||||
|
<ul class="list-disc list-inside text-gray-700 mb-4 ml-4">
|
||||||
|
<li>Player: <code class="bg-gray-100 px-2 py-1 rounded text-sm">QBCore.Functions.GetPlayer</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">QBCore.Functions.GetPlayerData</code></li>
|
||||||
|
<li>Items: <code class="bg-gray-100 px-2 py-1 rounded text-sm">AddItem</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">RemoveItem</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">GetItemByName</code></li>
|
||||||
|
<li>Money: <code class="bg-gray-100 px-2 py-1 rounded text-sm">AddMoney</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">RemoveMoney</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">GetMoney</code></li>
|
||||||
|
<li>Jobs: <code class="bg-gray-100 px-2 py-1 rounded text-sm">SetJob</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">GetJob</code></li>
|
||||||
|
<li>Vehicles: <code class="bg-gray-100 px-2 py-1 rounded text-sm">AddVehicle</code>, <code
|
||||||
|
class="bg-gray-100 px-2 py-1 rounded text-sm">DeleteVehicle</code></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h4 class="font-semibold text-gray-900 mb-2">Example:</h4>
|
||||||
|
<pre class="bg-gray-100 rounded p-3 text-sm"><code>How do I use the AddMoney function in QBCore?</code></pre>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -336,17 +411,17 @@
|
|||||||
|
|
||||||
<pre class="bg-gray-900 text-gray-100 rounded p-4 overflow-x-auto mb-4"><code><?php
|
<pre class="bg-gray-900 text-gray-100 rounded p-4 overflow-x-auto mb-4"><code><?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
|
||||||
@@ -359,14 +434,14 @@ class YourTool extends Tool
|
|||||||
'param' => $schema->string()->required(),
|
'param' => $schema->string()->required(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
|
|
||||||
<p class="text-gray-700 mb-4">2. Register the tool in <code class="bg-gray-100 px-2 py-1 rounded text-sm">app/Mcp/Servers/FiveMServer.php</code>:</p>
|
<p class="text-gray-700 mb-4">2. Register the tool in <code class="bg-gray-100 px-2 py-1 rounded text-sm">app/Mcp/Servers/FiveMServer.php</code>:</p>
|
||||||
|
|
||||||
<pre class="bg-gray-900 text-gray-100 rounded p-4 overflow-x-auto mb-4"><code>protected array $tools = [
|
<pre class="bg-gray-900 text-gray-100 rounded p-4 overflow-x-auto mb-4"><code>protected array $tools = [
|
||||||
// ... existing tools
|
// ... existing tools
|
||||||
\App\Mcp\Tools\YourTool::class,
|
\App\Mcp\Tools\YourTool::class,
|
||||||
];</code></pre>
|
];</code></pre>
|
||||||
|
|
||||||
<h3 class="text-xl font-semibold text-gray-900 mb-3 mt-6">Code Formatting</h3>
|
<h3 class="text-xl font-semibold text-gray-900 mb-3 mt-6">Code Formatting</h3>
|
||||||
<p class="text-gray-700 mb-4">Format code with Laravel Pint:</p>
|
<p class="text-gray-700 mb-4">Format code with Laravel Pint:</p>
|
||||||
@@ -416,10 +491,10 @@ class YourTool extends Tool
|
|||||||
<p class="text-gray-700">MIT License</p>
|
<p class="text-gray-700">MIT License</p>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
const tabButtons = document.querySelectorAll('.tab-button');
|
const tabButtons = document.querySelectorAll('.tab-button');
|
||||||
const tabContents = document.querySelectorAll('.tab-content');
|
const tabContents = document.querySelectorAll('.tab-content');
|
||||||
|
|
||||||
@@ -451,7 +526,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
Reference in new issue
Block a user