File tree 2 files changed +4
-7
lines changed
02.tools/01.problem.simple/src
03.advanced-tools/03.problem.class
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,9 @@ const server = new McpServer(
13
13
)
14
14
15
15
// 🐨 add a tool to the server with the server.tool API
16
- // - it should be named 'add'
17
- // - it should have a description explaining what it can be used to do
18
- // - provide an input schema object with two properties which are validated with zod (give them descriptions as well):
19
- // - firstNumber: a number
20
- // - secondNumber: a number
21
- // - it should return a standard text response with the sum of the two numbers
16
+ // - the name should be 'add'
17
+ // - the description should explain what it can be used to do (add one and two)
18
+ // - the callback should return a standard text response that says "one and two equals three"
22
19
23
20
async function main ( ) {
24
21
const transport = new StdioServerTransport ( )
Original file line number Diff line number Diff line change 1
1
# Class
2
2
3
3
👨💼 Time to level up our architecture! Most real-world MCP servers are deployed
4
- remotely I recommend using Cloudflare's [ agent ] ( https://npm.im/agent ) module
4
+ remotely I recommend using Cloudflare's [ agents ] ( https://npm.im/agents ) module
5
5
which exposes a ` McpAgent ` class that makes it easy to build a remote MCP
6
6
server.
7
7
You can’t perform that action at this time.
0 commit comments