install
This commit is contained in:
52
stubs/server.stub
Normal file
52
stubs/server.stub
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace {{ namespace }};
|
||||
|
||||
use Laravel\Mcp\Server;
|
||||
|
||||
class {{ class }} extends Server
|
||||
{
|
||||
/**
|
||||
* The MCP server's name.
|
||||
*/
|
||||
protected string $name = '{{ serverDisplayName }}';
|
||||
|
||||
/**
|
||||
* The MCP server's version.
|
||||
*/
|
||||
protected string $version = '0.0.1';
|
||||
|
||||
/**
|
||||
* The MCP server's instructions for the LLM.
|
||||
*/
|
||||
protected string $instructions = <<<'MARKDOWN'
|
||||
Instructions describing how to use the server and its features.
|
||||
MARKDOWN;
|
||||
|
||||
/**
|
||||
* The tools registered with this MCP server.
|
||||
*
|
||||
* @var array<int, class-string<\Laravel\Mcp\Server\Tool>>
|
||||
*/
|
||||
protected array $tools = [
|
||||
//
|
||||
];
|
||||
|
||||
/**
|
||||
* The resources registered with this MCP server.
|
||||
*
|
||||
* @var array<int, class-string<\Laravel\Mcp\Server\Resource>>
|
||||
*/
|
||||
protected array $resources = [
|
||||
//
|
||||
];
|
||||
|
||||
/**
|
||||
* The prompts registered with this MCP server.
|
||||
*
|
||||
* @var array<int, class-string<\Laravel\Mcp\Server\Prompt>>
|
||||
*/
|
||||
protected array $prompts = [
|
||||
//
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user