You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Part 7 - MCP Server Basics/README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,6 +149,8 @@ The template generates a simple `RandomNumberTools` class with a `GetRandomNumbe
149
149
usingSystem.ComponentModel;
150
150
usingModelContextProtocol.Server;
151
151
152
+
namespaceMyMcpServer.Tools;
153
+
152
154
/// <summary>
153
155
/// Sample MCP tools for demonstration purposes.
154
156
/// These tools can be invoked by MCP clients to perform various operations.
@@ -166,7 +168,7 @@ internal class RandomNumberTools
166
168
}
167
169
```
168
170
169
-
We'll replace this with weather functionality while keeping the same class name for simplicity.
171
+
We'll add weather functionality alongside this, keeping both tools available.
170
172
171
173
**`.mcp/server.json`** - Metadata that describes your MCP server to package managers. Contains example values that should be customized for actual publication.
172
174
@@ -248,12 +250,13 @@ internal class WeatherTools
248
250
}
249
251
```
250
252
251
-
1.**Register the new weather tools** in `Program.cs`. Update the file to register both tool classes:
253
+
2.**Register the new weather tools** in `Program.cs`. Update the file to register both tool classes:
0 commit comments