@@ -82,13 +82,28 @@ use Laravel\Mcp\Server;
8282
8383class WeatherServer extends Server
8484{
85+ /**
86+ * The MCP server's name.
87+ */
88+ protected string $name = 'Weather Server';
89+
90+ /**
91+ * The MCP server's version.
92+ */
93+ protected string $version = '1.0.0';
94+
95+ /**
96+ * The MCP server's instructions for the LLM.
97+ */
98+ protected string $instructions = 'This server provides weather information and forecasts.';
99+
85100 /**
86101 * The tools registered with this MCP server.
87102 *
88103 * @var array<int , class-string <\Laravel\Mcp\Server\Tool >>
89104 */
90105 protected array $tools = [
91- // ExampleTool ::class,
106+ // GetCurrentWeatherTool ::class,
92107 ];
93108
94109 /**
@@ -97,7 +112,7 @@ class WeatherServer extends Server
97112 * @var array<int , class-string <\Laravel\Mcp\Server\Resource >>
98113 */
99114 protected array $resources = [
100- // ExampleResource ::class,
115+ // WeatherGuidelinesResource ::class,
101116 ];
102117
103118 /**
@@ -106,7 +121,7 @@ class WeatherServer extends Server
106121 * @var array<int , class-string <\Laravel\Mcp\Server\Prompt >>
107122 */
108123 protected array $prompts = [
109- // ExamplePrompt ::class,
124+ // DescribeWeatherPrompt ::class,
110125 ];
111126}
112127```
0 commit comments