@@ -82,13 +82,28 @@ use Laravel\Mcp\Server;
82
82
83
83
class WeatherServer extends Server
84
84
{
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
+
85
100
/**
86
101
* The tools registered with this MCP server.
87
102
*
88
103
* @var array<int , class-string <\Laravel\Mcp\Server\Tool >>
89
104
*/
90
105
protected array $tools = [
91
- // ExampleTool ::class,
106
+ // GetCurrentWeatherTool ::class,
92
107
];
93
108
94
109
/**
@@ -97,7 +112,7 @@ class WeatherServer extends Server
97
112
* @var array<int , class-string <\Laravel\Mcp\Server\Resource >>
98
113
*/
99
114
protected array $resources = [
100
- // ExampleResource ::class,
115
+ // WeatherGuidelinesResource ::class,
101
116
];
102
117
103
118
/**
@@ -106,7 +121,7 @@ class WeatherServer extends Server
106
121
* @var array<int , class-string <\Laravel\Mcp\Server\Prompt >>
107
122
*/
108
123
protected array $prompts = [
109
- // ExamplePrompt ::class,
124
+ // DescribeWeatherPrompt ::class,
110
125
];
111
126
}
112
127
```
0 commit comments